We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18913
    • 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
      • 38783
      • 571 Posts
      This looks like it might do what you want https://modx.com/extras/package/hits
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 17301
        • 932 Posts
        As above ^
        Although I also noticed a new extra was released yesterday called 'looked' which may also do what you want.
          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 32507
          • 142 Posts
          ^ Some Usage Documentation would be nice also.
            • 52243
            • 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.