{"action":"created","issue":{"url":"https://api.github.com/repos/mysociety/fixmystreet/issues/973","labels_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/973/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/973/comments","events_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/973/events","html_url":"https://github.com/mysociety/fixmystreet/issues/973","id":52358980,"number":973,"title":"Google Analytics outbound click tracking for Goodies page downloads","user":{"login":"zarino","id":739624,"avatar_url":"https://avatars.githubusercontent.com/u/739624?v=3","gravatar_id":"","url":"https://api.github.com/users/zarino","html_url":"https://github.com/zarino","followers_url":"https://api.github.com/users/zarino/followers","following_url":"https://api.github.com/users/zarino/following{/other_user}","gists_url":"https://api.github.com/users/zarino/gists{/gist_id}","starred_url":"https://api.github.com/users/zarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarino/subscriptions","organizations_url":"https://api.github.com/users/zarino/orgs","repos_url":"https://api.github.com/users/zarino/repos","events_url":"https://api.github.com/users/zarino/events{/privacy}","received_events_url":"https://api.github.com/users/zarino/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mysociety/fixmystreet/labels/Design","name":"Design","color":"009800"},{"url":"https://api.github.com/repos/mysociety/fixmystreet/labels/UK%20specific","name":"UK specific","color":"0000ff"}],"state":"open","locked":false,"assignee":{"login":"zarino","id":739624,"avatar_url":"https://avatars.githubusercontent.com/u/739624?v=3","gravatar_id":"","url":"https://api.github.com/users/zarino","html_url":"https://github.com/zarino","followers_url":"https://api.github.com/users/zarino/followers","following_url":"https://api.github.com/users/zarino/following{/other_user}","gists_url":"https://api.github.com/users/zarino/gists{/gist_id}","starred_url":"https://api.github.com/users/zarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarino/subscriptions","organizations_url":"https://api.github.com/users/zarino/orgs","repos_url":"https://api.github.com/users/zarino/repos","events_url":"https://api.github.com/users/zarino/events{/privacy}","received_events_url":"https://api.github.com/users/zarino/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2014-12-18T12:34:20Z","updated_at":"2015-01-23T16:59:28Z","closed_at":null,"body":"The Goodies page has links to .zip and .pdf files for people to download. Although the hits are probably recorded for a short time in the web server logs, it would be good to track downloads as a proper metric in Google Analytics.\r\n\r\nOutbound click listeners on the links could easily track download requests, and record them as Google Analytics events (or even pageviews??)"},"comment":{"url":"https://api.github.com/repos/mysociety/fixmystreet/issues/comments/71225451","html_url":"https://github.com/mysociety/fixmystreet/issues/973#issuecomment-71225451","issue_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/973","id":71225451,"user":{"login":"zarino","id":739624,"avatar_url":"https://avatars.githubusercontent.com/u/739624?v=3","gravatar_id":"","url":"https://api.github.com/users/zarino","html_url":"https://github.com/zarino","followers_url":"https://api.github.com/users/zarino/followers","following_url":"https://api.github.com/users/zarino/following{/other_user}","gists_url":"https://api.github.com/users/zarino/gists{/gist_id}","starred_url":"https://api.github.com/users/zarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarino/subscriptions","organizations_url":"https://api.github.com/users/zarino/orgs","repos_url":"https://api.github.com/users/zarino/repos","events_url":"https://api.github.com/users/zarino/events{/privacy}","received_events_url":"https://api.github.com/users/zarino/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T16:59:28Z","updated_at":"2015-01-23T16:59:28Z","body":"@jacksonj04 – This didn't get prioritised this week (26th–30th Jan) and the sprint after (2nd–6th Feb) is looking really full. If this is blocking your research, and you think you can tackle this yourself, please don't feel like you have to wait for Martin or me to do it.\r\n\r\nIn short: It should be a matter of adding some javascript click listeners to the page, and putting a location.href redirect in the google analytics callback. (I think you and I did something similar to this before, on a different mySociety site, but I can't remember which?)\r\n\r\nIf you decide to do it yourself, but get stuck, drop me a line."}}