Thanks for the kind words and for an interesting question. Thanks as well for digging into the Support Topic archives and posting a link to the (much) earlier topic.
First, although the “force download” technique works, I have become wary of the potential security risk associated with having it on a live site. Please satisfy yourself that it doesn’t open up the possibility of downloading files you don’t want to provide access to.
That said, incorporating Google Analytics is an interesting idea. I don’t have too much experience with GA but I will investigate. Since you wrote “download events” I assume you want to track this as an event, not a “virtual page” hit; is that right?
If that’s right, can you tell me the values you want to describe the event, i.e., Category, Action, Label, Value?
Are you using Universal Analytics (analytics.js) or Classic Analytics(ga.js)?
I will look into this, although it make a few days to report progress. Thanks for any additional details you can provide.
Tyler,
I have begun looking at the “ForceDownload” changes required to support download tracking in Google Analytics. To give you a solution that works in the context of your application I need the answers to the questions I asked in my first post:
- Since you wrote “download events” I assume you want to track this as an event, not a “virtual page” hit; is that right?
- If that’s right, can you tell me the values you want to describe the event, i.e., Category, Action, Label, Value?
- Are you using Universal Analytics (analytics.js) or Classic Analytics(ga.js)?
Your answers will guide my investigation and testing. Thanks for any additional details you can provide.
It has been two months since my last post in this topic and I have seen nothing further. I assume you have found a solution that works for your application.
I am marking this topic resolved, but please update it if you need any further help with the topic. Thanks for your interest in the plugin.