I install google analytics on my website and after some time it just disappears away from my header.php file. What could possibly be the reason? I was literally sad today for having zero visitors then I realized GA is not even working
3 Answers
Best Answer
Just use a plugin like MonsterInsights. It's super easy and straightforward, doesn't bloat your WordPress with codes, and doesn't affect scripts. I don't understand why people always make the more difficult and complicated options without having proper dev knowledge. That's what plugins are for.
If you placed a script inside the theme and you updated it, your scripts will go away.
I would recommend using a script management plug in for your WP site for this so your scripts stay intact.
I would recommend using a script management plug in for your WP site for this so your scripts stay intact.
Please login or Register to submit your answer