test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • alioztr Friend
    #167807

    How can i add a google analytics code for ja teline iv. Where is the template page. How can i find </head> code, because google says you have to put this code before </head> tag.

    Thanks…

    Phill Moderator
    #408555

    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>

    Or there are numerous extensions available on the JED that will do it for you.

    alioztr Friend
    #408560

    <em>@phill luckhurst 262624 wrote:</em><blockquote>into templates>ja_your-template-name>page>default.php and insert your analytics code just before the </head> tag as per below.</blockquote>

    I have no page folder in ja_telineIV template folder. What should i do

    Phill Moderator
    #408568

    Just create one. It will then override the one in the plugin folder.

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

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

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