Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • rud0lph Friend
    #175784

    I found this forum info regarding placing Google Analytics code in templates, but in my template the ‘Page’ directory doesn’t exist after the template name and I can’t find the php file in the other directories under my template name. Any ideas? Here’s what I tried to follow:

    <blockquote>Here is the simplest way to add Google or any other analytics/tracking code to this template although there are plugins available on the Joomla Extension Directory (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></blockquote>

    swissa Friend
    #447316

    Hi rudolph

    You have to physically make a new directory called Page under your template. There is not one as standard. Then you can copy the default.php file and modify it.

    Or if you don’t want to do that you can get a plugin program called Easy Google analytics and use that!!

    http://extensions.joomla.org/extensions/site-management/analytics/site-analytics-google-based/17124

    rud0lph Friend
    #447318

    Hi swissa,

    They didn’t mentioned needing to create a new directory. Understand now, thanks for the info.

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

This topic contains 3 replies, has 2 voices, and was last updated by  rud0lph 12 years, 7 months ago.

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