{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/teach.webmaker.org/issues/1110","labels_url":"https://api.github.com/repos/mozilla/teach.webmaker.org/issues/1110/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/teach.webmaker.org/issues/1110/comments","events_url":"https://api.github.com/repos/mozilla/teach.webmaker.org/issues/1110/events","html_url":"https://github.com/mozilla/teach.webmaker.org/issues/1110","id":95479878,"number":1110,"title":"Add Google Analytics event tracking to outbound links on Activities Page","user":{"login":"adamlofting","id":1901816,"avatar_url":"https://avatars.githubusercontent.com/u/1901816?v=3","gravatar_id":"","url":"https://api.github.com/users/adamlofting","html_url":"https://github.com/adamlofting","followers_url":"https://api.github.com/users/adamlofting/followers","following_url":"https://api.github.com/users/adamlofting/following{/other_user}","gists_url":"https://api.github.com/users/adamlofting/gists{/gist_id}","starred_url":"https://api.github.com/users/adamlofting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamlofting/subscriptions","organizations_url":"https://api.github.com/users/adamlofting/orgs","repos_url":"https://api.github.com/users/adamlofting/repos","events_url":"https://api.github.com/users/adamlofting/events{/privacy}","received_events_url":"https://api.github.com/users/adamlofting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mozilla/teach.webmaker.org/milestones/19","html_url":"https://github.com/mozilla/teach.webmaker.org/milestones/July%2031,%202015","labels_url":"https://api.github.com/repos/mozilla/teach.webmaker.org/milestones/19/labels","id":1208255,"number":19,"title":"July 31, 2015","description":"","creator":{"login":"hannahkane","id":8389648,"avatar_url":"https://avatars.githubusercontent.com/u/8389648?v=3","gravatar_id":"","url":"https://api.github.com/users/hannahkane","html_url":"https://github.com/hannahkane","followers_url":"https://api.github.com/users/hannahkane/followers","following_url":"https://api.github.com/users/hannahkane/following{/other_user}","gists_url":"https://api.github.com/users/hannahkane/gists{/gist_id}","starred_url":"https://api.github.com/users/hannahkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannahkane/subscriptions","organizations_url":"https://api.github.com/users/hannahkane/orgs","repos_url":"https://api.github.com/users/hannahkane/repos","events_url":"https://api.github.com/users/hannahkane/events{/privacy}","received_events_url":"https://api.github.com/users/hannahkane/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2015-07-14T22:56:07Z","updated_at":"2015-07-16T17:01:59Z","due_on":"2015-07-31T07:00:00Z","closed_at":null},"comments":0,"created_at":"2015-07-16T17:01:59Z","updated_at":"2015-07-16T17:01:59Z","closed_at":null,"body":"We'd like to know how many people are clicking on each of the [activities listed here](https://teach.mozilla.org/activities/), but links to external URLs don't get recorded in GA automatically.\r\n\r\nIn order to do this we need to record the click manually, and then re-direct the user to the target URL.\r\n\r\nOur GA tracking is using our `react-ga` library, where I have written the [basic logic for recording an outbound link](https://github.com/adamlofting/react-ga/#gaoutboundlinkargs-hitcallback) with minimal delay in the UX.\r\n\r\nBut, @toolness [suggested we make this a React Component](https://github.com/adamlofting/react-ga/issues/14) which will then be much easier to implement when there are lots of links to track, as there are on this page. This is an excellent idea, and I think it's the best way to move forward with this bug.\r\n\r\nI don't have time to write that component myself, but am happy to review any PRs against the library or to give more people edit writes on `react-ga`. (I need to move it into the `mozilla` github org soon too).\r\n\r\n-- \r\n\r\nAs always, let me know if I can help with anything."}}