{
    "version" : "https://jsonfeed.org/version/1",
    "content" : "news",
    "type" : "single",
    "title" : "Google Analytics Download Data Lower Than Expected? Here’s Why (And How to Fix It) |Digital.gov",
    "description": "Google Analytics Download Data Lower Than Expected? Here’s Why (And How to Fix It)",
    "home_page_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/","feed_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/2016/06/14/google-analytics-download-data-lower-than-expected-heres-why-and-how-to-fix-it/index.json","item" : [
    {"title" :"Google Analytics Download Data Lower Than Expected? Here’s Why (And How to Fix It)","summary" : "What’s the best way to track file downloads in Google Analytics? Will the Digital Analytics Program (DAP) help me track PDF/.doc/.xls downloads? Are my download numbers accurate? Why aren’t my file downloads appearing in the web analytics data? The answers to these questions aren’t abundantly clear to even seasoned web analysts. But here’s the good news:","date" : "2016-06-14T10:00:36-04:00","date_modified" : "2025-01-27T19:42:55-05:00","authors" : {"ilee" : "Immanuel Lee"},"topics" : {
        
            "analytics" : "Analytics"
            },"branch" : "bc-archive-content-3",
      "filename" :"2016-06-14-google-analytics-download-data-lower-than-expected-heres-why-and-how-to-fix-it.md",
      
      "filepath" :"news/2016/06/2016-06-14-google-analytics-download-data-lower-than-expected-heres-why-and-how-to-fix-it.md",
      "filepathURL" :"https://github.com/GSA/digitalgov.gov/blob/bc-archive-content-3/content/news/2016/06/2016-06-14-google-analytics-download-data-lower-than-expected-heres-why-and-how-to-fix-it.md",
      "editpathURL" :"https://github.com/GSA/digitalgov.gov/edit/bc-archive-content-3/content/news/2016/06/2016-06-14-google-analytics-download-data-lower-than-expected-heres-why-and-how-to-fix-it.md","slug" : "google-analytics-download-data-lower-than-expected-heres-why-and-how-to-fix-it","url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/2016/06/14/google-analytics-download-data-lower-than-expected-heres-why-and-how-to-fix-it/","content" :"\u003cp\u003eWhat’s the best way to track file downloads in Google Analytics? Will the \u003ca href=\"/preview/gsa/digitalgov.gov/bc-archive-content-3/guides/dap/\"\u003eDigital Analytics Program\u003c/a\u003e (DAP) help me track PDF/.doc/.xls downloads? Are my download numbers accurate? Why aren’t my file downloads appearing in the web analytics data? \u003cdiv class=\"image\"\u003e\n  \u003cimg\n    src=\"https://s3.amazonaws.com/digitalgov/_legacy-img/2016/06/600-x-400-Download-f-dalgic-iStock-Thinkstock-481014627.jpg\"\n    alt=\"Download screen on a mobile phone.\"/\u003e\u003c/div\u003e\n\n\u003c/p\u003e\n\u003cp\u003eThe answers to these questions aren’t abundantly clear to even seasoned web analysts. But here’s the good news: If your site uses DAP, we’ve done the hard work, and our code records file downloads on your web pages by default! That said, sometimes people come to us and say “I KNOW my PDF file has been viewed a lot, but the analytics don’t say that.”\u003c/p\u003e\n\u003cp\u003e\u003cem\u003e(We’ll use PDF as the example from now on, but everything said applies to all file extensions like .doc, .xls, etc.)\u003c/em\u003e\u003c/p\u003e\n\u003cp\u003eOne reason might be that you’re sharing links \u003ca href=\"https://twitter.com/algoritmic/status/740180482005045249\"\u003edirectly to your PDF\u003c/a\u003e through your communications channels, social media, email, or promotional partners. If that is the case, the direct link that you’re sharing is exactly where the problem lies. \u003cstrong\u003eAnalytics tools can only record data for file downloads if a link to the file is clicked on a web page.\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u003cdiv class=\"image\"\u003e\n  \u003cimg\n    src=\"https://s3.amazonaws.com/digitalgov/_legacy-img/2016/06/250-x-205-view-page-soure.jpg\"\n    alt=\"The pop up menu seen when you right-click on a web page includes the option to View page source.\"/\u003e\u003c/div\u003e\n\nWhy? Because a URL that opens a PDF document in your browser doesn’t have html behind it, and the DAP code (or any analytics tool’s code) exists only in the html. Web pages allow you to right click and choose an option to view the html page source code (give it a try!).\u003c/p\u003e\n\u003cp\u003eRight-clicking on a web page allows you to view the html page source code. However, you can’t do this with a PDF document. Try it yourself with \u003ca href=\"https://www.irs.gov/pub/irs-pdf/f1040.pdf\"\u003ethis sample PDF\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eYou can’t actually place analytics tracking code behind a PDF document, so the analytics tool has no way of knowing when someone views the PDF from a direct URL. The code on a web page watches for a link click to a specified file, and records that as a “download.”\u003c/p\u003e\n\u003cp\u003eThere are two possible solutions to obtain the data tracking the total number of times your PDF document has been viewed.\u003c/p\u003e\n\u003cp\u003eThe first is to access the server log files, which maintains a list of all activities your server has performed. This includes the total number of times your online PDF document has been accessed (both by direct URL or by link click on a web page). Beware, you may have to jump through some hoops to obtain access to the log files if you don’t already have it.\u003c/p\u003e\n\u003cp\u003eThe second option, and perhaps the more simple option, is to \u003ca href=\"http://www.metmuseum.org/art/metpublications/American_Stories_Paintings_of_Everyday_Life_1765_1915?utm_source=Twitter\u0026amp;utm_medium=tweet\u0026amp;utm_content=20160605\u0026amp;utm_campaign=metpublications\"\u003eshare the web page URL\u003c/a\u003e with a link to the PDF on it. You can implement a web analytics solution, such as DAP, on that web page. Google Analytics can then track the number of times users access your PDF from that web page based on link clicks.\u003c/p\u003e\n\u003cdiv class=\"image\"\u003e\n  \u003cimg\n    src=\"https://s3.amazonaws.com/digitalgov/_legacy-img/2016/06/600-x-360-pdf-downloads-post.jpg\"\n    alt=\"Screen capture of Google Analytics showing metrics for 4 file types.\"/\u003e\u003c/div\u003e\n\n\n\u003cp\u003eSince Google Analytics will only track PDF downloads from the web page, the numbers will differ from those in your server logs. Remember, server logs will track access to your PDF from both a link on one of your web pages and direct links from external sources or channels.\u003c/p\u003e\n\u003cp\u003eFor more information about how DAP can help you track PDF downloads or downloads of other extensions, \u003ca href=\"mailto:dap@support.digitalgov.gov\"\u003eplease email DAP\u003c/a\u003e.\u003c/p\u003e\n"}
  ]
}
