Analytics and tracking
-
Hi. I’m using this plugin and it seems to do the job well, and I’m close to buying the paid add-on for CSV exporting.
I’m having trouble with one thing, though: tracking the file downloads in Google Analytics. I know the plugin displays IP addresses but I’d like to see geographical spread, time, etc.
To add Analytics tracking I’d normally amend the link to something like this:
<a onclick="ga('send', 'event', 'Downloads', 'Click', 'PDF downloaded', '0');" href="https://example.com/filename.pdf">Download Link</a>There doesn’t seem to be an easy way to do this, because the plugin download link is dynamically generated, e.g.:
https://example.com/?file=filename.pdf&nonce=5e90fca2bd03e4cec&email=address%40gmail.comAnyway, if I try to add tracking code in the Customize Messages page, the plugin strips everything out apart from the basic link. Is it possible to use custom hooks as a workaround, and if so, what would be needed?
If you have any other idea how I might implement Analytics, or view more detailed data on where and when people are downloading the files, please let me know.
The topic ‘Analytics and tracking’ is closed to new replies.