Support Forums

Google Analytics simple question

This is a discussion on Google Analytics simple question within the TemplateCodes forums, part of the Third Party Support category; I am trying to add tracking code to my site. I am using sigma templates. Could some one pls let ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 08-08-2011, 03:43 PM   #1
Customer
 
Join Date: Oct 2008
Posts: 31
Rep Power: 14
ebee is on a distinguished road
Default Google Analytics simple question

I am trying to add tracking code to my site. I am using sigma templates. Could some one pls let me know which "template page" or pages I need to modify when google advised as follows: (also see screenshot). I have created a analyticstracking.php file and uploaded to root of my web. Now just need to amend the template files but not sure which ones!

Paste this code on your site
Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag.
For any PHP pages, put the following code in a file (for example, analyticstracking.php) and upload it to your site. Then, add the following line to each template page immediately after the opening <body> tag: <?php include_once("analyticstracking.php") ?>


ebee is offline   Reply With Quote
Old 08-08-2011, 04:04 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,378
Rep Power: 72
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

This code should go into the layout.tpl template page as that is the overall (shell) template page which all other template files are placed within.

When adding javascript to a template file you should also follow the smarty rules and place it between:
{literal}
... your javascript code here ...
{/literal}
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 08-13-2011, 12:01 PM   #3
Customer
 
Join Date: Oct 2008
Posts: 31
Rep Power: 14
ebee is on a distinguished road
Smile Thank you for the help!!

Quote:
Originally Posted by Mike-N-Tosh
This code should go into the layout.tpl template page as that is the overall (shell) template page which all other template files are placed within.

When adding javascript to a template file you should also follow the smarty rules and place it between:
{literal}
... your javascript code here ...
{/literal}
Thanks for that - I have added that to my website as you suggested.
ebee is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Analytics question QuickQuestion Pre Sales Questions 2 05-25-2010 06:51 AM
Google Analytics EnergyFreak Technical Support 2 02-19-2010 09:36 AM
Google Analytics Mark Kelly Technical Support 3 07-10-2009 07:24 PM
Google Analytics tom11011 Technical Support 1 12-11-2008 10:17 PM


All times are GMT -4. The time now is 11:47 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0