Site logo

Archived topic

Google Analytics stopped working

1 reply · Started by Martin on January 5, 2022

Viewing posts 1–2 of 2

Dear team

I have changed the theme in two sites to move to GP. Google Analytics did not work anymore. The GA code is added through a Hook Element in wp_head for the Entire Site.

I could disable plugins, but GeneratePress and those plugins work fine with GA on other sites. So there is nothing different than I have done in those two sites than in others wherein the same plugins work fine. I refer below in the "private information" box to these sites.

This post https://generatepress.com/forums/topic/why-does-the-google-analytics-code-keep-disappearing/ was about the topic but the original poster did not follow it.

Could you please help me with the issue?

Kind regards, Martin

Hi Martin,

This really cannot be a theme issue - as you mentioned that it works in your other sites.

I'd recommend disabling all plugins to test first - perhaps it's some sort of a caching issue.

This archived topic is closed to new replies.