Help - Search - Members - Calendar
Full Version: __utm.js on every page?
The Planet Forums > Control Panels > Urchin
chmod
I am new to urchin, and its running perfect so far. I would like to know if the code to insert __utm.js needs to be placed on every page. It doenst seem to have to, but what will I gain out of putting it on every page? I can already see other page hits without the code being inserted on the other pages besides the index.
Thanks
-chmod
sisterscape
I understand the the UTM provides data specifically for Visitors & Sessions. I was told that the code should be on every page that you wanted included in that data.
chmod
so was I, but my question is....is it needed? I get data about pages that don't have the code...
orca
I have it on one page and it doesn't get me more info as with pages without it. For example, unique visitors I always have 0...
sisterscape
QUOTE
Originally posted by chmod
so was I, but my question is....is it needed? I get data about pages that don't have the code...

You can get plenty of data without UTM. UTM is only needed for the Visitor & Sessions stats. UTM still isn't installed on my server after more than six months and all the rest of the stats run just fine.
daveman692
I installed UTM and have to admit it is very cool. It is designed for stats such as returning visitors.
projectandrew
I am not sure the technical details of UTM but I am guessing that the first page a visitor hits on your site that contains the UTM code will have a cookie written to their local machine that will be retained for that session. By putting the code on every page you are ensuring that not matter which page a user enters, they will have this cookie sent to them straight away, therefor you can capture the most accurate stats.

If you don't want to include the code on every page manually, there are other ways of doing it, such as HTTP Headers (I think) or includes. I run PHP-Nuke, so it's straight forward for me - I just add the line to includes/my_headers.php and it is automatically included on every page.
chmod
ok, I have a much better understanding now. I think ill just add it to every page.
projectandrew
Did you end up doing it manually, or did you create some automatic way of inserting the code? Just interested to know, as I am currently revising the how-to with some extra stuff.
chmod
I did it manually, because I only had like 10 pages...if it was more I would have gotten a way to just get it auto inserted..
TheQuirk
QUOTE
Originally posted by chmod
ok, I have a much better understanding now. I think ill just add it to every page.


You could make a small script that would echo that little thing onto the top of all pages...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.