-
AuthorPosts
-
May 27, 2011 at 3:52 pm #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 32) 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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
May 27, 2011 at 4:09 pm #393220Here 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>1 user says Thank You to Phill for this useful post
May 27, 2011 at 4:14 pm #393223TOP JOB PHILL – Thats sorted that 🙂 Thanks 😉
November 15, 2012 at 5:56 pm #473049Hi, 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! 🙂
-
AuthorPosts
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