Tracking pdf downloads
-
hello,
I have a site with 100's of pdf's for download and I would like to track how many people are downloading these, does anyone have a simple solution for this?
Is there anyway I can do this in Google Analytics using one piece of code, thanks...
-
Hi Guys thank you to all for your help on this topic It's very much appreciated, cheers...
-
For hundreds of files you might want to consider these Ga hacks: Brian Clifton's GA add-ons http://www.advanced-web-metrics.com/blog/free-to-use-plugins/ There is another by Stephane Hamel http://gaAddons.com/ Both will do the job...
-
install piwik it will tell you how many times that url with the pdf was downloaded, also awstats which usually comes standard on cpanel will tell you the number of downloads.
-
You could use some jQuery to pull the name of the file into the trackPageview GA call from the href, that would automate populating it anyway. If href contains pdf, onClick is now this, etc.
-
One method would be to use the logs on your server. If you're using IIS for example, every time a pdf was downloaded or viewed, this would be stored in the IIS Logs. It would normally show the time, date and IP address that viewed the pdf file.
You can get software to analyse these logs here;
http://www.iis.net/community/default.aspx?tabid=34&i=1864&g=6
Otherwise instead of linking directly to your pdf in your website, you could point the link to anther html page, which then in turn opens/downloads the pdf. You could then put the Google Analytics tracking code in this html page and then you would be able to track how many time that page was viewed in analytics (and therefore how many times the pdf was viewed).
The html page would just need to contain a simple redirect to the pdf, eg.
<title>Your Page Title</title>
Optional page text here.
You would also need to insert your analytics tracking code in the section.
Hope this helps.
-
You want to track individual pdfs?
Off the top of my head adding ="javascript: pageTracker._trackPageview('/spoofpage')>anchor text will spoof a page view to your spoofpage in analytics.
That will require individually tagging each pdf though.
Let me have a think if there's anyway to change the 'spoofpage' to the href 'url' to allow you to add the same code to each.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Cross domain tracking Google Analytics
Hi there, Got a question on cross domain tracking: We have a couple of TLD's to serve localized content to our visitors, next to our main .com TLD where our app is running as well in a subdomain. Situation is this: Local sites:
Reporting & Analytics | | jorisbrabants
marketingsite.be
marketingsite.com.br
marketingsite.fr Main site: marketingsite.com
app.marketingsite.com Conversion gets triggered when somebody ends up in app.marketingsite.com/firstuse for example. People can sign up at the local site filling in their email but they end up in app.marketingsite.com/firstuse Reading this article on cross domain tracking I'm getting a bit confused on the setup of the tracking code itself. The sample code provided shows these two lines: ga('require', 'linker'); ga('linker:autoLink', ['maindomain.com','targetdomain.com']); Now the question 🙂 Is it correct when I think that maindomain should be replaced with our local TLD's on every one of those, and that targetdomain is where the conversion happens? In this case the .com site?0 -
Click-to-call mobile event tracking
Hello! I want to track calls on mobile devices from a website. I was able to successfully set up an event with Google Analytics that tracks when a user clicks the phone # on the website, however, as you know, when someone clicks a phone # using iOS it prompts a display of the # and gives the users two options, Cancel or Call. My question: is there any way to track when the user clicks the 'Call' action? Thanks
Reporting & Analytics | | RangeMarketing0 -
E Commerce and cross domain tracking on universal analytics?
Hi Mozzers, I am running into an issue where my client's website ( can refer to domain.com) uses a third party checkout site called rezovation that we can refer to checkout.rezovation.com: I went through this doc here https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain and https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce (for universal analytics) and I still find it confusing so here are my questions: According to my understanding I need a customized GATC to link both domains checkout.rezovation.com and domain.com? If yes(above), do we setup one customized GATC for cross domain tracking on all pages from checkout.rezovation.com and domain.com? if it is the case can someone provide detail steps on how to set it up ( I am not a coder so the easier the guideline, the better) Once cross domain tracking is set up, e commerce tracking code should be only on thank you page should be looking like the image below? Should i add manually all the extra code for the ecommerce tracking code or I can get it done via a third party website? Thank you guys! oPgn8P4.png
Reporting & Analytics | | Ideas-Money-Art0 -
Tracking Goals on a Subdomain?
What needs to be done to Analytics to track goal completions on a subdomain? The main Analytics profile is set up for example.com, but landing pages for paid campaigns are set up at sub.example.com. Thank-you page is sub.example.com/thank-you.php What needs to be modified in Analytics (or to the Analytics code) or how do the goals need to be set up to track these subdomain conversions all within the same Analytics profile? They're not tracking currently. Thanks.
Reporting & Analytics | | elcrazyhorse0 -
Track banner ad with google analytics
Hi We have a top banner ad on an external renown site only to attrack traffic. It does show up in google analytics, but i have seen some increase in (direct) / (none) traffic. Is there anyway i can track it when banner is showed from 2 separate URLs http://www.tv2torget.no/bedrift/netthandel/ and http://www.tv2torget.no/bedrift/netthandel/barneklaer/ Thanks Dan Lærum
Reporting & Analytics | | danlae0 -
How do I track a PDF?
I have this eBook in PDF and I don't know how to track it: http://www.shipoverseas.com/PDFs/how-to-buy-a-car-in-usa-and-ship-it-overseas.pdf I ultimately want to do like SeoMoz in their Ranking Reports: Export to PDF Anybody have a quick idea on how to do this?
Reporting & Analytics | | Francisco_Meza0 -
Google Shopping & Keyword Tracking
When tracking Google Shopping using the URL builder is it possible to pull through the Keyword used or will analytic do this automatically?
Reporting & Analytics | | TPSUK1 -
Is IP tracking of visitor allowed?
Hi, Google Analytics does not provide IP addresss of the visitors. What if i develop some in-house tracking mechanism to do so? Is it allowed or will Google penalize me if it comes to know about it? Thanks
Reporting & Analytics | | IM_Learner0