Same web property ID is tracked twice
-
I have Google Analytics integrated with Tag Manager, and I’d like the plugin just to record events. The Chrome Tag Assistant shows that the Analytics code is inserted into the page twice. It shows this even if uncheck “Enable Standard Tracking.” This is the same issue as this, which does not explain why it was closed.
-
To be precise, this is a problem when you need to use the Enhanced eCommerce feature.
Hey there,
The previous thread was closed to lack of activity – the forum automatically closes threads after a while to prevent spam.
I have Google Analytics integrated with Tag Manager
To confirm, when you mention Tag Manager, are you referring to another plugin, or Google Tag Manager?
To be precise, this is a problem when you need to use the Enhanced eCommerce feature.
And does this Enhanced eCommerce feature come from the Tag Manager or elsewhere?
I’m looking for enough information to set this up on my end and test it.
Thanks!
Yes it’s Google Tag Manager. The Enhanced eCommerce tracking feature is something you need to enable in Google Analytics (which I did) and in this plugin’s settings. But the plugin doesn’t let you enable the feature unless you also check the box to enable Universal Analytics, which makes the plugin output the tracking code which I’ve already inserted in the page.
Thanks for clarifying and your patience – I’m familiar with the Google Analytics specific section, but not so much with the Tag Manager.
I have Google Analytics integrated with Tag Manager, and I’d like the plugin just to record events. The Chrome Tag Assistant shows that the Analytics code is inserted into the page twice.
Our plugin doesn’t offer an option for adding the Tag Manager code. Or is the Tag Manager not actually part of this problem?
Can you please share the URL to your site, as well as a snippet of the code so that I can see where it’s showing up twice?
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
Hi. Sorry I hadn’t had a chance to reply earlier.
Our plugin doesn’t offer an option for adding the Tag Manager code. Or is the Tag Manager not actually part of this problem?
I have the Google Tag Manager code snippet integrated into the page using a feature my theme offers. I’ve done it this way for many different websites, and it has always worked perfectly. Google Tag Manager drops in the code for Google Analytics. However, the problem here is that this plugin is inserting that same Google Analytics code.
I’m unable to provide a link to the site where this is happening, for privacy reasons. Note that everything else works on the site correctly.
@widerwebs I checked my site and I found that the GA code was only added on the order-received/thankyou page with the below settings:
Link to image: http://cld.wthms.co/FgDpDm
Link to image: http://cld.wthms.co/RnK5GxCan you confirm what your settings are to make it show up elsewhere?
When I check the “Enable Universal Analytics” box, the error with the same property being tracked twice appears on the product pages (single product item), the cart page, and the checkout page. This error is not shown when I uncheck that box. However, as you know, if you uncheck “Enable Universal Analytics” then you can’t use the “enhanced eCommerce” features.
The fix would be to have the plugin insert the Google Analytics code only when the “Enable Standard Tracking” box is checked.
@widerwebs You’re correct, and I must have missed the code before. I just posted a question to the developers here:
https://github.com/woocommerce/woocommerce-google-analytics-integration/issues/137I also wrote this filter, which should disable the standard code on all pages and only have the eCommerce code on the order received page:
https://gist.github.com/jessepearson/4d3032972462c34dfdb460670062d0eeIn which file, in which line to add this code?
Hi @stefan2986
Here is a guide on how to add custom code: https://www.skyverge.com/blog/add-custom-code-to-wordpress/
Me I prefer creating mini custom plugins.
Kind regards,
Hello again,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
- The topic ‘Same web property ID is tracked twice’ is closed to new replies.