Quantcast
Viewing all articles
Browse latest Browse all 13979

Does Matomo auto-track pages using Javascript

@araphiel wrote:

Can Piwik automatically track information if javascript is used to get to that page?

Lets say we want to go from example.com to example.com/page-2
If we click on a regular link, this gets tracked by Piwik automatically.

If we use javascript to switch pages, will Piwik detect this?

You can try this on this page by dropping this in your console & clicking any button here.

$('button').on('click', function(event){
     event.preventDefault;
     document.location = "https://www.example.com/page-2";
});

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 13979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>