Tracking hits to a javascript redirected page.
Hello all.
The code below is what I am using to redirect a page. What I would like to know is how would I track the hits to this page?
I use HitBox for the tracking, but the redirect is set to 0 and I don't want to slow the redirect down.
Does anyone have any ideas how I can keep track of the hits to this page?
</script>
It appears that your browser does not support JavaScript, or you have it disabled. This site is best
viewed with JavaScript enabled.
If JavaScript is disabled in your browser, please turn it back on then reload this page.
Or, if your browser does not support JavaScript, click here.
Kind regards
http://www.contesthound.com
Contests and Sweepstakes Directory.
Vincent Puglia posted this at 11:19 — 10th July 2000.
They have: 634 posts
Joined: Dec 1999
Hi,
Other than its name, I'm not familiar with HitBox. You're trying to count the redirects from the original page? Why don't you simply put a different counter on the redirected page? If you want to know how many hits for each site, you can do the subtraction manually -- orgPageCount - redirectPageCount
Vinny
Where the world once stood
the blades of grass cut me still
artnow posted this at 16:30 — 10th July 2000.
They have: 32 posts
Joined: May 2000
Thanks for your reply.
I should have mentioned that I am trying to track the hits from my opt-in newletter.
I place a link http://www.members.home.net/contesthound/spotlight/LinkName.htm and this page (LinkName) is the page that redirects to the appropriate affiliate site.
In hindsight, that would be an important detail LOL.
HitBox incidently is a free tracking service that asks you to place a small ad of theirs in exchange for tracking.
Thanks again.
Bob
http://www.contesthound.com
Contests and Sweepstakes Directory.
Vincent Puglia posted this at 18:42 — 10th July 2000.
They have: 634 posts
Joined: Dec 1999
Hi artnow,
Alright, I'm still not sure, but...
To count the hits, you need to use a counter somewhere along the line -- either where it's leaving or where it ends up. And the only real counters are cgi/server.
If we're agreed on that, you can determine where they come from with:
switch (document.referrer)
{
case "somepage.html":
....some code to call counter1....
break;
case "somepage2.html":
....some code to call counter1....
break;
...etc...
default:
....some code to call counter1....
}
But, even the above is better handled by cgi.
I've a feeling this isn't what you need, but what the hay --gave it a stab anyway.
Vinny
Where the world once stood
the blades of grass cut me still
Lloyd Hassell posted this at 13:45 — 11th July 2000.
They have: 231 posts
Joined: Feb 2000
If your server supports CGI then I suggest asking for help in the CGI forum. I am sure someone there has a free hit counter script you can use. If your server supports ASP I can help you out.
:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::
artnow posted this at 17:08 — 16th July 2000.
They have: 32 posts
Joined: May 2000
I appreciate all the help. What I have done in the past few days is get myself my own domain name and I am getting it hosted on a server that has all the bells and whistles including PHP, CGI and more.
I will get back to this issue once I finish transfering things over and getting an idea of what PHP, CGI and the rest can do.
Thanks again for all your help!
Bob
http://www.contesthound.com
Contests and Sweepstakes Directory.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.