Bullogna
02-08-2008, 12:48 PM
Hello all,
We track visits to our web page by putting an IMG tag on our page like this one:
<IMG width=1 height=1 SRC="http://###.xxx.com>
Nothing is actually downloaded or displayed on the page by this tag, obviously - we just log the calls to http://###.xxx.com to count the visits to the page.
Unfortunately, whenever someone uses Print or Print Preview (using IE at least), another call is made. Print Preview is particularly bad since any change to the layout in Print Preview mode will make another call. This greatly inflates our visit numbers.
One way I thought of to deal with this is to use JavaScript to somehow remove the IMG tag after the page loads. If so what would be the syntax for that? (I'm not too good with JavaScript yet so please spell it out.)
Any other possible solutions?
Thanks!
We track visits to our web page by putting an IMG tag on our page like this one:
<IMG width=1 height=1 SRC="http://###.xxx.com>
Nothing is actually downloaded or displayed on the page by this tag, obviously - we just log the calls to http://###.xxx.com to count the visits to the page.
Unfortunately, whenever someone uses Print or Print Preview (using IE at least), another call is made. Print Preview is particularly bad since any change to the layout in Print Preview mode will make another call. This greatly inflates our visit numbers.
One way I thought of to deal with this is to use JavaScript to somehow remove the IMG tag after the page loads. If so what would be the syntax for that? (I'm not too good with JavaScript yet so please spell it out.)
Any other possible solutions?
Thanks!