How to Track PDF Download in GA :
There are 2 ways we can track PDF download in Google Analytics.
- Generate Virtual Pageviews when someone downloads PDF
- Set & track Events when someone downloads PDF
You need to call Track Event in your Google Analytics code.
_trackEvent(category, action, label (Optional), value (optional), noninteraction (optional))
- category (required) : The name you supply for the group of PDF/Objects you want to track.
- action (required) : A term used to define the type of user interaction for the web object. (For ex. Downloade/ played)
- label (optional) : An optional string to provide additional dimensions to the event data. (For ex. Name of PDF file)
- value (optional) : An integer that you can use to provide numerical data about the user event. (For ex. 1% of course fees)
- non-interaction (optional) : A boolean that when set to
true
, indicates that the event hit will not be used in bounce-rate calculation.
<a href=”#” onClick=”_gaq.push(['_trackEvent', 'PDF', 'Downloaded', 'SEO Course App Form']);”>SEO Course App Form</a>
Reporting :
Once event tracking has been set up and working on your site for a day, then you can go to the Content section of the reports in Google Analytics and view Event Tracking. In the above case, the reports for Events would show PDF as the Category, Downloaded as the Action, and SEO Course App Form as the Label.
The above images shows one such implementation of PDF Download in new Google Analytics interface.
With this method, you can track,
- Documents
- VIdeo Download
- Video Play/Pause Events
- Songs Download event & more
So, Stay tune, keep googling & keep reading Innovative SEO for the next post on the same topic on How to track hundreds on PDF with automated event tracking
0 comments:
Post a Comment