Gossamer Forum
Home : Products : Links 2.0 : Discussions :

question about recording "Hits"

Quote Reply
question about recording "Hits"
Hi all,

I have a couple of questions:

1. Does the hits counter get triggered only via jump.cgi?

2. If this is so (which I assume), how can I record a "hit" for a data record that doesn't ever use jump.cgi. You see, I've set up my links as a way for folks to submit "articles". The articles live on detailed pages and there is never any trigger of jump.cgi. I would like to show hits for each link in the link list -- in other words -- how many times the detail page is clicked. Any ideas on how to do this?

many thanks,
Mike
Quote Reply
Re: [Swaylock] question about recording "Hits" In reply to
1. Yes.

2. This was discussed here last month, I think. You need to set up a second jump.cgi, rename it jump2.cgi (or...?), then set up the deatil page to go through it (...yoururl.com/..../jump2.cgi<%ID>...etc).


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] question about recording "Hits" In reply to
Thanks. I'll give it a try.

Mike
Quote Reply
Re: [Swaylock] question about recording "Hits" In reply to
Also, I think you need to look at the DB name that will be used by your second jump.cgi. Maybe change that, and it to the list at the bottom of links.cfg. And maybe create an empty .db file by that name in your data dir. IF you're wanting to keep track of how many hits that link gets. (You can set up the jump to work without logging hits, too.)


Leonard
aka PerlFlunkie