{"action":"opened","number":1693,"pull_request":{"url":"https://api.github.com/repos/mysociety/pombola/pulls/1693","id":38967247,"html_url":"https://github.com/mysociety/pombola/pull/1693","diff_url":"https://github.com/mysociety/pombola/pull/1693.diff","patch_url":"https://github.com/mysociety/pombola/pull/1693.patch","issue_url":"https://api.github.com/repos/mysociety/pombola/issues/1693","number":1693,"state":"open","locked":false,"title":"Stop using Google Analytics' Content Experiments for randomizing pages","user":{"login":"mhl","id":7907,"avatar_url":"https://avatars.githubusercontent.com/u/7907?v=3","gravatar_id":"","url":"https://api.github.com/users/mhl","html_url":"https://github.com/mhl","followers_url":"https://api.github.com/users/mhl/followers","following_url":"https://api.github.com/users/mhl/following{/other_user}","gists_url":"https://api.github.com/users/mhl/gists{/gist_id}","starred_url":"https://api.github.com/users/mhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhl/subscriptions","organizations_url":"https://api.github.com/users/mhl/orgs","repos_url":"https://api.github.com/users/mhl/repos","events_url":"https://api.github.com/users/mhl/events{/privacy}","received_events_url":"https://api.github.com/users/mhl/received_events","type":"User","site_admin":false},"body":"All the data that MIT want is being stored in our database, and we're\r\nnot using Google Analytics for anything except picking a random variant\r\nof the page.  Using it for randomization also has a few difficulties:\r\n    \r\n * It does a redirect after the page load, and sometimes we don't seem\r\n   to be getting that redirect (because of Javascript failures or\r\n   network problems, we assume)\r\n    \r\n * There's not a natural goal we can set for the content experiment, so\r\n   we've just been setting 99.5% confidence that one variant increases\r\n   page views across the site as a whole, which is unlikely to happen\r\n   and stop the experiment, but still seems silly.\r\n    \r\n * The code in the view is unnecessarily complicated to deal with\r\n   essentially ignoring page views without a utm_expid.\r\n    \r\nSo, this commit switches to picking a variant randomly ourselves, so\r\nthere should only be a single page load after clicking the Facebook\r\nadvertisement.\r\n","created_at":"2015-07-01T10:15:13Z","updated_at":"2015-07-01T10:15:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mysociety/pombola/pulls/1693/commits","review_comments_url":"https://api.github.com/repos/mysociety/pombola/pulls/1693/comments","review_comment_url":"https://api.github.com/repos/mysociety/pombola/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mysociety/pombola/issues/1693/comments","statuses_url":"https://api.github.com/repos/mysociety/pombola/statuses/7dcc230a8cb94c9a98e1b158612e52ac4971e4f3","head":{"label":"mysociety:shun-google-content-experiments","ref":"shun-google-content-experiments","sha":"7dcc230a8cb94c9a98e1b158612e52ac4971e4f3","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":1994469,"name":"pombola","full_name":"mysociety/pombola","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/pombola","description":"Pombola is a parliamentary monitoring (PMO) platform; its biggest instances are Mzalendo.com and pa.org.za","fork":false,"url":"https://api.github.com/repos/mysociety/pombola","forks_url":"https://api.github.com/repos/mysociety/pombola/forks","keys_url":"https://api.github.com/repos/mysociety/pombola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/pombola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/pombola/teams","hooks_url":"https://api.github.com/repos/mysociety/pombola/hooks","issue_events_url":"https://api.github.com/repos/mysociety/pombola/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/pombola/events","assignees_url":"https://api.github.com/repos/mysociety/pombola/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/pombola/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/pombola/tags","blobs_url":"https://api.github.com/repos/mysociety/pombola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/pombola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/pombola/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/pombola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/pombola/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/pombola/languages","stargazers_url":"https://api.github.com/repos/mysociety/pombola/stargazers","contributors_url":"https://api.github.com/repos/mysociety/pombola/contributors","subscribers_url":"https://api.github.com/repos/mysociety/pombola/subscribers","subscription_url":"https://api.github.com/repos/mysociety/pombola/subscription","commits_url":"https://api.github.com/repos/mysociety/pombola/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/pombola/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/pombola/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/pombola/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/pombola/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/pombola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/pombola/merges","archive_url":"https://api.github.com/repos/mysociety/pombola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/pombola/downloads","issues_url":"https://api.github.com/repos/mysociety/pombola/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/pombola/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/pombola/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/pombola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/pombola/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/pombola/releases{/id}","created_at":"2011-07-04T08:46:51Z","updated_at":"2015-06-30T15:24:14Z","pushed_at":"2015-07-01T10:11:43Z","git_url":"git://github.com/mysociety/pombola.git","ssh_url":"git@github.com:mysociety/pombola.git","clone_url":"https://github.com/mysociety/pombola.git","svn_url":"https://github.com/mysociety/pombola","homepage":"http://www.mysociety.org/projects/parliamentarymonitoring/pombola/","size":32245,"stargazers_count":40,"watchers_count":40,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":213,"forks":31,"open_issues":213,"watchers":40,"default_branch":"master"}},"base":{"label":"mysociety:master","ref":"master","sha":"65cc1448e10b0f75538fd03813f02c1def5d052f","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":1994469,"name":"pombola","full_name":"mysociety/pombola","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/pombola","description":"Pombola is a parliamentary monitoring (PMO) platform; its biggest instances are Mzalendo.com and pa.org.za","fork":false,"url":"https://api.github.com/repos/mysociety/pombola","forks_url":"https://api.github.com/repos/mysociety/pombola/forks","keys_url":"https://api.github.com/repos/mysociety/pombola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/pombola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/pombola/teams","hooks_url":"https://api.github.com/repos/mysociety/pombola/hooks","issue_events_url":"https://api.github.com/repos/mysociety/pombola/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/pombola/events","assignees_url":"https://api.github.com/repos/mysociety/pombola/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/pombola/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/pombola/tags","blobs_url":"https://api.github.com/repos/mysociety/pombola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/pombola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/pombola/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/pombola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/pombola/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/pombola/languages","stargazers_url":"https://api.github.com/repos/mysociety/pombola/stargazers","contributors_url":"https://api.github.com/repos/mysociety/pombola/contributors","subscribers_url":"https://api.github.com/repos/mysociety/pombola/subscribers","subscription_url":"https://api.github.com/repos/mysociety/pombola/subscription","commits_url":"https://api.github.com/repos/mysociety/pombola/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/pombola/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/pombola/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/pombola/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/pombola/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/pombola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/pombola/merges","archive_url":"https://api.github.com/repos/mysociety/pombola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/pombola/downloads","issues_url":"https://api.github.com/repos/mysociety/pombola/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/pombola/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/pombola/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/pombola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/pombola/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/pombola/releases{/id}","created_at":"2011-07-04T08:46:51Z","updated_at":"2015-06-30T15:24:14Z","pushed_at":"2015-07-01T10:11:43Z","git_url":"git://github.com/mysociety/pombola.git","ssh_url":"git@github.com:mysociety/pombola.git","clone_url":"https://github.com/mysociety/pombola.git","svn_url":"https://github.com/mysociety/pombola","homepage":"http://www.mysociety.org/projects/parliamentarymonitoring/pombola/","size":32245,"stargazers_count":40,"watchers_count":40,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":213,"forks":31,"open_issues":213,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysociety/pombola/pulls/1693"},"html":{"href":"https://github.com/mysociety/pombola/pull/1693"},"issue":{"href":"https://api.github.com/repos/mysociety/pombola/issues/1693"},"comments":{"href":"https://api.github.com/repos/mysociety/pombola/issues/1693/comments"},"review_comments":{"href":"https://api.github.com/repos/mysociety/pombola/pulls/1693/comments"},"review_comment":{"href":"https://api.github.com/repos/mysociety/pombola/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mysociety/pombola/pulls/1693/commits"},"statuses":{"href":"https://api.github.com/repos/mysociety/pombola/statuses/7dcc230a8cb94c9a98e1b158612e52ac4971e4f3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":60,"deletions":62,"changed_files":4}}