{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/98508379","pull_request_review_id":19152112,"id":98508379,"diff_hunk":"@@ -0,0 +1,49 @@\n+/**\n+ * External dependencies\n+ */\n+import React from 'react';\n+import { translate } from 'i18n-calypso';\n+import { overEvery as and } from 'lodash';\n+\n+/**\n+ * Internal dependencies\n+ */\n+import {\n+\tButtonRow,\n+\tLinkQuit,\n+\tmakeTour,\n+\tQuit,\n+\tStep,\n+\tTour,\n+} from 'layout/guided-tours/config-elements';\n+import {\n+\tisAbTestInVariant,\n+\tisEnabled,\n+} from 'state/ui/guided-tours/contexts';\n+import { isDesktop } from 'lib/viewport';\n+\n+export const BoostedPostTour = makeTour(\n+\t<Tour\n+\t\tname=\"boostedPostSurvey\"\n+\t\tpath=\"/posts/\"\n+\t\tversion=\"20170127\"\n+\t\twhen={ and(\n+\t\t\tisEnabled( 'boosted-post-survey' ),\n+\t\t\tisDesktop,\n+\t\t\tisAbTestInVariant( 'boostedPostSurvey', 'enabled' )\n+\t\t) }","path":"client/layout/guided-tours/tours/boosted-post-tour.js","position":34,"original_position":34,"commit_id":"a923a1686c80c27560b960310c2edf84775a0a95","original_commit_id":"a923a1686c80c27560b960310c2edf84775a0a95","user":{"login":"mcsf","id":150562,"avatar_url":"https://avatars.githubusercontent.com/u/150562?v=3","gravatar_id":"","url":"https://api.github.com/users/mcsf","html_url":"https://github.com/mcsf","followers_url":"https://api.github.com/users/mcsf/followers","following_url":"https://api.github.com/users/mcsf/following{/other_user}","gists_url":"https://api.github.com/users/mcsf/gists{/gist_id}","starred_url":"https://api.github.com/users/mcsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcsf/subscriptions","organizations_url":"https://api.github.com/users/mcsf/orgs","repos_url":"https://api.github.com/users/mcsf/repos","events_url":"https://api.github.com/users/mcsf/events{/privacy}","received_events_url":"https://api.github.com/users/mcsf/received_events","type":"User","site_admin":false},"body":"The triggers are really important when it comes to Guided Tours, and the framework was built specifically with that in mind. I don't think that merely popping up this tour on navigation to `/posts` is adequate. I suggest reading our extensive documentation, or — since it has very similar requisites — have a look at this [ongoing PR](https://github.com/Automattic/wp-calypso/pull/10812) by @nosolosw.\r\n\r\nIn order to have the tour start once a post is published, in a nutshell, you need to pinpoint the Redux action that interests you — action type, but other potential data in the action payload. Use the Redux dev tool for this and try publishing posts in different situations. Then you'll add the relevant action type to the GT's action log (`state.ui.actionLog`) and set up the according selector in GT; again, Andrés's PR is very similar.","created_at":"2017-01-30T18:34:53Z","updated_at":"2017-01-30T18:42:57Z","html_url":"https://github.com/Automattic/wp-calypso/pull/10837#discussion_r98508379","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/10837","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/98508379"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/10837#discussion_r98508379"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/10837"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/10837","id":102568154,"html_url":"https://github.com/Automattic/wp-calypso/pull/10837","diff_url":"https://github.com/Automattic/wp-calypso/pull/10837.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/10837.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/10837","number":10837,"state":"open","locked":false,"title":"Ads: Boosted Post Test","user":{"login":"dbspringer","id":273708,"avatar_url":"https://avatars.githubusercontent.com/u/273708?v=3","gravatar_id":"","url":"https://api.github.com/users/dbspringer","html_url":"https://github.com/dbspringer","followers_url":"https://api.github.com/users/dbspringer/followers","following_url":"https://api.github.com/users/dbspringer/following{/other_user}","gists_url":"https://api.github.com/users/dbspringer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbspringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbspringer/subscriptions","organizations_url":"https://api.github.com/users/dbspringer/orgs","repos_url":"https://api.github.com/users/dbspringer/repos","events_url":"https://api.github.com/users/dbspringer/events{/privacy}","received_events_url":"https://api.github.com/users/dbspringer/received_events","type":"User","site_admin":false},"body":"This is a test to evaluate the users interest in a potential feature to boost the reach of their content using our paid ad network. 10% of users in AB test `boostedPostSurvey` will see a tour pop up on the Posts page asking them if they are interested in increasing their readership.\r\n\r\nOriginal approach was to start the survey after a use published a post, but there wasn't an easy technical way to start the tour *after* a publish without a page reload. Instead I moved it to the Posts page and added the AB test variant.\r\n\r\nOriginal PR (retracted): https://github.com/Automattic/wp-calypso/pull/10806\r\n\r\nTo test:\r\n1. Enable `boostedPostSurvey` AB test via dev popup (or add ?tour=boostedPostSurvey to the end of the URL).\r\n1. Go to one of your sites and view the posts.\r\n\r\n<img width=\"1378\" alt=\"screen shot 2017-01-27 at 12 35 13 pm\" src=\"https://cloud.githubusercontent.com/assets/273708/22387245/857a1d86-e48f-11e6-8c12-795b429725b6.png\">\r\n\r\n**Survey Screens**\r\nhttp://jonburke.polldaddy.com/s/boosted-post\r\n\r\n<img width=\"749\" alt=\"screen shot 2017-01-27 at 12 53 21 pm\" src=\"https://cloud.githubusercontent.com/assets/273708/22387269/a38bf81c-e48f-11e6-8982-ec38b55b967b.png\">\r\n\r\n<img width=\"730\" alt=\"screen shot 2017-01-27 at 12 53 29 pm\" src=\"https://cloud.githubusercontent.com/assets/273708/22387274/a8478402-e48f-11e6-92bc-480e01b9e0c5.png\">\r\n","created_at":"2017-01-21T03:13:45Z","updated_at":"2017-01-30T18:42:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d7e341c846cd00e6c225e237b44fc30f1e0dfe0","assignee":{"login":"dbspringer","id":273708,"avatar_url":"https://avatars.githubusercontent.com/u/273708?v=3","gravatar_id":"","url":"https://api.github.com/users/dbspringer","html_url":"https://github.com/dbspringer","followers_url":"https://api.github.com/users/dbspringer/followers","following_url":"https://api.github.com/users/dbspringer/following{/other_user}","gists_url":"https://api.github.com/users/dbspringer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbspringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbspringer/subscriptions","organizations_url":"https://api.github.com/users/dbspringer/orgs","repos_url":"https://api.github.com/users/dbspringer/repos","events_url":"https://api.github.com/users/dbspringer/events{/privacy}","received_events_url":"https://api.github.com/users/dbspringer/received_events","type":"User","site_admin":false},"assignees":[{"login":"dbspringer","id":273708,"avatar_url":"https://avatars.githubusercontent.com/u/273708?v=3","gravatar_id":"","url":"https://api.github.com/users/dbspringer","html_url":"https://github.com/dbspringer","followers_url":"https://api.github.com/users/dbspringer/followers","following_url":"https://api.github.com/users/dbspringer/following{/other_user}","gists_url":"https://api.github.com/users/dbspringer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbspringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbspringer/subscriptions","organizations_url":"https://api.github.com/users/dbspringer/orgs","repos_url":"https://api.github.com/users/dbspringer/repos","events_url":"https://api.github.com/users/dbspringer/events{/privacy}","received_events_url":"https://api.github.com/users/dbspringer/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/10837/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/10837/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/10837/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/a923a1686c80c27560b960310c2edf84775a0a95","head":{"label":"Automattic:add/boosted-post-tour","ref":"add/boosted-post-tour","sha":"a923a1686c80c27560b960310c2edf84775a0a95","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2017-01-30T18:39:44Z","pushed_at":"2017-01-30T18:22:14Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":42597,"stargazers_count":8390,"watchers_count":8390,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1071,"mirror_url":null,"open_issues_count":1669,"forks":1071,"open_issues":1669,"watchers":8390,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"234b01291ee1c9268bc915a85189de90e9f06999","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2017-01-30T18:39:44Z","pushed_at":"2017-01-30T18:22:14Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":42597,"stargazers_count":8390,"watchers_count":8390,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1071,"mirror_url":null,"open_issues_count":1669,"forks":1071,"open_issues":1669,"watchers":8390,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/10837"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/10837"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/10837"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/10837/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/10837/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/10837/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/a923a1686c80c27560b960310c2edf84775a0a95"}}}}
{"actor":{"display_login":"mcsf"}}