[Zope] Link counter

Andy McKay andym@ActiveState.com
Tue, 5 Dec 2000 12:36:37 -0800


FSCounter happily counts things effeciently on the file system and could be
used for counting, followed by a redirect as Chris says.
--
  Andy McKay, Developer.
  ActiveState.

----- Original Message -----
From: "Chris Gray" <cpgray@library.uwaterloo.ca>
To: "Brendon Grunewald" <brendon@70south.com>
Cc: <zope@zope.org>
Sent: Sunday, December 03, 2000 8:47 AM
Subject: Re: [Zope] Link counter


> You want something like this in your linking page:
>
> <form action="count_and_pass">
> <input type="hidden" name="target_url" value="http://www.zope.org/">
> <input type="submit" value="Go to Zope.org">
>
> OR
>
> <a href="count_and_pass?target_url=http%3a//www.zope.org/">Go to
> Zope.org</a>
>
> Then you need a 'count_and_pass' DTML Method like:
>
> <dtml-call increment>
> <dtml-call expr="RESPONSE.redirect(_['target_url'])">
>
> and a ZSQL Method called 'increment' that takes 'target_url' as an
> argument and increments the count for that URL.  Or you can get fancier
> and use the ZSQL method to record each click through along with date and
> info like the users IP and the refering page.  These last will be in the
> REQUEST from the linking page.
>
> Cheers,
> Chris
>
> On Sun, 3 Dec 2000, Brendon Grunewald wrote:
>
> > I have recently been asked by a partner site to provide them with a
count of how many times someone links from my site to theirs. Since there
are many ways they could hyperlink to that site (Squishdot articles, normal
links, banner ads etc), is there a way in zope to keep track or to extract
that info? OR am I stuck with the server logs?
> >
> > Regards,
> > Brendon
> > ------------------
> > 70South: the No.1 source for Antarcticles.
> > For the latest news and views on Antarctica visit :
http://www.70south.com
> >
>
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>