Hi,
Thank you for writing us!
You already give the answer with your query. Our plugin used gtag.js method to track the data but you haven’t enabled the “Add Global Site Tracking Code ‘gtag.js’ ” because you have implemented UA script manually in your store.
Enabling this option “Add Global Site Tracking Code ‘gtag.js’” showing incorrect bounce rate stats because when you have enabled it, the manual UA script was also there which results in double pageviews.
Solution:
Remove the UA script which you have added manually & enable the option “Add Global Site Tracking Code ‘gtag.js’” from the plugin.
Hope this helps!
Thanks & Regards,
Thanks for the quick response. I don’t understand what has changed. I’ve been using your plugin for many months with no problem and I haven’t made any changes to my site. I don’t even know where the GA code is implemented as it was done years ago.
Something has changed this month and it wasn’t a change that I made. Do you have any idea why this might have happened?
-
This reply was modified 7 years, 11 months ago by
kombilife.
Hi,
We have adopted the new tracking method gtag.js instead of old analytics.js method which you have added manually in your store (screenshot).
Now Since UA script (analytics.js) is Implemented manually, you have not enabled the “Add Global Site Tracking Code ‘gtag.js” option from our plugin which results in to “gtag is not defined” error in your store (screenshot).
The reason already mentioned in the FAQs of our plugin which will help you to understand the scenario.
Hope this helps!
Thanks & regards,
P.S: It’s the best practices to read the description, FAQs & other support thread queries first each time you update the plugin. We keep updating it regularly.
Thank you for the very excellent support. I’ve updated our GA code to use the gtag. Hopefully the data will start coming through from this plugin again. I will report back if I am still having issues. Thanks again Tatvic
Mine has stopped working since yesterday as well, and my “global site tracking code” is on. What could be happening? Tks!
FYI The fix above worked for me. I changed the GA code in my header.php file to use the new GA gtag.js (copied from GA admin page) then enabled then Added Global Site Tracking Code ‘gtag.js” option from this plugin and it fixed the issue.
first check is to confirm your source code that you are not using the old analytics.js script