undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Reporting & Analytics
  4. Tracking pdf downloads

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Tracking pdf downloads

Reporting & Analytics
6
7
2.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • Socialdude
    Socialdude last edited by Sep 12, 2011, 8:27 AM

    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...

    1 Reply Last reply Reply Quote 0
    • Socialdude
      Socialdude last edited by Sep 13, 2011, 5:17 AM Sep 13, 2011, 5:17 AM

      Hi Guys thank you to all for your help on this topic 🙂  It's very much appreciated, cheers...

      1 Reply Last reply Reply Quote 0
      • alue
        alue last edited by Sep 12, 2011, 10:25 PM Sep 12, 2011, 10:25 PM

        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...

        1 Reply Last reply Reply Quote 0
        • mickey11
          mickey11 last edited by Sep 12, 2011, 3:19 PM Sep 12, 2011, 3:19 PM

          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.

          1 Reply Last reply Reply Quote 0
          • EnhancedPath
            EnhancedPath last edited by Sep 12, 2011, 8:47 AM Sep 12, 2011, 8:47 AM

            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.

            1 Reply Last reply Reply Quote 0
            • PeterAlexLeigh
              PeterAlexLeigh last edited by Sep 12, 2011, 8:44 AM Sep 12, 2011, 8:44 AM

              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.

              1 Reply Last reply Reply Quote 1
              • StalkerB
                StalkerB last edited by Sep 12, 2011, 8:40 AM Sep 12, 2011, 8:40 AM

                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.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                1 out of 7
                • First post
                  1/7
                  Last post

                Got a burning SEO question?

                Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                Start my free trial


                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.

                • See all categories

                Related Questions

                • Marketing-EdJones

                  Unsolved Can you accurately track lead source when using a cookie consent system?

                  cookie tracking reporting analytics cookies gdpr

                  With the introduction of cookie consent for third party analytics cookies, is it still possible to accurately track traffic source? Legally, you can't create a tracking cookie for platforms like Analytics until consent is given. So...the associated Javascript tags can't fire. Surely this means you can't collect any of the information on the user's original source... Can anyone shed any light on this conundrum....greatly appreciated.

                  Reporting & Analytics | Mar 14, 2022, 8:04 AM | Marketing-EdJones
                  0
                • Kickboard

                  If website users don't accept GDPR cookie consent, does that prevent GA-GTM from tracking pageviews and any traffic from that user that would cause significant traffic decreases?

                  I've been doing a lot research on GDPR impact and implementation with GTM-GA for clients, but it's been 12 months since GDPR has gone live I haven't found anything on how GA traffic has been impacted if users don't accept cookie consent. However, I'm personally seeing GA accounts taking huge losses in traffic since implementing GDPR cookie solutions (because GTM/GA tags aren't firing until cookies are accepted). Is it common for websites to see significant decreases in traffic due to too many users not accepting cookie consent? Are there alternative solutions to avoid traffic loss like that and still maintain GDPR compliance? It seems to me that the industry underestimated how many people won't accept cookie consent. Most of the documentation and articles around GDPR's start (May 2018) didn't foresee or cover that aspect properly, everything seems to be technically focused with the assumption that if implemented properly most people would accept cookie consent, but I'm personally not seeing that trend and it's destroying GA data (lost traffic, minimal source attribution, inaccurate behavior data, etc). Thanks.

                  Reporting & Analytics | Apr 23, 2019, 8:19 AM | Kickboard
                  2
                • Meier

                  Google analytics suddenly stopped tracking all my landing pages

                  Hey guys. I love the new update of GA. Looks so clean. So, of course, I was excited to see how my landing pages were doing. I went to behavior, all content, all pages. And I noticed it's only showing me 19 pages out of the 93 I have indexed. And none of the top ones at all! Can't find them anywhere in GA! Anyone seen this before? Thank you so much

                  Reporting & Analytics | Jul 2, 2017, 11:44 PM | Meier
                  0
                • ChrisAllbones

                  Can you track two Google Analytics Accounts on one site?

                  If you have a site that had an old analytics account and then implemented a new one is it possible to run tracking code that records to both accounts without causing your site or data issues? We are doing this so we don't loose data at any point - ideally it wouldn't have been split between the two but making one redundant isn't an option. Ideally we would have merged the data from both accounts and had one - however the research we have done points to this not being a possibility - unless one of you guys knows different? It would be great if anyone has experience on any this.. Thanks

                  Reporting & Analytics | Mar 27, 2015, 10:02 AM | ChrisAllbones
                  0
                • Webdannmark

                  Does analytics track an order two times by refresh on the confirmation-page?

                  Hi there,
                  I have a quick question. Does Google analytics track an order two times, if the user buys a product, see the confirmation page and then click refresh/click or back and forward again?
                  The order/tracking data must be the same, but i guess the tracking code runs for every refresh and therefore tracks the order two times in Analytics or does analytics know that it is the same order? Someone that can clearify this?Thanks! Regards
                  Kasper

                  Reporting & Analytics | Aug 2, 2013, 7:26 PM | Webdannmark
                  0
                • Qon

                  How to track subfolders in GA?

                  Is it possible to get the visitor statistics for a subfolder (example.com/blog/) in Google Analytics? I already have GA tracking set-up like normal, and visitors do get logged, but to see data only for /blog/ I have to go to Content > Site Content > All pages and search for "/blog/". Should I create a new profile in Google Analytics? Or is there a better way to only see stats for a subfolder?

                  Reporting & Analytics | Jan 15, 2013, 10:51 AM | Qon
                  0
                • ozgeekmum

                  What is best practice for tracking RSS feed subscribers

                  What is the most accurate/achievable way of tracking data about subscribers to your RSS feed through Google Analytics? With standard WordPress sites, we place the RSS  link to Feedburner so we could track statistics. However it wouldn't track the way that I use it. I use Pulse on an Android Tablet to read my feeds offline on the bus each morning. At home, Pulse automatically downloads the latest feeds wirelessly overnight. So then I can read them without a connection. The obvious downside for my reading experience is that I only get what is contained in the feeds. If the company only includes an excerpt, it's too annoying to read the teaser and be unable to connect and follow a link.  So I only subscribe to feeds that contain the full post. Yeah to seomoz, aimclear, SEL, adwordsblog. I  dont subscribe to bruceclays blog, much as i'd like to, because it doesn't contain the full feed. That's probably deliberate on their part, because I have to consciously visit their blog on my desktop at work, to see the whole post. The other problem with say Pulse, is how it locates the feed. I typed in the URL, and Pulse subscribed me. I assume that Pulse simply looked for the domain.com/feed URL and added that, rather than look for feeds2.feedburner.com/domain. I looked at Feedburner stats and they didn't go up for 2 days, so basically it didn't track me. Would it be as simple as using the Google URL builder to add parameters to each post in the RSS feed?   Eg utm_source=feedreader, utm_medium=rss, utm_campaign=tracking. But that still wouldn't track offline users. I assume that most people are also not going to paste the Feedburner URL into their FeedReader, but would let the platform auto-detect the feed. Any suggestions?

                  Reporting & Analytics | May 8, 2012, 10:38 PM | ozgeekmum
                  1
                • CabbageTree

                  Is there a way to use Google Analytics event tracking for YouTube embedded videos on my website?

                  Hello! I am trying to track different types of interaction on the YouTube for videos which are embedded on a website to measure the interaction on these video from my organic traffic.  Is there a good way to go about this with the code since these are coming from an iFrame on YouTube?  Would appreciate any feedback or help on implementing the event tracking with YouTube videos. Many thanks!

                  Reporting & Analytics | Feb 13, 2012, 4:55 PM | CabbageTree
                  0

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy

                Looks like your connection to Moz was lost, please wait while we try to reconnect.