- This topic has 7 replies, 3 voices, and was last updated 3 years, 4 months ago by
David.
-
AuthorPosts
-
September 19, 2019 at 6:23 am #1013478
Scott
Hi
I’m in the process of being set up with an advertising network and they have identified that I have duplicate Google Analytics tracking codes installed.
However, we’re having trouble tracking down where these codes are located. The ad network suggested I clear server level caching which I have done but this didn’t fix the issue.
Would you mind please taking a look?
September 19, 2019 at 9:30 am #1013754Leo
StaffCustomer SupportHi there,
Can you check Hooks Element first?
https://docs.generatepress.com/article/hooks-element-overview/That’s the only place you should be adding GA code in GP.
Let me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 19, 2019 at 9:43 pm #1014136Scott
Hi Leo
Thanks for your reply.
Neither of the Analytics tracking codes are located in the Hooks Element from what I can see. I’m aware this is the correct place for them to be added. I think they would have been added prior to the launch of GP Elements – would this make a difference?
I’m using the Google Tag Assistant Chrome plugin which confirms there are two instances of the Analytics code on the site.
September 20, 2019 at 1:58 am #1014225David
StaffCustomer SupportHi there,
in Appearance > Elements can you see Legacy Hooks button at the top of the screen?
If so check inside there.If not – do you have a child theme functions.php or the Code Snippets plugin installed. This is where the codes could also be.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 20, 2019 at 7:22 am #1014433Scott
Hi David
I hadn’t noticed the Legacy Hooks button so thanks for pointing that out. There was indeed a Google Analytics Global site tag (gtag.js) there.
After disabling this, Google Tag Assistant now reports only one occurrence of the analytics code, which is great. My remaining issues are:
– I don’t know where the remaining analytics code is located
– Google Tag Assistant is reporting that the remaining code is a non-standard implementation, meaning they have detected Google Tag Manager web requests, but were not able to find the code snippet on the page.Regarding your final point, I’m not using a child theme, I am using the Code Snippets plugin but there are no snippets containing analytics code.
September 20, 2019 at 9:31 am #1014641David
StaffCustomer SupportHave you checked any Plugins?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 20, 2019 at 11:28 am #1014739Scott
Hi David
I’ve found the remaining code – in my Google Tag Manager setup I had implemented a Universal Analytics Tag.
Thanks again for your help.
September 20, 2019 at 12:52 pm #1014782David
StaffCustomer SupportGlad to hear you found the answer
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.