Archived topic
GPP / Remove incorrect Google Analytics tag
3 replies · Started by Jan on January 20, 2022
Hi David,
I'd appreciate your view regarding an issue similar to this.
When I review the source code of the page (see link below) I get 6 hits for the search term "UA-". 5 hit reflect the correct ID. This one is incorrect.
What I have checked:
- Elements Hooks related to Google Analytics
- Config of Borelabs Cookie plugin
- Ran a troubleshooting in the staging environment, using this threat and a standard theme
- As soon as I get to step 5 and activate the GPP plugin, the incorrect UA-ID pops up in the source code
What would be your next step?
Thanks in advance.
Best,
Jan
Hi Jan,
The theme itself, by default, does nothing or adds nothing of this sort.
It literally just hooks in what user types in.
Here's a few things to be checked:
You may want to check if the site has some sort of page caching either from a CDN or a from the hosting itself. Check for any plugins that page caches this as well.
It's possible that the ID was previously incorrect, and his incorrect ID got cached so even when the script was corrected, the cached incorrect ID was still served.
As for hooks, try double-checking if you've checked the right element. Try checking for old snippets as well if by any chance, you've initially hooked this manually using a PHP snippet before hooking it through a GP element. :D
Hi Elvin,
especially your hook related suggestion was helpful.
We managed to remove the tag.
Best,
Jan
Glad to hear that