Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • acornfencing Friend
    #164517

    Hi I have two resources to add google analytics to Joomla

    1) Is to copy the code provided via google and insert in HTML editing template from administrator area
    problem: There is no HTML to edit in this area as its JAT 3

    2) Use module and instructions provided via http://www.tedesco.net.au/joomla/janalytics/janalytics-documentation however again this requires some basic HTML editing which i can not find within website directory

    So I ask very nicely does anyone have a 3rd option or solutions to the above that will enable me to easily add google analytics to JA Portfolio?

    Kind regards

    Luke

    Phill Moderator
    #393220

    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>

    acornfencing Friend
    #393223

    TOP JOB PHILL – Thats sorted that 🙂 Thanks 😉

    procasa Friend
    #473049

    Hi, i cant find the ‘page’ subfolder into my ja_portfolio folder. I got: blocks, css, etc, html, images, info, js, language, themes, but none called ‘page’.. Some help, please!

    <several minutes later>

    Ok, i just found i’ve got to create the ‘page’ folder and put de default.php into it. It’s done and working.

    Thanks anyway! 🙂

    Phill Moderator
    #473052

    Glad you found it. Good luck with your site and be sure to come back and show us your completed masterpiece in the showcase forum.

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

This topic contains 5 replies, has 3 voices, and was last updated by  Phill 12 years ago.

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