Google Analytics

oman

Well-known member
Hi,

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

Thanks
 
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:
2YsLV.png


Any ideas?
 
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.
 
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.
 
Top Bottom