Tracking ajax page load
-
Hello,
I have been trying to get Matomo working with my Word press site that is using an ajax theme.
The tracking is working, I am using tag manager. But all page views are logged as the homepage instead of the page that is visited.I used the following code for google analytics:
jQuery(document).on('pjax:complete', function() { gtag('send', 'page_view'); });
So changed this to:
jQuery(document).on('pjax:complete', function() { window._mtm.push({'event': 'mtm.PageView'}); });
But still the page views are all tracked as the homepage, please could you help me?
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Tracking ajax page load’ is closed to new replies.