-
AuthorPosts
-
bramewave Friend
bramewave
- Join date:
- December 2007
- Posts:
- 76
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 27
- Thanked:
- 2 times in 1 posts
March 19, 2011 at 1:50 am #161646I am currently using Joomla 1.6 for this template. Does any one have a clue on how to install Google Analytics?:confused: Any and all help is appreciated.
1 user says Thank You to bramewave for this useful post
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
March 19, 2011 at 4:02 am #382186you can use one of these extensions in joomla extensions directory
http://extensions.joomla.org/extensions/site-management/site-analytics
bramewave Friendbramewave
- Join date:
- December 2007
- Posts:
- 76
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 27
- Thanked:
- 2 times in 1 posts
March 19, 2011 at 2:00 pm #382256Where do I place the tracking code? I cant find the /head tag it is not in the index.php file
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 19, 2011 at 2:23 pm #382258Here 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>bramewave Friendbramewave
- Join date:
- December 2007
- Posts:
- 76
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 27
- Thanked:
- 2 times in 1 posts
March 19, 2011 at 2:38 pm #382261the page folder is not present in my template folder…Do I need to create it and place the default.php file in there?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 19, 2011 at 3:02 pm #382267Please re-read what I wrote above. It tells you to copy the folder from the plugin folder into your template folder.
<blockquote>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.
</blockquote>
bramewave Friendbramewave
- Join date:
- December 2007
- Posts:
- 76
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 27
- Thanked:
- 2 times in 1 posts
March 19, 2011 at 3:14 pm #382269Do I need all the contents of that folder? I just made a page folder under my templates, I placed the default.php in there and it seems to be working, Just want to be sure I am doing this correctly.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
-
AuthorPosts
This topic contains 8 replies, has 3 voices, and was last updated by Phill 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum