XF 1.4 Google Analytics

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.
 
Top Bottom