How to track download content
I have a requirement where I need to track the event of mostly downloaded pdfs/zip file from AEM. So for that I was thinking about two ways -
1) Use Adobe analytics and track the download event. After I will write a component in AEM to query Adobe analytic to give the result. But I could not find document on how to query analytics data from AEM.
2) Use tracker.js. But when I hit this url then this url http://localhost:4502/libs/wcm/stats/tracker.js?path=/content/dam/geometrixx/documents/GeoCube_Datasheet.pdf then it says "impression added" but there is no way to see impression in console. Where I can see the impression? Is tracker.js only for page tracking?