How 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 using your Google account. After that, you need to generate Google Analytics tracking code.

Analytics tracking code

The code looks like on the screenshot below.

Analytics tracking code

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

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

And past the js code here

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


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Looking to save a little bit on themes/particles? Use the discount code 20OFFNOW during checkout and save 20% off your purchase.
JoomLead is celebrating Labor Day with 50% OFF all products. Discount code: LD50 Buy Now