{"action":"opened","number":124,"pull_request":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls/124","id":41656655,"html_url":"https://github.com/alphagov/digitalmarketplace-buyer-frontend/pull/124","diff_url":"https://github.com/alphagov/digitalmarketplace-buyer-frontend/pull/124.diff","patch_url":"https://github.com/alphagov/digitalmarketplace-buyer-frontend/pull/124.patch","issue_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues/124","number":124,"state":"open","locked":false,"title":"Fix cross-domain tracking","user":{"login":"tombye","id":87140,"avatar_url":"https://avatars.githubusercontent.com/u/87140?v=3","gravatar_id":"","url":"https://api.github.com/users/tombye","html_url":"https://github.com/tombye","followers_url":"https://api.github.com/users/tombye/followers","following_url":"https://api.github.com/users/tombye/following{/other_user}","gists_url":"https://api.github.com/users/tombye/gists{/gist_id}","starred_url":"https://api.github.com/users/tombye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombye/subscriptions","organizations_url":"https://api.github.com/users/tombye/orgs","repos_url":"https://api.github.com/users/tombye/repos","events_url":"https://api.github.com/users/tombye/events{/privacy}","received_events_url":"https://api.github.com/users/tombye/received_events","type":"User","site_admin":false},"body":"The cross-domain tracking is currently setting 2 trackers which is producing duplicate pageviews.\r\n\r\nhttps://www.pivotaltracker.com/story/show/100627412\r\n\r\nAs described by Persicope, our analytics contractor, the following calls to the `ga` method should be removed:\r\n\r\n```\r\nga(‘create’, ‘UA-49258698-1’, ‘auto’, { ‘name’: ‘link’ });\r\nga(‘link.require’, ‘linker’)\r\nga(‘link.linker:autoLink’, [‘digitalservicesstore.service.gov.uk’])\r\nga(‘link.set’, ‘anonymizeIp’, true)\r\nga(‘link.send’, ‘pageview’)\r\n```\r\n\r\n...while these should be preserved:\r\n\r\n```\r\nga(‘create’, ‘UA-49258698-1’, { ‘cookieDomain’: ‘.digitalmarketplace.service.gov.uk’, ‘allowLinker’: true });\r\nga(‘set’, ‘anonymizeIp’, true)\r\nga(‘send’, ‘pageview’)\r\nga(‘require’, ‘linker’)\r\nga(‘linker:autoLink’, [‘digitalservicesstore.service.gov.uk’])\r\n```\r\n\r\nThe GOVUK.Analytics code sets an additional tracker for cross-domain tracking by default so this part of the code has had to be rewritten to allow the above requirements.","created_at":"2015-08-05T08:55:20Z","updated_at":"2015-08-05T08:55:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls/124/commits","review_comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls/124/comments","review_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues/124/comments","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/statuses/587247223de7117f21dfd13ea7e74205f6641956","head":{"label":"alphagov:fix-cross-domain-tracking","ref":"fix-cross-domain-tracking","sha":"587247223de7117f21dfd13ea7e74205f6641956","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":31320841,"name":"digitalmarketplace-buyer-frontend","full_name":"alphagov/digitalmarketplace-buyer-frontend","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/digitalmarketplace-buyer-frontend","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/releases{/id}","created_at":"2015-02-25T15:42:09Z","updated_at":"2015-05-08T10:00:02Z","pushed_at":"2015-08-05T08:44:53Z","git_url":"git://github.com/alphagov/digitalmarketplace-buyer-frontend.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-buyer-frontend.git","clone_url":"https://github.com/alphagov/digitalmarketplace-buyer-frontend.git","svn_url":"https://github.com/alphagov/digitalmarketplace-buyer-frontend","homepage":null,"size":2884,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"a3fd85ae2821624b28aa1025624f1d64449c5326","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":31320841,"name":"digitalmarketplace-buyer-frontend","full_name":"alphagov/digitalmarketplace-buyer-frontend","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/digitalmarketplace-buyer-frontend","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/releases{/id}","created_at":"2015-02-25T15:42:09Z","updated_at":"2015-05-08T10:00:02Z","pushed_at":"2015-08-05T08:44:53Z","git_url":"git://github.com/alphagov/digitalmarketplace-buyer-frontend.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-buyer-frontend.git","clone_url":"https://github.com/alphagov/digitalmarketplace-buyer-frontend.git","svn_url":"https://github.com/alphagov/digitalmarketplace-buyer-frontend","homepage":null,"size":2884,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls/124"},"html":{"href":"https://github.com/alphagov/digitalmarketplace-buyer-frontend/pull/124"},"issue":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues/124"},"comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-buyer-frontend/statuses/587247223de7117f21dfd13ea7e74205f6641956"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":119,"deletions":14,"changed_files":3}}