February 12, 2015 at 11:23 am #61809
How do I add the Google Tag Manager code to my site?
I’ve tried putting it in the Google Analytics code box, but the tag still shows up as not installed. It says to put it in the body tag on every page. Is there a way to do that easily, and so I don’t lose the code when updating epix?
I could of course use the traditional GA code, but I want to use tag manager if possible as it’s better for setting up tags, goals, etc.
February 12, 2015 at 2:37 pm #61842
- This topic was modified 4 years, 11 months ago by Tim Hensel.
That code needs to be placed in a slightly different location to the usual tracking code. You’ll need to edit ePix/header.php and locate this line of code:
<body <?php body_class('skinset-background nv-skin '. $preloader ); ?>>
place it directly below the line above.
I hope that helps?February 12, 2015 at 7:55 pm #61856
Thanks for that, I’ll give it a go.
As it’s not changed via the backend in WordPress, does that mean I’d need to re-add it if I update the theme?
Nice theme, by the way 🙂February 13, 2015 at 8:56 am #61876
Thanks for the compliment 😉
Yes it would. However, you can use the ePix Child Theme ( it’s in the main folder you download from ThemeForest ) > copy the header.php from your main ePix folder into the ePix-Child theme folder and activate the Child theme in Appearance > Themes, the core will update and save the keep the modified header.php in the child theme safe.
I hope that helps?February 13, 2015 at 2:41 pm #61895
I’ve been banging my head against this for hours now, nothing seems to work.
I’ve disabled Google Tag Manager and tried installing the GA tag the traditional way in the appropriate box, but I still get the error message Missing analytics.js script from Tag Manager, and Analytics says it isn’t tracking.
Can you help? If you need it there’s a ThemeTrust administrator login still active on my site, I emailed the login details to Tom before.February 13, 2015 at 3:09 pm #61897
OK edit to the above – I’ve removed and reinstated the tag in the appropriate place (Theme options/header/tracking code box) – I did get an error from Tag Assistant saying Code found outside of <head> tag. Perhaps it was still propagating or such like.
GA still says Tracking Not Installed, but I think I’ll leave it overnight and see if it catches up with itself. If I continue to have issues I’ll let you know.
Many thanks – Tim
- This reply was modified 4 years, 11 months ago by Tim Hensel.
You must be logged in to reply to this topic.