Apologies if this has been asked before, but since google analytics upgraded to Universal, it has stopped working on my blog frankbukowski.com
Logged on to my GA account and it appears to have upgraded itself to Universal, and says I need to paste new Universal tracking code into all my pages. Reading around the internet you get lots of different advice. Many say paste it into the header.php file just before the closing </head> tag, but I assume if I did that, it would be lost whenever the theme updates.
I know Nico has provided a code snippet to be used with the google analytics code, in the functions.php file of a child them. And while
I did create a child theme when I installed Customizr, as Nico recommended, I used the ‘one click’ option, so I only got a style.css file in my child theme. No functions.php file. I’m not a developer so I don’t really know how to create one. If it’s easy, I’d love to know how.
Other people online say use a header and footer text widget to post the tracking code, while yet others say simply use a google analytics plugin, it’s all done for you. While the last option is a good fallback, I’ve got quite a few plugins already so am trying to avoid adding more unless I can avoid it.
Be grateful for any opinions or advice on the best way to proceed.
- The topic ‘Adding google analytics tracking code’ is closed to new replies.