1
torrent
Add javascript statistics code
  • 2006/5/27 5:06

  • torrent

  • Just popping in

  • Posts: 7

  • Since: 2006/5/25


Hey guys,

I'm trying to add code to my site that was provided to me by my search engine optimizer service in order to track visitors and provide statistics to me.

The code is this:

<!-- Javascript EngineSeeker.com Code Snippet -->

<script type="text/javascript" language="javascript">
var base = "http://stats.engineseeker.com/clients/_tools/record_stats.php";
var refer = escape(document.referrer);
var agent = navigator.userAgent.toLowerCase();
var aN = escape(navigator.appName);
var aV = escape(navigator.appVersion);
var os = escape(navigator.platform);
var res = escape(screen.width+ 'x'+screen.height);
var url = escape(document.location);
var java = navigator.javaEnabled();
var id = "17905";

var query_url = base+"?id="+id+"&res="+res+"&http_user_agent="+agent+"&aN="+aN+"&aV="+aV+"&java="+java+"&os="+os+"&http_referer="+refer+"&url="+url;

document.writeln('<img src="' + query_url + '" border="0">');
</script>
<noscript>
<img src="http://stats.engineseeker.com/clients/_tools/record_stats.php?id=17905" border="0">
</noscript>

But, how can I add it so that it works on my website? I tried to put it in a custom block (although I didn't make it visible) because I don't want people to see the code.

Thanks,
David

2
JulioNC
Re: Add javascript statistics code
  • 2006/5/28 2:12

  • JulioNC

  • Quite a regular

  • Posts: 239

  • Since: 2004/10/8


edit theme.html and to add the code
before </head>

3
msdana
Re: Add javascript statistics code
  • 2006/5/28 2:51

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


Check with the service. Some services tell you to place it before the <head> in your theme.html, some tell you to place it in <body> of your theme.html.

It's best to follow their instructions.
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

Login

Who's Online

149 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 149


more...

Donat-O-Meter

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

Latest GitHub Commits