test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • kyovev Friend
    #171150

    I want to add google analytics code. How can i do it for this template?

    TomC Moderator
    #426753

    Here is the simplest way to add Google or any other analytics/tracking code to this template although there are plugins available on the JED that will aslo do the job if you do not like playing with the code.

    Copy the file plugins>system>jat3>jat3>base-themes>default>page>default.php

    into

    templates>ja_your-template-name>page>default.php
    and insert your analytics code just before the </head> tag as per below.

    <head> <?php //gen head base on theme info $this->showBlock (‘head’); ?> <?php $blocks = T3Common::node_children($this->getBlocksXML (‘head’), ‘block’); foreach ($blocks as $block) : $this->showBlock ($block); endforeach; ?> <?php echo $this->showBlock (‘css’) ?>************YOUR ANALYTICS CODE HERE*************</head>

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  TomC 13 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum