Google Analytics Code AMP Issue
-
[ Moderator note: moved to Fixing WordPress. ]
I just got an issue report from the Search Console about errors on my amp pages. It’s basically saying that a script is not compatible to the format. When I checked what it was, it turned out to be the Google Analytics Tracking code that was triggering the error. And so I made sure to remove the code on my Yoast SEO plugin or Yoast Glue plugin and even transferred the analytics tracking to Monster Insights.
Now, is it recommended for me to remove the Analytics tracking code in the header.php file? Will it solve the issue or will I have more problems to deal with if I do this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Google Analytics Code AMP Issue’ is closed to new replies.