{"action":"created","comment":{"url":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/comments/29070178","id":29070178,"diff_hunk":"@@ -62,6 +106,28 @@ VWO.prototype.replay = function(){\n  * @return {Object}\n  */\n \n+function rootExperiments(fn){\n+  enqueue(function(){\n+    var data = {};\n+    var expIds = window._vwo_exp_ids;\n+    if (!expIds) return fn();\n+    each(expIds, function(expId){\n+      var varName = variation(expId);","path":"lib/visual-website-optimizer/index.js","position":85,"original_position":85,"commit_id":"cea8b6afd2e2d9d00fd2c1032f7599108800fa21","original_commit_id":"cea8b6afd2e2d9d00fd2c1032f7599108800fa21","user":{"login":"ndhoule","id":1863990,"avatar_url":"https://avatars.githubusercontent.com/u/1863990?v=3","gravatar_id":"","url":"https://api.github.com/users/ndhoule","html_url":"https://github.com/ndhoule","followers_url":"https://api.github.com/users/ndhoule/followers","following_url":"https://api.github.com/users/ndhoule/following{/other_user}","gists_url":"https://api.github.com/users/ndhoule/gists{/gist_id}","starred_url":"https://api.github.com/users/ndhoule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndhoule/subscriptions","organizations_url":"https://api.github.com/users/ndhoule/orgs","repos_url":"https://api.github.com/users/ndhoule/repos","events_url":"https://api.github.com/users/ndhoule/events{/privacy}","received_events_url":"https://api.github.com/users/ndhoule/received_events","type":"User","site_admin":false},"body":"rename to `variationName`","created_at":"2015-04-24T17:53:48Z","updated_at":"2015-04-24T17:53:48Z","html_url":"https://github.com/segmentio/analytics.js-integrations/pull/600#discussion_r29070178","pull_request_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/600","_links":{"self":{"href":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/comments/29070178"},"html":{"href":"https://github.com/segmentio/analytics.js-integrations/pull/600#discussion_r29070178"},"pull_request":{"href":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/600"}}},"pull_request":{"url":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/600","id":34011681,"html_url":"https://github.com/segmentio/analytics.js-integrations/pull/600","diff_url":"https://github.com/segmentio/analytics.js-integrations/pull/600.diff","patch_url":"https://github.com/segmentio/analytics.js-integrations/pull/600.patch","issue_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues/600","number":600,"state":"open","locked":false,"title":"Adding Optimizely Root - DO NOT MERGE","user":{"login":"amillet89","id":1464190,"avatar_url":"https://avatars.githubusercontent.com/u/1464190?v=3","gravatar_id":"","url":"https://api.github.com/users/amillet89","html_url":"https://github.com/amillet89","followers_url":"https://api.github.com/users/amillet89/followers","following_url":"https://api.github.com/users/amillet89/following{/other_user}","gists_url":"https://api.github.com/users/amillet89/gists{/gist_id}","starred_url":"https://api.github.com/users/amillet89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amillet89/subscriptions","organizations_url":"https://api.github.com/users/amillet89/orgs","repos_url":"https://api.github.com/users/amillet89/repos","events_url":"https://api.github.com/users/amillet89/events{/privacy}","received_events_url":"https://api.github.com/users/amillet89/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-24T01:18:01Z","updated_at":"2015-04-24T17:53:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51afe46d12ff6ab0a34331c8c5237e0f2d31f938","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/600/commits","review_comments_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/600/comments","review_comment_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues/600/comments","statuses_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/statuses/cea8b6afd2e2d9d00fd2c1032f7599108800fa21","head":{"label":"segmentio:add/ab-testing-roots","ref":"add/ab-testing-roots","sha":"cea8b6afd2e2d9d00fd2c1032f7599108800fa21","user":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"repo":{"id":14219761,"name":"analytics.js-integrations","full_name":"segmentio/analytics.js-integrations","owner":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segmentio/analytics.js-integrations","description":"All of the third-party analytics.js integrations.","fork":false,"url":"https://api.github.com/repos/segmentio/analytics.js-integrations","forks_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/forks","keys_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/teams","hooks_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/hooks","issue_events_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues/events{/number}","events_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/events","assignees_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/assignees{/user}","branches_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/branches{/branch}","tags_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/tags","blobs_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/refs{/sha}","trees_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/statuses/{sha}","languages_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/languages","stargazers_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/stargazers","contributors_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/contributors","subscribers_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/subscribers","subscription_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/subscription","commits_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/commits{/sha}","git_commits_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/commits{/sha}","comments_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/comments{/number}","issue_comment_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues/comments{/number}","contents_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/contents/{+path}","compare_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/merges","archive_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/downloads","issues_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues{/number}","pulls_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls{/number}","milestones_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/milestones{/number}","notifications_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/labels{/name}","releases_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/releases{/id}","created_at":"2013-11-08T00:09:00Z","updated_at":"2015-04-22T22:49:31Z","pushed_at":"2015-04-24T03:27:04Z","git_url":"git://github.com/segmentio/analytics.js-integrations.git","ssh_url":"git@github.com:segmentio/analytics.js-integrations.git","clone_url":"https://github.com/segmentio/analytics.js-integrations.git","svn_url":"https://github.com/segmentio/analytics.js-integrations","homepage":null,"size":11369,"stargazers_count":60,"watchers_count":60,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":124,"mirror_url":null,"open_issues_count":66,"forks":124,"open_issues":66,"watchers":60,"default_branch":"master"}},"base":{"label":"segmentio:master","ref":"master","sha":"675620c00d6d061ac40437e2d43f7c87fc98e1f1","user":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"repo":{"id":14219761,"name":"analytics.js-integrations","full_name":"segmentio/analytics.js-integrations","owner":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segmentio/analytics.js-integrations","description":"All of the third-party analytics.js integrations.","fork":false,"url":"https://api.github.com/repos/segmentio/analytics.js-integrations","forks_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/forks","keys_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/teams","hooks_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/hooks","issue_events_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues/events{/number}","events_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/events","assignees_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/assignees{/user}","branches_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/branches{/branch}","tags_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/tags","blobs_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/refs{/sha}","trees_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/statuses/{sha}","languages_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/languages","stargazers_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/stargazers","contributors_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/contributors","subscribers_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/subscribers","subscription_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/subscription","commits_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/commits{/sha}","git_commits_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/git/commits{/sha}","comments_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/comments{/number}","issue_comment_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues/comments{/number}","contents_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/contents/{+path}","compare_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/merges","archive_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/downloads","issues_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues{/number}","pulls_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls{/number}","milestones_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/milestones{/number}","notifications_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/labels{/name}","releases_url":"https://api.github.com/repos/segmentio/analytics.js-integrations/releases{/id}","created_at":"2013-11-08T00:09:00Z","updated_at":"2015-04-22T22:49:31Z","pushed_at":"2015-04-24T03:27:04Z","git_url":"git://github.com/segmentio/analytics.js-integrations.git","ssh_url":"git@github.com:segmentio/analytics.js-integrations.git","clone_url":"https://github.com/segmentio/analytics.js-integrations.git","svn_url":"https://github.com/segmentio/analytics.js-integrations","homepage":null,"size":11369,"stargazers_count":60,"watchers_count":60,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":124,"mirror_url":null,"open_issues_count":66,"forks":124,"open_issues":66,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/600"},"html":{"href":"https://github.com/segmentio/analytics.js-integrations/pull/600"},"issue":{"href":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues/600"},"comments":{"href":"https://api.github.com/repos/segmentio/analytics.js-integrations/issues/600/comments"},"review_comments":{"href":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/600/comments"},"review_comment":{"href":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/segmentio/analytics.js-integrations/pulls/600/commits"},"statuses":{"href":"https://api.github.com/repos/segmentio/analytics.js-integrations/statuses/cea8b6afd2e2d9d00fd2c1032f7599108800fa21"}}}}