chaff91
Forum Replies Created
-
Just updated the plugin & tested it out. We’re all good now.
Thanks for getting this fixed up.
Thanks for fixing that up, I’ll try implement the update & let you know how I go.
Cheers
Hey, just to confirm the ‘Send pageviews to Google Analytics.’ is checked, but I think I might not have been clear in what’s happening.
So the pageviews are being sent to Google Analytics when Ajax loads the next one. But instead of sending the pageview URL as /blog-article-2 like you would normally see in Google Analytics, it’s sending the pageview URL as /https://www.domain.com/blog-article-2
Hey, it’s pretty standard integration, code below (removed UA code)
<script>(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);ga(‘create’, ‘UA-########-1’, ‘auto’);
ga(‘require’, ‘displayfeatures’);
ga(‘require’, ‘linkid’, ‘linkid.js’);
ga(‘send’, ‘pageview’);</script>Hey,
It’s in the head section. Should I move it to the footer?
Hey.
We just updated the plugin & tested running with GA by Yoast, but it appears to cause the same issue as before.
No, not when we were first going. That’s why we disabled it & moved it to the head section.
Hey,
We were originally using the Google Analytics by Yoast plugin for the tracking, but after seeing the https://www.ads-software.com/support/topic/google-analytics-not-sending-page-views post, we turned it off & just put it straight into the head.
Whilst the code is in the head section, this is where we’re seeing this issue occur.
From what you’re saying, I don’t think they’d be linked, but I’d be happy to test re-enabling Google Analytics by Yoast, and seeing if the tracking URL is being picked up properly.