{"action":"opened","number":203,"pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls/203","id":39380773,"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","issue_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/203","number":203,"state":"open","locked":false,"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},"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","created_at":"2015-07-07T15:10:11Z","updated_at":"2015-07-07T15:10:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls/203/commits","review_comments_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls/203/comments","review_comment_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/203/comments","statuses_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/statuses/5f9d892c9d62ea08238124b84730890b7e690ad3","head":{"label":"chrisroos:add-support-for-sending-page-when-tracking-events","ref":"add-support-for-sending-page-when-tracking-events","sha":"5f9d892c9d62ea08238124b84730890b7e690ad3","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},"repo":{"id":38695530,"name":"govuk_frontend_toolkit","full_name":"chrisroos/govuk_frontend_toolkit","owner":{"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},"private":false,"html_url":"https://github.com/chrisroos/govuk_frontend_toolkit","description":"Generic tools and helpers for building GDS front-end apps","fork":true,"url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit","forks_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/forks","keys_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/teams","hooks_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/hooks","issue_events_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/events","assignees_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/tags","blobs_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/languages","stargazers_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/stargazers","contributors_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/contributors","subscribers_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/subscribers","subscription_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/subscription","commits_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/merges","archive_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/downloads","issues_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/labels{/name}","releases_url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/releases{/id}","created_at":"2015-07-07T15:08:39Z","updated_at":"2015-07-07T15:08:39Z","pushed_at":"2015-07-07T15:09:33Z","git_url":"git://github.com/chrisroos/govuk_frontend_toolkit.git","ssh_url":"git@github.com:chrisroos/govuk_frontend_toolkit.git","clone_url":"https://github.com/chrisroos/govuk_frontend_toolkit.git","svn_url":"https://github.com/chrisroos/govuk_frontend_toolkit","homepage":null,"size":2633,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"50a7ce9ad4c24cc00163ecc25dd5ce7b1db5de37","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":5428163,"name":"govuk_frontend_toolkit","full_name":"alphagov/govuk_frontend_toolkit","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/govuk_frontend_toolkit","description":"Generic tools and helpers for building GDS front-end apps","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit","forks_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/releases{/id}","created_at":"2012-08-15T16:02:20Z","updated_at":"2015-07-07T09:14:15Z","pushed_at":"2015-06-25T13:53:30Z","git_url":"git://github.com/alphagov/govuk_frontend_toolkit.git","ssh_url":"git@github.com:alphagov/govuk_frontend_toolkit.git","clone_url":"https://github.com/alphagov/govuk_frontend_toolkit.git","svn_url":"https://github.com/alphagov/govuk_frontend_toolkit","homepage":null,"size":2633,"stargazers_count":187,"watchers_count":187,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":11,"forks":51,"open_issues":11,"watchers":187,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls/203"},"html":{"href":"https://github.com/alphagov/govuk_frontend_toolkit/pull/203"},"issue":{"href":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/203"},"comments":{"href":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/govuk_frontend_toolkit/statuses/5f9d892c9d62ea08238124b84730890b7e690ad3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":12,"deletions":0,"changed_files":2}}