Joomla tips to add Google Analytics tracking code for Gantry5

This tutorial shows how to add Google Analytics tracking code into your Gantry5’s based themes/templates. In order to generate a Tracking ID, you should log in to the Google Analytics website at http://www.google.com/analytics/ using your Google account. After that, you need to generate Google Analytics tracking code.

tcc1

The code looks like on the screenshot below.

tc2

Only add your inline JavaScript code, the script tags will get automatically added for you.

Go to template settings -> select Based Outline -> tab Page Settings

s1 (1)

Scroll down and Add new Custom Css/Js atom -> new js item

s2

And past the js code here

s3

Now just save and you can see the Google Analytics tracking code like this

js