{"action":"created","comment":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/comments/86895612","pull_request_review_id":7530747,"id":86895612,"diff_hunk":"@@ -625,18 +662,47 @@ protected void addAccount() {\n     \t */\n     \tfinal Context appContext = SalesforceSDKManager.getInstance().getAppContext();\n     \tfinal String pushNotificationId = BootConfig.getBootConfig(appContext).getPushNotificationClientId();\n+        final UserAccount account = new UserAccount(accountOptions.authToken,\n+                accountOptions.refreshToken, loginOptions.loginUrl,\n+                accountOptions.identityUrl, accountOptions.instanceUrl,\n+                accountOptions.orgId, accountOptions.userId,\n+                accountOptions.username, accountName,\n+                loginOptions.clientSecret, accountOptions.communityId,\n+                accountOptions.communityUrl, accountOptions.firstName,\n+                accountOptions.lastName, accountOptions.displayName, accountOptions.email,\n+                accountOptions.photoUrl, accountOptions.thumbnailUrl);\n     \tif (!TextUtils.isEmpty(pushNotificationId)) {\n-            final UserAccount account = new UserAccount(accountOptions.authToken,\n-            \t\taccountOptions.refreshToken, loginOptions.loginUrl,\n-            \t\taccountOptions.identityUrl, accountOptions.instanceUrl,\n-            \t\taccountOptions.orgId, accountOptions.userId,\n-            \t\taccountOptions.username, accountName,\n-            \t\tloginOptions.clientSecret, accountOptions.communityId,\n-            \t\taccountOptions.communityUrl, accountOptions.firstName,\n-                    accountOptions.lastName, accountOptions.displayName, accountOptions.email,\n-                    accountOptions.photoUrl, accountOptions.thumbnailUrl);\n         \tPushMessaging.register(appContext, account);\n     \t}\n+\n+        // Logs analytics event for new user.\n+        final JSONObject userAttr = new JSONObject();\n+        try {\n+            final List<UserAccount> users = UserAccountManager.getInstance().getAuthenticatedUsers();\n+            userAttr.put(\"numUsers\", (users == null) ? 0 : users.size());","path":"libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/OAuthWebviewHelper.java","position":98,"original_position":98,"commit_id":"fe261e2c7482b840b6192a6f11f342670fdeb3d9","original_commit_id":"fe261e2c7482b840b6192a6f11f342670fdeb3d9","user":{"login":"bhariharan","id":1820287,"avatar_url":"https://avatars.githubusercontent.com/u/1820287?v=3","gravatar_id":"","url":"https://api.github.com/users/bhariharan","html_url":"https://github.com/bhariharan","followers_url":"https://api.github.com/users/bhariharan/followers","following_url":"https://api.github.com/users/bhariharan/following{/other_user}","gists_url":"https://api.github.com/users/bhariharan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhariharan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhariharan/subscriptions","organizations_url":"https://api.github.com/users/bhariharan/orgs","repos_url":"https://api.github.com/users/bhariharan/repos","events_url":"https://api.github.com/users/bhariharan/events{/privacy}","received_events_url":"https://api.github.com/users/bhariharan/received_events","type":"User","site_admin":false},"body":"Event for number of users.","created_at":"2016-11-07T23:43:51Z","updated_at":"2016-11-07T23:43:52Z","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/1281#discussion_r86895612","pull_request_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/1281","_links":{"self":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/comments/86895612"},"html":{"href":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/1281#discussion_r86895612"},"pull_request":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/1281"}}},"pull_request":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/1281","id":92688156,"html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/1281","diff_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/1281.diff","patch_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/1281.patch","issue_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/1281","number":1281,"state":"open","locked":false,"title":"Implement remaining markers","user":{"login":"bhariharan","id":1820287,"avatar_url":"https://avatars.githubusercontent.com/u/1820287?v=3","gravatar_id":"","url":"https://api.github.com/users/bhariharan","html_url":"https://github.com/bhariharan","followers_url":"https://api.github.com/users/bhariharan/followers","following_url":"https://api.github.com/users/bhariharan/following{/other_user}","gists_url":"https://api.github.com/users/bhariharan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhariharan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhariharan/subscriptions","organizations_url":"https://api.github.com/users/bhariharan/orgs","repos_url":"https://api.github.com/users/bhariharan/repos","events_url":"https://api.github.com/users/bhariharan/events{/privacy}","received_events_url":"https://api.github.com/users/bhariharan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-07T23:43:10Z","updated_at":"2016-11-07T23:43:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96061a2e847981f46acdaed9df7d22fb0fa3f048","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/1281/commits","review_comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/1281/comments","review_comment_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/1281/comments","statuses_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/statuses/fe261e2c7482b840b6192a6f11f342670fdeb3d9","head":{"label":"bhariharan:ailtn_events","ref":"ailtn_events","sha":"fe261e2c7482b840b6192a6f11f342670fdeb3d9","user":{"login":"bhariharan","id":1820287,"avatar_url":"https://avatars.githubusercontent.com/u/1820287?v=3","gravatar_id":"","url":"https://api.github.com/users/bhariharan","html_url":"https://github.com/bhariharan","followers_url":"https://api.github.com/users/bhariharan/followers","following_url":"https://api.github.com/users/bhariharan/following{/other_user}","gists_url":"https://api.github.com/users/bhariharan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhariharan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhariharan/subscriptions","organizations_url":"https://api.github.com/users/bhariharan/orgs","repos_url":"https://api.github.com/users/bhariharan/repos","events_url":"https://api.github.com/users/bhariharan/events{/privacy}","received_events_url":"https://api.github.com/users/bhariharan/received_events","type":"User","site_admin":false},"repo":{"id":5185129,"name":"SalesforceMobileSDK-Android","full_name":"bhariharan/SalesforceMobileSDK-Android","owner":{"login":"bhariharan","id":1820287,"avatar_url":"https://avatars.githubusercontent.com/u/1820287?v=3","gravatar_id":"","url":"https://api.github.com/users/bhariharan","html_url":"https://github.com/bhariharan","followers_url":"https://api.github.com/users/bhariharan/followers","following_url":"https://api.github.com/users/bhariharan/following{/other_user}","gists_url":"https://api.github.com/users/bhariharan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhariharan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhariharan/subscriptions","organizations_url":"https://api.github.com/users/bhariharan/orgs","repos_url":"https://api.github.com/users/bhariharan/repos","events_url":"https://api.github.com/users/bhariharan/events{/privacy}","received_events_url":"https://api.github.com/users/bhariharan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhariharan/SalesforceMobileSDK-Android","description":"Android SDK for Salesforce","fork":true,"url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android","forks_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/forks","keys_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/teams","hooks_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/hooks","issue_events_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/issues/events{/number}","events_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/events","assignees_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/assignees{/user}","branches_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/branches{/branch}","tags_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/tags","blobs_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/languages","stargazers_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/stargazers","contributors_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/contributors","subscribers_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/subscribers","subscription_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/subscription","commits_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/contents/{+path}","compare_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/merges","archive_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/downloads","issues_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/issues{/number}","pulls_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/labels{/name}","releases_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/releases{/id}","deployments_url":"https://api.github.com/repos/bhariharan/SalesforceMobileSDK-Android/deployments","created_at":"2012-07-25T22:05:09Z","updated_at":"2016-02-18T17:12:04Z","pushed_at":"2016-11-07T23:42:26Z","git_url":"git://github.com/bhariharan/SalesforceMobileSDK-Android.git","ssh_url":"git@github.com:bhariharan/SalesforceMobileSDK-Android.git","clone_url":"https://github.com/bhariharan/SalesforceMobileSDK-Android.git","svn_url":"https://github.com/bhariharan/SalesforceMobileSDK-Android","homepage":"","size":95608,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"forcedotcom:unstable","ref":"unstable","sha":"b589804ecbae86621d0b7c385ae1d6c1cc909b40","user":{"login":"forcedotcom","id":464563,"avatar_url":"https://avatars.githubusercontent.com/u/464563?v=3","gravatar_id":"","url":"https://api.github.com/users/forcedotcom","html_url":"https://github.com/forcedotcom","followers_url":"https://api.github.com/users/forcedotcom/followers","following_url":"https://api.github.com/users/forcedotcom/following{/other_user}","gists_url":"https://api.github.com/users/forcedotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/forcedotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcedotcom/subscriptions","organizations_url":"https://api.github.com/users/forcedotcom/orgs","repos_url":"https://api.github.com/users/forcedotcom/repos","events_url":"https://api.github.com/users/forcedotcom/events{/privacy}","received_events_url":"https://api.github.com/users/forcedotcom/received_events","type":"Organization","site_admin":false},"repo":{"id":2782691,"name":"SalesforceMobileSDK-Android","full_name":"forcedotcom/SalesforceMobileSDK-Android","owner":{"login":"forcedotcom","id":464563,"avatar_url":"https://avatars.githubusercontent.com/u/464563?v=3","gravatar_id":"","url":"https://api.github.com/users/forcedotcom","html_url":"https://github.com/forcedotcom","followers_url":"https://api.github.com/users/forcedotcom/followers","following_url":"https://api.github.com/users/forcedotcom/following{/other_user}","gists_url":"https://api.github.com/users/forcedotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/forcedotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcedotcom/subscriptions","organizations_url":"https://api.github.com/users/forcedotcom/orgs","repos_url":"https://api.github.com/users/forcedotcom/repos","events_url":"https://api.github.com/users/forcedotcom/events{/privacy}","received_events_url":"https://api.github.com/users/forcedotcom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android","description":"Android SDK for Salesforce","fork":false,"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android","forks_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/forks","keys_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/teams","hooks_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/hooks","issue_events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/events{/number}","events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/events","assignees_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/assignees{/user}","branches_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/branches{/branch}","tags_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/tags","blobs_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/languages","stargazers_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/stargazers","contributors_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/contributors","subscribers_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/subscribers","subscription_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/subscription","commits_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/contents/{+path}","compare_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/merges","archive_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/downloads","issues_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues{/number}","pulls_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/labels{/name}","releases_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/releases{/id}","deployments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/deployments","created_at":"2011-11-15T19:35:05Z","updated_at":"2016-11-03T07:18:06Z","pushed_at":"2016-11-07T23:43:10Z","git_url":"git://github.com/forcedotcom/SalesforceMobileSDK-Android.git","ssh_url":"git@github.com:forcedotcom/SalesforceMobileSDK-Android.git","clone_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android.git","svn_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android","homepage":"","size":64610,"stargazers_count":198,"watchers_count":198,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":272,"mirror_url":null,"open_issues_count":8,"forks":272,"open_issues":8,"watchers":198,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/1281"},"html":{"href":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/1281"},"issue":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/1281"},"comments":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/1281/comments"},"review_comments":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/1281/comments"},"review_comment":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/1281/commits"},"statuses":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/statuses/fe261e2c7482b840b6192a6f11f342670fdeb3d9"}}}}
{"actor":{"display_login":"bhariharan"}}