-
- 654 Posts
Hi,
A client would like to be able to track the number of times a link has been clicked. The link is to a video and I can't use "embed" code. I've searched Google, the forum and the packages and can't find something that would obviously work.
I think the same solution would work for a click on a PDF, which is another request I am anticipating.
Can anyone point me to a snippet or bit of code or clever use of a template variable that would accomplish this?
Thanks in advance for the patience. I've been away from MODx for awhile and fear I'm a bit rusty!
Regards,
mconsidine
-
- 571 Posts
This looks like it might do what you want
https://modx.com/extras/package/hits
-
- 932 Posts
As above ^
Although I also noticed a new extra was released yesterday called 'looked' which may also do what you want.
-
- 142 Posts
^ Some Usage Documentation would be nice also.
-
- 114 Posts
1. Get onclick with Juery and send post via AJAX.
2. Capture Ajax with simple snippets on page.
3. getTVValue, +1, setTVValue, save at snippet.
Something like this.