How to track PDF in Google Analytics | PDF Tracking

7

Posted by Amish Keshwani | Posted in Google, Web Analytics | Posted on 13-02-2012

Innovative SEO : Learn & Share All About SEO

Hello Friends,

Recently, I have come across a real time challenge to track a really important data in Google Analytics. One of my client has a website which offers Online Application From in PDF Format & One has to download it, fill it & send back on given email id. Now, here, for Client, its really important to know that how many people have downloaded the PDF ? There are 3 application forms, so comparison metrics for all 3, Geography details, Traffic channel details for Downloads & many more. But, everything can be available if we are able to track when PDF get downloaded by a visitor. So, to-day’s blog post is all about How to track PDF download in Google Analytics.

How to Track PDF Download in GA :

There are 2 ways we can track PDF download in Google Analytics.

  1. Generate Virtual Pageviews when someone downloads PDF
  2. Set & track Events when someone downloads PDF

Normally, Its really helpful to track PDF downloads as Event. This give you flexibility to categorize & Label the events as per the nature of download.  Beside this, one can look at the source & various metrics available in Google Analytics to trace the individual download as well.  So, to Set & Track event for each & every PDF download, you need to implement following code.

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.

Example of Simple Code :
<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.

How to track PDF in GA

PDF in Event Tracking in GA

The above images shows one such implementation of PDF Download in new Google Analytics interface.

With this method, you can track,

  • PDF
  • Documents
  • VIdeo Download
  • Video Play/Pause Events
  • Songs Download event & more

But then, again, here is the challenge, Suppose you have a a very Big University client where there are hundreds PDF to track from millions of pages, What one should do ? Go & set the event code in each & every link ? Sound illogical right ? Well, I am researching on that & very close to solution :)

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 :)

Related Posts Plugin for WordPress, Blogger...

About Amish Keshwani

Amish Keshwani, Google Analytics Qualified Individual, Digital Media Marketing Professional with 8+ years of experience in the Search Industry, earned expertise in SEO (On Page, Off Page optimization), SEM (Google Adwords, Yahoo, Bing & other paid marketing sites), Social Media Marketing, Email Marketing & other indirect approaches of Online Marketing. Read more about Amish Keshwani

  • http://www.seoservicesprovider.in/ Arpit Kothari

    Hey Amish,

    This is really nice and every seo need this solutions.. I hope your next solutions is also important to everyone so, pls. kindly share that also..

    Thanks

  • http://usa-study-guide.blogspot.in/ Dhvanil

    Good description about tracking PDF or events with GA.

    Can we also track the location (Geo) from where PDF’s are downloaded.

    Also shall we know the time user has spent on the PDF’s (reading) and the bounce rate for the same?

  • http://www.anjalipthakur.blogspot.com anjali

    Very informative……

  • Dhvanil

    Amish,

    Very informative post on event tracking. I would like to know what is the difference between track downloads as an “Events” and as a “Page Views”.

    I have also facing the issue for one of my client that want to track pdfs downloads with analytic and have more than 1000 pdfs on website.

  • Pingback: How to track PDF Download in Google Analytics ? | Innovative SEO’s Blog | MarketingHits.com

  • Jigar

    Good one sir..

    Really informative and We are waiting for tracking hundreds PDF to track from millions of pages.

    Thank you!!

  • Vikrant

    I am going to use this method to track the videos and PDFs as it is my requirement for me to track videos, PDF download… so this is useful blog for me… i will give feedback if it works proper for me … Thanks in Advance…