Hi, I haven’t had much experience of doing this, so I’m hoping you’ll be able to help me out and point me in the right direction of the adding some code into the of pages - an SEO specialist has suggested adding various code and some I’m unsure of where it’s supposed to go! I’ve been told I need to add in the code and not use plugins!
- Google Analytics
Copy and paste code as the first item into the of every webpage you want to track. If you already have a Global Site Tag on your page, simply add the config line from the snippet to your existing Global Site Tag.
- I don’t know how to add the code to every webpage! Do I just do this in the Theme Editor > functions.php I’m not too sure if I need to add any specific code to make sure it’s added to the and is applied to every page.
- Google Tag Manager
Paste the code as high in the of the page as possible.
- I didn’t realise there was a hierarchy! To do this, do I simply add the code in above the Google Analytics code?
Thanks!