Counter on image to store the number of "clics"

Author Message

laurent le cadet

Thursday 19 January 2006 2:36:01 am

Hi,

I remember that there was a banner system (2.2.7) which was able to store the number of hits on images.

I have promotionnal images with links (http://www.anothersite.com) and clients need to know how many visits comes from them.

Is it still possible (the site is using 3.5.1) ?

Thanks.

Laurent.

laurent le cadet

Friday 27 January 2006 12:39:34 am

Really no solution ?

I'm quiet sure I've seen this before...

Marko Žmak

Friday 27 January 2006 7:28:28 am

Here's one possible sollution:

1) make link on every image to go to content/view/full for that image
2) in content/viewfull do this:
- count the hit for this node using extension ezstats (it's in contib here on ez site)
- redirect the user to the apropriate page using redirect extension (also in contrib)

for this to work you should add an URL attribute to your image class where you can write the URL the user is redirected to.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

laurent le cadet

Friday 27 January 2006 7:33:04 am

Hi Marko,

This sounds good.

I'll be back after the job.

Thanks.

Laurent

Marko Žmak

Friday 27 January 2006 3:07:24 pm

If you have any trouble with ezstats contact konrad, the maker of the extension. And tell him I said hello :)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.