PDA

View Full Version : Adding Web-Stat Tracking Code


zacsmith
28th of June 2004 (Mon), 18:07
I use the Web-Stat service to track visitors to my sites and their movements through the pages. I'd like to be able to add the tracking code to EE 1.5 RC4 pages, but am unsure where to add it. Can you help? Here's the code, which needs to be placed between the body tags:

<!-- Begin Web-Stat hit counter code -->
<script type="text/javascript">
<!--
var page_name = '';
var invisible = '';
var framed = 'no';
function sE(){return true;}window.onError=sE;var base=document;
if(framed=='yes'){base=top.document;}var rn=Math.random();
var ui='123s';var al='Web-Stat hit counters';
var qry=ui+':2::'+escape(base.referrer)+'::'+screen.wi dth
+'x'+screen.height+'::'+screen.colorDepth+'::'+esc ape(page_name)
+'::'+invisible+'::'+rn+"::"+escape(base.URL);
document.write('<a href="http://www.web-stat.com">');
document.write('<img src="http://server3.web-stat.com/count.pl?');
document.write(qry+'" border="0" alt="'+al+'"/><\/a>');
//-->
</script><noscript>
<a href="http://www.web-stat.com">
<img src="http://server3.web-stat.com/count.pl?zackbass:2::NoJavaScript" alt="Web-Stat hit counter" border="0"/>
</a></noscript>
<!-- End Web-Stat hit counter code -->


This code will report the view of the page it is on to my account with web-stat.com along with the rest of the site.

Thanks for any ideas!

zack

photocroatia
28th of June 2004 (Mon), 20:57
I have added my tracking code in the footer, you can either enter it here:
SETTINGS:
misc Settings
footer html

or
gallery/languages/xxx/footer.php

or
gallery/footer.php

zacsmith
28th of June 2004 (Mon), 21:39
Thanks for the help! I'll give it a try in the morning and report back my results.

zack

mvrekum
5th of July 2004 (Mon), 08:30
And how do you add a counter code to each page individualy?

I also have a counter added to the footer, but I would like to track each page/gallery with its own counter.

Martin

okapi
6th of July 2004 (Tue), 16:04
martin,
don't forget, this is php. there are no written html pages, they are only produced by the php software when a page is called by a browser.

with EE there is the index page, the photo page and the list page (archive) where you can put the code in (or on additional pages that you have created by yourself. for instance, as i did with my about page and my links page.

Pekka
6th of July 2004 (Tue), 17:08
And how do you add a counter code to each page individualy?

I also have a counter added to the footer, but I would like to track each page/gallery with its own counter.

Martin

EE has its own counters for index page, each photo page and gallery browser page.

jseaman
27th of March 2006 (Mon), 23:27
EE has its own counters for index page, each photo page and gallery browser page.

I resurrected this rather old thread because I have the same issue and it was never resolved in this thread.

EE has a counter but what I want is to add tracker code to each gallery page (or even each photo page) - is there any way that the code would just paste into the gallery description section or photo description sections? - it almost seems to work but not quite. I'm not sure what is happening to it. The graphic appears along with some of the html code and a link forms that works but the visitor is never recorded properly. The code that I'm pasting in is:

<a href="http://t.extreme-dm.com/?login=compa7"target="_top"><img src="http://t1.extreme-dm.com/i.gif"name="EXim" border="0" height="38" width="41"alt="eXTReMe Tracker"></img></a><script type="text/javascript" language="javascript1.2"><!--EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//--></script><script type="text/javascript"><!--var EXlogin='compa7' // Loginvar EXvsrv='s9' // VServernavigator.javaEnabled()==1?EXjv="y":EXjv="n";EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";EXd.write("<img src=http://e0.extreme-dm.com","/"+EXvsrv+".g?login="+EXlogin+"&amp;","jv="+EXjv+"&amp;j=y&amp;srw="+EXw+"&amp;srb="+EXb+"&amp;","l="+escape(EXd.referrer)+" height=1 width=1>");//--></script><noscript><img height="1" width="1" alt=""src="http://e0.extreme-dm.com/s9.g?login=compa7&amp;j=n&amp;jv=n"/></noscript>


and the page it is pasted into is: http://www.jseaman.com/ee/list.php?exhibition=1

I also have pasted it into the news section of my index page: http://www.jseaman.com/ee/and I get identical results.

Suggestions?

Pekka
28th of March 2006 (Tue), 05:04
Do not add it to photo description text, but into template (outside of any html tags). In your example automated line breaks kill your code.