Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Well I'm starting working on storing the IP of the visitor, adding a timestamp, and allow new click only every X hours.
If anybody want to help (I'm going to add more field for the views I created in my last post)
Comments
Comment #1
kbahey CreditAttribution: kbahey commentedActually, if you want to change the module, then better take a step further and normalize the database.
Ideally, each click will cause a new row to be inserted, rather than the incrementing that happens for day/week/month today.
This way,
Another useful thing is to make the campaigns descriptive rather than just numbers. So the settings page will have a tab where you can add a new campaign which are stored in a separate db table.
We could not do a GROUP BY gid to see all clicks from a certain campaign and do BETWEEN on timestamp for clicks within a certain time frame, and many other neat things.