{"id":11,"date":"2008-07-19T20:06:42","date_gmt":"2008-07-19T19:06:42","guid":{"rendered":"http:\/\/www.withinweb.com\/info\/?p=11"},"modified":"2008-08-09T14:49:20","modified_gmt":"2008-08-09T13:49:20","slug":"tracking-downloads-made-from-your-site","status":"publish","type":"post","link":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/","title":{"rendered":"Tracking downloads made from your site"},"content":{"rendered":"<p>If you wish to track downloads or individual clicks on files such as pdf, or word files you can do so using Google analytics.<\/p>\n<p>Adding a small piece of JavaScript to any link will tell Google to track when someone clicks on that link. This works for pdfs, Word documents, email addresses and external links.<\/p>\n<p>It also works if you want to see which two links on the same page are generating more clicks. Even though they go to the same URL, you can tag one link as &#8216;link one&#8217; and the other as &#8216;link two&#8217; and Google will track the clicks separately for you.<\/p>\n<p>If you have a WordPress blog, you can instantly tag all links across your blog with the Ultimate Google Analytics plugin. (<a href=\"http:\/\/wordpress.org\/extend\/plugins\/ultimate-google-analytics\/\">http:\/\/wordpress.org\/extend\/plugins\/ultimate-google-analytics\/<\/a>)<\/p>\n<p>A full description on adding the Javascript code to your web page can be found at <a href=\"http:\/\/www.google.com\/support\/analytics\/bin\/answer.py?answer=55529\">http:\/\/www.google.com\/support\/analytics\/bin\/answer.py?answer=55529<\/a> when you are using the latest version of the tracking code.\u00a0 If you are using the older of the tracking code version then refer to <a href=\"http:\/\/www.google.com\/support\/analytics\/bin\/answer.py?answer=74985\">http:\/\/www.google.com\/support\/analytics\/bin\/answer.py?answer=74985<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you wish to track downloads or individual clicks on files such as pdf, or word files you can do so using Google analytics. Adding a small piece of JavaScript to any link will tell Google to track when someone<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/\">Read more <span class=\"screen-reader-text\">Tracking downloads made from your site<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-soe"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tracking downloads made from your site - PHP Web Applications<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tracking downloads made from your site - PHP Web Applications\" \/>\n<meta property=\"og:description\" content=\"If you wish to track downloads or individual clicks on files such as pdf, or word files you can do so using Google analytics. Adding a small piece of JavaScript to any link will tell Google to track when someone&hellip;Read more Tracking downloads made from your site &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Web Applications\" \/>\n<meta property=\"article:published_time\" content=\"2008-07-19T19:06:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2008-08-09T13:49:20+00:00\" \/>\n<meta name=\"author\" content=\"paulv\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"paulv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/tracking-downloads-made-from-your-site\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/tracking-downloads-made-from-your-site\\\/\"},\"author\":{\"name\":\"paulv\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"headline\":\"Tracking downloads made from your site\",\"datePublished\":\"2008-07-19T19:06:42+00:00\",\"dateModified\":\"2008-08-09T13:49:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/tracking-downloads-made-from-your-site\\\/\"},\"wordCount\":199,\"commentCount\":0,\"articleSection\":[\"SOE\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/tracking-downloads-made-from-your-site\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/tracking-downloads-made-from-your-site\\\/\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/tracking-downloads-made-from-your-site\\\/\",\"name\":\"Tracking downloads made from your site - PHP Web Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\"},\"datePublished\":\"2008-07-19T19:06:42+00:00\",\"dateModified\":\"2008-08-09T13:49:20+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/tracking-downloads-made-from-your-site\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/tracking-downloads-made-from-your-site\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/tracking-downloads-made-from-your-site\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tracking downloads made from your site\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\",\"name\":\"PHP Web Applications\",\"description\":\"Information and support for products of WithinWeb.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\",\"name\":\"paulv\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/author\\\/paulv\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tracking downloads made from your site - PHP Web Applications","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/","og_locale":"en_US","og_type":"article","og_title":"Tracking downloads made from your site - PHP Web Applications","og_description":"If you wish to track downloads or individual clicks on files such as pdf, or word files you can do so using Google analytics. Adding a small piece of JavaScript to any link will tell Google to track when someone&hellip;Read more Tracking downloads made from your site &#8250;","og_url":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/","og_site_name":"PHP Web Applications","article_published_time":"2008-07-19T19:06:42+00:00","article_modified_time":"2008-08-09T13:49:20+00:00","author":"paulv","twitter_card":"summary_large_image","twitter_misc":{"Written by":"paulv","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/#article","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/"},"author":{"name":"paulv","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"headline":"Tracking downloads made from your site","datePublished":"2008-07-19T19:06:42+00:00","dateModified":"2008-08-09T13:49:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/"},"wordCount":199,"commentCount":0,"articleSection":["SOE"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/","url":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/","name":"Tracking downloads made from your site - PHP Web Applications","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/#website"},"datePublished":"2008-07-19T19:06:42+00:00","dateModified":"2008-08-09T13:49:20+00:00","author":{"@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"breadcrumb":{"@id":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.withinweb.com\/info\/tracking-downloads-made-from-your-site\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.withinweb.com\/info\/"},{"@type":"ListItem","position":2,"name":"Tracking downloads made from your site"}]},{"@type":"WebSite","@id":"https:\/\/www.withinweb.com\/info\/#website","url":"https:\/\/www.withinweb.com\/info\/","name":"PHP Web Applications","description":"Information and support for products of WithinWeb.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.withinweb.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c","name":"paulv","url":"https:\/\/www.withinweb.com\/info\/author\/paulv\/"}]}},"_links":{"self":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}