google analytics - How to track zip file download without an onclick event? -
i have zip file url http://www.mycompany.com/download/test.zip
i have send url via e-mail customers.
how can track number of downloads using google analytics?
i have tried adding utm_source url of no use. http://www.mycompany.com/download/test.zip?utm_source=downld
also, onclick event not possible because there no webpage opening on click of zip file url. when customer clicks on url in his/her email, zip file starts downloading.
please help.
use event tracking on onclick event:
<a href="/path/to/doc.pdf" onclick="_gaq.push(['_trackevent', 'download', 'pdf', 'doc.pdf']);">download</a>
look in documentation here: https://developers.google.com/analytics/devguides/collection/gajs/eventtrackerguide see parameters mean.
of course use virtual pageview (https://developers.google.com/analytics/devguides/collection/gajs/asyncmigrationexamples#virtualpageviews) zip files url (which affect bounce rates , average visits time etc).
Comments
Post a Comment