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

XF 1.4 Google Analytics

Discussion in 'XenForo Questions and Support' started by DaveM, Dec 19, 2014.

  1. DaveM

    DaveM Well-Known Member

    What is the best way of getting Google Analytics working on my sites. I see when I create an account it tells me to do the following but I am not sure about all of this.

    Website tracking
    This is the Universal Analytics tracking code for this property. To get all the benefits of Universal Analytics for this property, copy and paste this code into every web page that you want to track.

    PHP Implementationoptional
    Create a PHP file named "analyticstracking.php" with the code above and include it on each PHP template page. Then, add the following line to each template page immediately after the opening <body> tag:
    <?php include_once("analyticstracking.php") ?>

    Dynamic Content Implementationoptional
    Use a common include or template to paste the code above instead of manually adding it to every page.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Do an ACP search for 'google analytics'.

Share This Page