Add Google Analytics

How to add Google Analytics to your T3, JA T3v2 or Non-T3 framework template

Follow the steps to add Google analytics to templates developed with JA T3v2 Framework.

#1: using default.php file.

Open the templates/ja_template/page/default.php file then add Google analytics before the </body> or </head> tag.

If you don't see the file, copy plugins/system/jat3/jat3/base-themes/default/page/default.php file then paste to templates/ja_template/page/

#2: using header.php file.

Open the templates/ja_template/blocks/head.php file then add Google analytics to the end of the file.

If you don't see the file, copy plugins/system/jat3/jat3/base-themes/blocks/header.php file then paste to templates/ja_template/blocks/

Follow the steps to add Google analytics to templates developed with T3 Framework.

#1: Via template manager.

Open your template manager, in the Custom code tab then add your Google Analytics code to the Before

or Before field.

Add google analytics

If you don't see the fields from template manager, that means you're not using the latest T3 Framework version. You can upgrade to use the feature or you can manual set up by adding Google analytic code to the head.php file.

#2: Via head.php file

Open the templates/ja_template/tpls/blocks/head.php file then add Google analytics code before the tag.

Add google analytics via head.php

If your template does not use JA T3v1, JA T3v2 or T3 framework such as JA Lens, you can add Google Analytics code before the

tag in the templates/your_template/index.php file.

Add google analytics for non-t3 framework