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.

eZ debug

Timing: Jan 31 2025 04:04:44
Script start
Timing: Jan 31 2025 04:04:44
Module start 'layout'
Timing: Jan 31 2025 04:04:44
Module start 'content'
Timing: Jan 31 2025 04:04:44
Module end 'content'
Timing: Jan 31 2025 04:04:44
Script end

Main resources:

Total runtime0.0126 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 588.2656151.2266
Module start 'layout' 0.00410.0024 739.492236.6797
Module start 'content' 0.00650.0049 776.171994.1875
Module end 'content' 0.01140.0011 870.359433.9922
Script end 0.0126  904.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002015.8857140.0001
Check MTime0.00097.3119140.0001
Mysql Total
Database connection0.00064.911210.0006
Mysqli_queries0.002620.469130.0009
Looping result0.00000.079610.0000
Template Total0.00086.610.0008
Template load0.00065.070410.0006
Template processing0.00021.453310.0002
Override
Cache load0.00043.552710.0004
General
dbfile0.001411.317480.0002
String conversion0.00000.051240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs