• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Google Analytics

oman

Well-known member
#1
Hi,

What is the best way to implement Google analytics on a XenForo website without having to put the code in every template?

Thanks
 

Walter

Well-known member
#2
No need to add it into every template - go into the admin panel and click on "Options", Statistics and Metrics.

Or use the free alternative Piwik.
 

gmaister22

Active member
#4
I have added my code in that form

UA-XXXXX-Y

But i get:
Status: Tracking Not Installed


I inspected the html of my site and its there:


Any ideas?
 
#8
which looks much better :) but how to plug it into xf? on the options/stats page there is a slot
for google analytics of course, but nothing else, so how do i tie this into xf?

Thanks

No need to add it into every template - go into the admin panel and click on "Options", Statistics and Metrics.

Or use the free alternative Piwik.
 

Edrondol

Well-known member
#11
I have mine in page_container and it works fine. But be aware that if you upgrade XF you remember to redo it, otherwise Piwik will be trying to connect with everything you do and will slow you down.