Tuesday, May 4, 2021

Google Analytics code keeps disappearing from Header.php file

Hi there,

First post in this community, hope you can help me and it becomes usefull for others also.

The google analytics code embed on my site keeps disappearing and I don't know why. I followed the usual steps: copying code from Google Analytics (admin, following information and so one...), then at Wordpress themes, theme editor, search for headder.php and embed the code between tags <head> and </head>. It works fine for a couple of weeks and then, suddenly, I get 0 traffic at analytics. When checked, the code has dissapeared.

A few extra information:

· Wordpress

· Astra theme

· No udpates are done bewteen code working and crashing

Any ideas what can be happening?

Best.

submitted by /u/Environmental_Car328
[link] [comments]

from Search Engine Optimization: The Latest SEO News https://www.reddit.com/r/SEO/comments/n4i71y/google_analytics_code_keeps_disappearing_from/>

No comments:

Post a Comment