Limits Up
Welcome, Guest. Please login or register.
September 07, 2008, 07:28:43 AM

Pages: [1]
Print
Author Topic: Where to add visitor tracking code-snippet?  (Read 416 times)
brusselsshrek
Full Member
***
Posts: 213



« on: March 16, 2008, 11:38:55 AM »

I wish to add to the site the ability to track visitors to the site (either with http://statcounter.com or with Google Analytics), but where do I add such visitor-tracking code snippets?  These stats sites supply a small piece of JavaScript code which normally should be placed just before the </body> tag.

Now, the question is, where precisely do I put such a code snippet, so that all generated pages contain tracking?  Thanks!


Hugh
http://romeobox.com
Logged

http://romeobox.com - RomeoBox dating site
Easton
Sr. Member
****
Posts: 427


« Reply #1 on: March 16, 2008, 01:56:22 PM »

This is a problem i have as well.... it is taking me an awful very long time to try to find this </body> tag location. I even try through FTP and no success

Hope we can get an response on this

Easton
Logged
david
Jr. Member
**
Posts: 95



« Reply #2 on: March 16, 2008, 04:44:14 PM »

take a look at the code located at the bottom of my site. hope this helps.
Logged

Adden
Administrator
Sr. Member
*****
Posts: 279



« Reply #3 on: March 16, 2008, 11:38:34 PM »

I usually add the same code here:
File: inc/class.frontend.php
Line: 432
Function: display()
You can find tags <body> and </body> in this function.
It calls in every page of site and this is an ideal place to insert tracking code in software
Logged
Easton
Sr. Member
****
Posts: 427


« Reply #4 on: March 17, 2008, 12:25:48 AM »

that location works,

Thanks
Easton
Logged
Pages: [1]
Print
Jump to:  

You are here: Skalfa » Support » Discussion Boards