-
AuthorPosts
-
davidrabinov Friend
davidrabinov
- Join date:
- January 2010
- Posts:
- 128
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 15
- Thanked:
- 1 times in 1 posts
February 12, 2010 at 2:39 am #148610Hello,
I need to place Google Analytics in my site with this template.
The way I do it is I insert the code into a Custom HTML Module and set a position for it in the template’s index.php – Very simple.
But in this JA Teline III template you have blocks separating everything.
My question is – Where can I put this module so I can get the proper Analytics reading?
Hope this is clear enough.
Thanks
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 12, 2010 at 3:53 am #332463Hello guy!
Please create a instance of the custom module, and put html source in there, and then you put the module on the footer position.
Good luck
1 user says Thank You to Saguaros for this useful post
July 8, 2010 at 9:20 pm #349361Really? Is this how it’s supposed to be done? I’ve been placing the code into layouts/default.php, layouts/handheld.php, and layouts/iphone.php. Is the module approach more accurate or something?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 9, 2010 at 7:31 am #349421you put this module on the footer position
GOod luck
2 users say Thank You to Saguaros for this useful post
July 12, 2010 at 1:23 pm #349683Thanks, saves a lot of time hard coding
q1234321 Friendq1234321
- Join date:
- June 2010
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
August 17, 2010 at 9:48 pm #352979<em>@davidrabinov 164626 wrote:</em><blockquote>Hello,
I need to place Google Analytics in my site with this template.
The way I do it is I insert the code into a Custom HTML Module and set a position for it in the template’s index.php – Very simple.
But in this JA Teline III template you have blocks separating everything.
My question is – Where can I put this module so I can get the proper Analytics reading?
Hope this is clear enough.
Thanks</blockquote>
Use Google Analytics Tracking Module available at
http://extensions.joomla.org/extensions/site-management/site-analytics/1233
railer Friendrailer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
April 17, 2012 at 5:08 pm #448771<em>@tienhc 185841 wrote:</em><blockquote>Pls try to use this module http://extensions.joomla.org/extensions/site-management/site-analytics/4300?qh=YTo2OntpOjA7czo2OiJnb29nbGUiO2k6MTtzOjk6ImFuYWx5dGljcyI7aToyO3M6ODoidHJhY2tpbmciO2k6MztzOjE2OiJnb29nbGUgYW5hbHl0aWNzIjtpOjQ7czoyNToiZ29vZ2xlIGFuYWx5dGljcyB0cmFja2luZyI7aTo1O3M6MTg6ImFuYWx5dGljcyB0cmFja2luZyI7fQ%3D%3D
you put this module on the footer position
GOod luck</blockquote>
I see that this is an old post. My Google Analytics code needs to be placed just before the closing Head tag. How can I do this? Also, I am using the JA Community+ template for Joomla 2.5 which uses T3 template framework.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 17, 2012 at 5:27 pm #448773Here 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>
-
AuthorPosts
This topic contains 8 replies, has 7 voices, and was last updated by TomC 12 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum