{"action":"closed","number":1392,"pull_request":{"url":"https://api.github.com/repos/guardian/membership-frontend/pulls/1392","id":95880545,"html_url":"https://github.com/guardian/membership-frontend/pull/1392","diff_url":"https://github.com/guardian/membership-frontend/pull/1392.diff","patch_url":"https://github.com/guardian/membership-frontend/pull/1392.patch","issue_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1392","number":1392,"state":"closed","locked":false,"title":"Tracking the Pay button in the checkout flow. ","user":{"login":"svillafe","id":825398,"avatar_url":"https://avatars.githubusercontent.com/u/825398?v=3","gravatar_id":"","url":"https://api.github.com/users/svillafe","html_url":"https://github.com/svillafe","followers_url":"https://api.github.com/users/svillafe/followers","following_url":"https://api.github.com/users/svillafe/following{/other_user}","gists_url":"https://api.github.com/users/svillafe/gists{/gist_id}","starred_url":"https://api.github.com/users/svillafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svillafe/subscriptions","organizations_url":"https://api.github.com/users/svillafe/orgs","repos_url":"https://api.github.com/users/svillafe/repos","events_url":"https://api.github.com/users/svillafe/events{/privacy}","received_events_url":"https://api.github.com/users/svillafe/received_events","type":"User","site_admin":false},"body":"## Trello Card: [Here]( https://trello.com/c/stwLayLA/171-track-clicks-on-the-pay-button-on-the-checkout-page)\r\n\r\n## Why are we doing this? \r\n\r\n This work is part of a three cards task. We first want to track the **Pay** button so in the near future we are able to implement an A/B Test to test the different button's text.\r\n\r\n## Which button are we tracking?\r\nWe are now tracking the **Pay** button on the checkout page. \r\n\r\n<img width=\"500\" alt=\"track-clicks-pay-button\" src=\"https://cloud.githubusercontent.com/assets/825398/20751881/337c99bc-b6f6-11e6-9f2d-4b04d9709e96.png\">\r\n\r\n## What are we sending to GA?\r\n\r\nThe following data that is being sent to GA in the events:\r\n\r\n### Flow A\r\n\r\n**data-metric-trigger**=\"click\"\r\n**data-metric-category**=\"checkout page\"\r\n**data-metric-action**=\"cta click\"\r\n**data-metric-label**=\"payment a\"\r\n\r\n### Flow B\r\n\r\n**data-metric-trigger**=\"click\"\r\n**data-metric-category**=\"checkout page\"\r\n**data-metric-action**=\"cta click\"\r\n**data-metric-label**=\"payment b\"\r\n\r\n## Related Trello cards:\r\n**\"Capture the price\"**: [card: 172](https://trello.com/c/cyKgv9eD/172-capture-the-price-that-someone-is-paying)\r\n**\"A/B Test\"**: [card: 167](https://trello.com/c/cQn4Fixp/167-a-b-test-different-prices-on-the-cta)\r\n**\"Consistent journey\"**: [card: 189](https://trello.com/c/9mTB8UAR/189-keep-pricing-throughout-the-journey-consistent)\r\n","created_at":"2016-11-30T12:16:09Z","updated_at":"2016-12-02T10:23:59Z","closed_at":"2016-12-02T10:23:59Z","merged_at":"2016-12-02T10:23:59Z","merge_commit_sha":"76086da54f15dccf08fe6afb2234f85cb32eaf8c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/guardian/membership-frontend/pulls/1392/commits","review_comments_url":"https://api.github.com/repos/guardian/membership-frontend/pulls/1392/comments","review_comment_url":"https://api.github.com/repos/guardian/membership-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1392/comments","statuses_url":"https://api.github.com/repos/guardian/membership-frontend/statuses/2bd85dd51827129cf8f8020190ad360a53907e5b","head":{"label":"guardian:tracking-pay-button","ref":"tracking-pay-button","sha":"2bd85dd51827129cf8f8020190ad360a53907e5b","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":28401521,"name":"membership-frontend","full_name":"guardian/membership-frontend","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/membership-frontend","description":"Support the Guardian's journalism by becoming a member!","fork":false,"url":"https://api.github.com/repos/guardian/membership-frontend","forks_url":"https://api.github.com/repos/guardian/membership-frontend/forks","keys_url":"https://api.github.com/repos/guardian/membership-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/membership-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/membership-frontend/teams","hooks_url":"https://api.github.com/repos/guardian/membership-frontend/hooks","issue_events_url":"https://api.github.com/repos/guardian/membership-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/membership-frontend/events","assignees_url":"https://api.github.com/repos/guardian/membership-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/membership-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/membership-frontend/tags","blobs_url":"https://api.github.com/repos/guardian/membership-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/membership-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/membership-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/membership-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/membership-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/membership-frontend/languages","stargazers_url":"https://api.github.com/repos/guardian/membership-frontend/stargazers","contributors_url":"https://api.github.com/repos/guardian/membership-frontend/contributors","subscribers_url":"https://api.github.com/repos/guardian/membership-frontend/subscribers","subscription_url":"https://api.github.com/repos/guardian/membership-frontend/subscription","commits_url":"https://api.github.com/repos/guardian/membership-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/membership-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/membership-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/membership-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/membership-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/membership-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/membership-frontend/merges","archive_url":"https://api.github.com/repos/guardian/membership-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/membership-frontend/downloads","issues_url":"https://api.github.com/repos/guardian/membership-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/membership-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/membership-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/membership-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/membership-frontend/labels{/name}","releases_url":"https://api.github.com/repos/guardian/membership-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/membership-frontend/deployments","created_at":"2014-12-23T14:14:38Z","updated_at":"2016-11-13T23:25:19Z","pushed_at":"2016-12-02T10:23:59Z","git_url":"git://github.com/guardian/membership-frontend.git","ssh_url":"git@github.com:guardian/membership-frontend.git","clone_url":"https://github.com/guardian/membership-frontend.git","svn_url":"https://github.com/guardian/membership-frontend","homepage":"https://membership.theguardian.com/","size":49768,"stargazers_count":29,"watchers_count":29,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":4,"forks":17,"open_issues":4,"watchers":29,"default_branch":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"8d47bf52124e67766403d5e27e1e8833defc1ef4","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":28401521,"name":"membership-frontend","full_name":"guardian/membership-frontend","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/membership-frontend","description":"Support the Guardian's journalism by becoming a member!","fork":false,"url":"https://api.github.com/repos/guardian/membership-frontend","forks_url":"https://api.github.com/repos/guardian/membership-frontend/forks","keys_url":"https://api.github.com/repos/guardian/membership-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/membership-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/membership-frontend/teams","hooks_url":"https://api.github.com/repos/guardian/membership-frontend/hooks","issue_events_url":"https://api.github.com/repos/guardian/membership-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/membership-frontend/events","assignees_url":"https://api.github.com/repos/guardian/membership-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/membership-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/membership-frontend/tags","blobs_url":"https://api.github.com/repos/guardian/membership-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/membership-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/membership-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/membership-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/membership-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/membership-frontend/languages","stargazers_url":"https://api.github.com/repos/guardian/membership-frontend/stargazers","contributors_url":"https://api.github.com/repos/guardian/membership-frontend/contributors","subscribers_url":"https://api.github.com/repos/guardian/membership-frontend/subscribers","subscription_url":"https://api.github.com/repos/guardian/membership-frontend/subscription","commits_url":"https://api.github.com/repos/guardian/membership-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/membership-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/membership-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/membership-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/membership-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/membership-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/membership-frontend/merges","archive_url":"https://api.github.com/repos/guardian/membership-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/membership-frontend/downloads","issues_url":"https://api.github.com/repos/guardian/membership-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/membership-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/membership-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/membership-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/membership-frontend/labels{/name}","releases_url":"https://api.github.com/repos/guardian/membership-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/membership-frontend/deployments","created_at":"2014-12-23T14:14:38Z","updated_at":"2016-11-13T23:25:19Z","pushed_at":"2016-12-02T10:23:59Z","git_url":"git://github.com/guardian/membership-frontend.git","ssh_url":"git@github.com:guardian/membership-frontend.git","clone_url":"https://github.com/guardian/membership-frontend.git","svn_url":"https://github.com/guardian/membership-frontend","homepage":"https://membership.theguardian.com/","size":49768,"stargazers_count":29,"watchers_count":29,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":4,"forks":17,"open_issues":4,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/membership-frontend/pulls/1392"},"html":{"href":"https://github.com/guardian/membership-frontend/pull/1392"},"issue":{"href":"https://api.github.com/repos/guardian/membership-frontend/issues/1392"},"comments":{"href":"https://api.github.com/repos/guardian/membership-frontend/issues/1392/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/membership-frontend/pulls/1392/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/membership-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/membership-frontend/pulls/1392/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/membership-frontend/statuses/2bd85dd51827129cf8f8020190ad360a53907e5b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"svillafe","id":825398,"avatar_url":"https://avatars.githubusercontent.com/u/825398?v=3","gravatar_id":"","url":"https://api.github.com/users/svillafe","html_url":"https://github.com/svillafe","followers_url":"https://api.github.com/users/svillafe/followers","following_url":"https://api.github.com/users/svillafe/following{/other_user}","gists_url":"https://api.github.com/users/svillafe/gists{/gist_id}","starred_url":"https://api.github.com/users/svillafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svillafe/subscriptions","organizations_url":"https://api.github.com/users/svillafe/orgs","repos_url":"https://api.github.com/users/svillafe/repos","events_url":"https://api.github.com/users/svillafe/events{/privacy}","received_events_url":"https://api.github.com/users/svillafe/received_events","type":"User","site_admin":false},"comments":3,"review_comments":3,"commits":2,"additions":13,"deletions":4,"changed_files":3}}
{"actor":{"display_login":"svillafe"}}