StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > > Help

Closed Thread
Thread Tools Display Modes
Old 04-30-2012, 10:51 AM
terraling terraling is offline
Junior Member
Join Date: Apr 2012
Posts: 1
Default Using jquery getScript in onload function seems to break statcounter


I've been using the normal statcounter code on my site no problem for a long while, but I've trying to take a more hands on approach to managing the pageload, and I don't want statcounter to load until the end.

So I have an window.onload function which includes a jquery call to pull in the statcounter script

	//Load statcounter code
	var sc_project=6556413; 
	var sc_invisible=1; 
	var sc_security="xxxxxxx";
Should be fine, I think, but I'm not seeing any activity in my statcounter pages (from computers that don't have the cookie to exclude my own visits).

Does anyone recognise why this might not be working?

Thanks for your help.
Closed Thread

jquery, onload

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 08:27 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.