Hi, thanks for this great module!
I was wondering is it possible to increment a counter every time a redirect link is clicked?
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | path_redirect-hit-count-265299-14.patch | 4.15 KB | traviscarden |
| #12 | path_redirect-hit-count-265299-12.patch | 4.17 KB | traviscarden |
| #8 | counter-265299-8.patch | 2.88 KB | hedac |
| #6 | path_redirect.module.patch | 858 bytes | hedac |
| #6 | path_redirect.admin_.inc_.patch | 921 bytes | hedac |
Comments
Comment #1
tobiass commentedA counter would be very useful and informative. I wonder, that no one else would like to have this feature.
+1 for this idea
Comment #2
dave reidNew features should be made for the current version. Someone write a patch if you want the feature, otherwise I'm leaving this postponed.
Comment #3
nekobul commentedI have implemented redirect counter support. Find attached the patch for 5.x-1.2 version.
Comment #4
dave reid5.x is closed for feature requests
Comment #5
hedac commentedcan this be implemented in 6.x?
Comment #6
hedac commentedok this is my first patch for 6.x-1.x dev
but you have to manually create the counter field in the database. int(10)
so far it seems to work
sorry if the patch are wrong.
Comment #7
hedac commentedcan someone help how to patch #6 the module so it can add the database changes when running in update.php ? I don't have a lot of drupal programming experience yet. It only has to add an Int field named counter.
Comment #8
hedac commentedI think I have done the Git patch correctly.
This is for latest 1.x dev
Adds counter field to the database. You must use update.php.
Increments the counter field each time the redirect is used.
Displays counts in the redirect listings.
Please review.
Comment #9
hedac commentedComment #10
zazinteractive commentedI tried it. Seems to work properly
Comment #11
tchronister commentedThis is cool. Could this same concept lead to further reportage beyond counter, for instance, date, time, unique IP? I currently glean most of the redirect reportage from the core reportage (Top Pages), but it is tedious. I have specific redirects that go to external URLs and I am trying to capture and report back to my team not only how many have passed through the redirect but also individual date/time and IP. Suggestions?
Comment #12
traviscarden commentedGood work, @hedac. I've made a few small changes:
@tchronister: For posterity, this might be of interest: #635116: Click tracking.
Comment #14
traviscarden commentedOops. Silly mistake.
Comment #16
traviscarden commented#8: counter-265299-8.patch queued for re-testing.
Comment #17
traviscarden commentedAll right, well I don't know what's making my patches fail, because I can't even get HEAD to pass on my test environment, and I don't have time to work that out right now. Let's just call #12 feedback on @hedac's patch for today. Thanks.
Comment #18
prashant.mahabare commented#3: counter.patch queued for re-testing.
Comment #19
stackpr commentedPatch in #265299-14: Add a hit counter worked well for me against 6.x-1.x.