Script adding to the pre-existing GTM
-
Hi,
Currently using GTM, I added WP GA Events and I configured it to work with my GTM.
I discovered that my bounce rate had been divided by 10 on Analytics. I suspected that I had two GA tracking scripts on my page.
I indeed have my GTM including the Analytics script.
And GA Events adds this one :if (typeof ga === ‘undefined’) {
(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’,’https://www.google-analytics.com/analytics.js’,’ga’);ga(‘create’,’UA-XXXXXXX-1′, ‘ignition-program.com’); ga(‘send’, ‘pageview’);
}which makes my bounce rate untrackable since any user interacts twice with my website.
GA Events settings are as follows : https://ibb.co/bLc9yU
What can I do to remove this script while keeping WP GA Events ?
Thanks!
Max
The page I need help with: [log in to see the link]
The topic ‘Script adding to the pre-existing GTM’ is closed to new replies.