{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/203","labels_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/203/comments","events_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/203/events","html_url":"https://github.com/alphagov/govuk_frontend_toolkit/pull/203","id":93553811,"number":203,"title":"Add support for sending page option when tracking events","user":{"login":"chrisroos","id":6556,"avatar_url":"https://avatars.githubusercontent.com/u/6556?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisroos","html_url":"https://github.com/chrisroos","followers_url":"https://api.github.com/users/chrisroos/followers","following_url":"https://api.github.com/users/chrisroos/following{/other_user}","gists_url":"https://api.github.com/users/chrisroos/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisroos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisroos/subscriptions","organizations_url":"https://api.github.com/users/chrisroos/orgs","repos_url":"https://api.github.com/users/chrisroos/repos","events_url":"https://api.github.com/users/chrisroos/events{/privacy}","received_events_url":"https://api.github.com/users/chrisroos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-07T15:10:11Z","updated_at":"2015-07-21T15:31:26Z","closed_at":"2015-07-21T14:43:01Z","pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls/203","html_url":"https://github.com/alphagov/govuk_frontend_toolkit/pull/203","diff_url":"https://github.com/alphagov/govuk_frontend_toolkit/pull/203.diff","patch_url":"https://github.com/alphagov/govuk_frontend_toolkit/pull/203.patch"},"body":"This adds support for sending the `page` option to `ga()` when tracking\r\nevents[1].\r\n\r\nWe're trying to use events to track when people reach an outcome in Smart\r\nAnswers[2]. The current set-up is giving us inaccurate data because of the use\r\nof JavaScript to partially replace pages as a user navigates the Smart Answer:\r\nThe majority of the events are being recorded against the start page of the\r\nSmart Answer (e.g. /student-finance-forms/y) instead of the outcome page.\r\n\r\nI've got an open pull request in Smart Answers that switches us to use `ga()`\r\ndirectly so that I can test whether sending the `page` option actually gives us\r\nthe data we're interested in[3]. Assuming it does then I think the right thing\r\nto do is add support for `page` in this project.\r\n\r\n[1]: https://developers.google.com/analytics/devguides/collection/analyticsjs/events#implementation\r\n[2]: https://github.com/alphagov/smart-answers/commit/5d09931ce02c65ce1ca255f74960e1ee4ec2681e\r\n[3]: https://github.com/alphagov/smart-answers/pull/1787"},"comment":{"url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/comments/123371374","html_url":"https://github.com/alphagov/govuk_frontend_toolkit/pull/203#issuecomment-123371374","issue_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/203","id":123371374,"user":{"login":"fofr","id":319055,"avatar_url":"https://avatars.githubusercontent.com/u/319055?v=3","gravatar_id":"","url":"https://api.github.com/users/fofr","html_url":"https://github.com/fofr","followers_url":"https://api.github.com/users/fofr/followers","following_url":"https://api.github.com/users/fofr/following{/other_user}","gists_url":"https://api.github.com/users/fofr/gists{/gist_id}","starred_url":"https://api.github.com/users/fofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fofr/subscriptions","organizations_url":"https://api.github.com/users/fofr/orgs","repos_url":"https://api.github.com/users/fofr/repos","events_url":"https://api.github.com/users/fofr/events{/privacy}","received_events_url":"https://api.github.com/users/fofr/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T15:31:26Z","updated_at":"2015-07-21T15:31:26Z","body":"@chrisroos A version bump PR would be great. Here's a recent example: https://github.com/alphagov/govuk_frontend_toolkit/pull/187"}}