Archived topic
Pasting Analytics into Header/Footer
7 replies · Started by Salvatorie on July 29, 2015
Tom,
Using Google Analytics in GP it was recommended that I used "Insert Header and Footer" but I see it's not compatible with 4.2.3...any suggestions?
Sal
Do you have GP Hooks? You can insert the code into the wp_head or wp_footer hooks if you do :)
I do have Hooks in the full Add-On's... I will check it out.
Thanks
Regards,
Sal
Cool - let me know if you have any issues with it :)
Tom,
So I am assuming I go into Hooks, place the Tracking Code for Google Analytics into "After Header Content ???" and not execute the "PHP"?
And this goes on every page I want analysis for....right? i.e. like side bar, Before or After?... Before Content etc??
Confusing somewhat!
Regards,
Sal
You want to place it into the wp_head hook - no need to Execute PHP.
This will add it to every page on your website.
TOM,
Got your email... So just place the Google tracking code script into wp_head only and that places it on all pages....
Great... I will do that and I will let you know...
Again, thanks for the fast feedback.... great to work with professionals!!
Regards,
Sal
Cool - it may take up to an hour to start tracking.
Glad I could help! :)
