1
msreality
external tracking code
  • 2005/2/6 21:11

  • msreality

  • Just popping in

  • Posts: 36

  • Since: 2004/12/22


I have an external tracking code for site statistics (page views, unique vistors, etc.). In order for the code to work properly for each page that you want to track, you need to include the code inside the table and outside the table.

I have cloned the default template set and name it tracking.
I have added in the corresponding code for the section/pages I want to track to all the pages in this set.
(Both inside and outside of the tables on the page)

But the code does not work properly. I keep getting a message that the code is missing.

Is there somewhere else beside these templates that I need to put the code so that it works properly?

I did notice that each module has its own html pages under blocks that correspond to the template pages...are these additional pages that need to be adjusted or are these pages made up from the template pages?

Any help would be greatly appreciated.
Thanks
Masreality

2
carnuke
Re: external tracking code
  • 2005/2/6 22:21

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Ordinarily, any common script that you want to be included in ALL pages needs to be placed in the theme.html file in your theme folder.

Statistics scripts typically go right at the top, or right at the end, just before the closing tag

This way all pages will be logged.

I really did not understand your method of cloning the default template set etc. I think this may be an error on your part

3
msreality
Re: external tracking code
  • 2005/2/7 4:58

  • msreality

  • Just popping in

  • Posts: 36

  • Since: 2004/12/22


Carnuke, thanks for the reply, I have already done this, I placed the code in the theme.html...and it does work, but it treats all the pages as one without specific page/section detail. I really want to be able to determine which pages are being viewed. (this is how it is on my site currently- one code on the theme.html)

I thought that placing specific code on the templates would help me track specific pages/sections.

example: generate a headlines code and place it on all the template pages for the headlines section in the new template set cloned from the default and given the name tracking, and then activating this new template set.

This does work, but it does not work on the following three modules
News
Newbb
Evennews

For some reason, they all return a message saying the code is missing from the page, but the code is present on the templates.
(BTW, these three modules also report that the code is missing when placed on the theme.html)

Based on your post, is adjusting/cloning the templates incorrect?

Since the theme.html is universal across entire site, and is not section specific....where do I place specific tracking code for each section?
Is this possible?

thanks for the help...
Msreality

4
carnuke
Re: external tracking code
  • 2005/2/7 9:14

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Quote:
Carnuke, thanks for the reply, I have already done this, I placed the code in the theme.html...and it does work, but it treats all the pages as one without specific page/section detail. I really want to be able to determine which pages are being viewed. (this is how it is on my site currently- one code on the theme.html)


I don't know which statistics package you are using here and I guess they tend to work in different ways.

The one I use- phpstats, logs several details about each page viewed in the site. IT can also log click-thus: which gives some indication of the route any visitor traverses the site. How else do you tell which section of a page is being viewed, unless there is a click(s) in that section? All that is recorded without any special changes. Just one snippet of javascript in theme.html

I can't see how you can derive extra information from tracking individual template sets.

Check out my Stats here to see.

I may be missing something here, or you maybe overcomplicating what is required

Bang me over the head, if you like, or maybe someone else will pick up what you are trying to do.

Regards, Richard

5
msreality
Re: external tracking code
  • 2005/2/7 20:08

  • msreality

  • Just popping in

  • Posts: 36

  • Since: 2004/12/22


Quote:

carnuke wrote:
[quote]I don't know which statistics package you are using here and I guess they tend to work in different ways.


Yes they do, and some are more advanced and detailed than others.

Quote:

The one I use- phpstats, logs several details about each page viewed in the site. IT can also log click-thus: which gives some indication of the route any visitor traverses the site. How else do you tell which section of a page is being viewed, unless there is a click(s) in that section? All that is recorded without any special changes. Just one snippet of javascript in theme.html
Check out my Stats here to see.


The program that I am subscribed to is really just a simple script that tracks the info for the page it is placed on ONLY. It is not as advanced as the program/code that you have given an example of.

Quote:

I can't see how you can derive extra information from tracking individual template sets.


I am not gaining extra information, but trying to figure out a way to separate the different pages

Quote:

I may be missing something here, or you maybe overcomplicating what is required


I think the disconnect here is that you assumed the tracking program I am using is a "standard advanced" program.But in actuality my script is not that advanced, it is very simple.

It is not that I am over complicating things, I was trying to work with what I have, "a basic javascript that tracks limited information on the page it is placed on."

Quote:

Bang me over the head, if you like, or maybe someone else will pick up what you are trying to do.
Regards, Richard


Richard, thanks for your help...not sure if I was clear enough above, but I hope that you can understand where I am coming from better...or maybe someone else would like to jump in here and offer some suggestions....
thanks,
Maureen

Login

Who's Online

303 user(s) are online (264 user(s) are browsing Support Forums)


Members: 0


Guests: 303


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits