XF 1.3 Manually adding Google Analytics to the footer


Well-known member
Hi guys I'm a vBulletin old school guy. I know that XF easily allows you to put your Analytics ID to automatically start gathering data however I want to use Universal Analytics with Demographics & Interests Data (in black).

  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  ga('create', 'UA-XXXXXXX-X', 'auto');
  ga('require', 'displayfeatures');
  ga('send', 'pageview');
So I tried inserting that code snippet to the end of my footer template (like I do on vBulletin) however Google says that the tracking code isn't installed. I don't know what I'm doing wrong... please help.


XenForo developer
Staff member
If you see the code in the source of the page, it's really down to what Google may or may not be reporting. If you don't see it in the page, I suspect there was a mistake with where you added it.