Vivek Patel
Vivek Patel

Reputation: 1

Google Analytics tag with wrong GTM ID

I have an application with GTM head snippet. And GTM is set up with Universal Analytics tags for GA.

Everything was working great for months 2/22 - Data from GTM was not being sent to GA and I noticed a new console error

analytics.js:3 GET https://www.google-analytics.com/gtm/js?id=GTM-NZ9RDTS&t=gtm1&cid=116215814.1516126796 net::ERR_ABORTED

The GTM ID is not my GTM ID and I am not sure where its coming from.. any thoughts?

Upvotes: 0

Views: 1303

Answers (2)

Stefan Lilov
Stefan Lilov

Reputation: 131

I had the same experience - new Google Optimize container with draft experiment. The Optimize container has been configured to be served through GTM and GTM container has been published. Whenever tried to check the integration an error appeared. Through Chrome Inspect I saw 404 for www.google-analytics.com/gtm/js?id=

The solution was to publish the experiment. Then immediately unpublished (ended) the experiment as it was not properly configured. The errors related to Optimize container have disappeared.

Upvotes: 0

SKD
SKD

Reputation: 68

I am new to GTM, but I found another reason why there could be an unknown tag registered in GA. According to this discussion post on the community, it is possible that sometimes, a referral link could trigger GA to register foreign GTMs on your GA.

Upvotes: 1

Related Questions