Skip to content

Commit

Permalink
Merge pull request #3501 from wordpress-mobile/issue/3487-correctly-t…
Browse files Browse the repository at this point in the history
…rack-user-blogs-num

[Analytics] - Tracking the number of blogs
  • Loading branch information
nbradbury committed Dec 10, 2015
2 parents 1e9c220 + d5584c6 commit be29fba
Showing 1 changed file with 10 additions and 8 deletions.
Expand Up @@ -457,6 +457,15 @@ public void refreshMetadata(boolean isUserConnected, boolean isWordPressComUser,
return;
}

try {
JSONObject properties = new JSONObject();
properties.put(JETPACK_USER, isJetpackUser);
properties.put(NUMBER_OF_BLOGS, numBlogs);
mNosaraClient.registerUserProperties(properties);
} catch (JSONException e) {
AppLog.e(AppLog.T.UTILS, e);
}

if (isUserConnected && isWordPressComUser) {
setWordPressComUserName(username);
// Re-unify the user
Expand All @@ -472,14 +481,7 @@ public void refreshMetadata(boolean isUserConnected, boolean isWordPressComUser,
}
}

try {
JSONObject properties = new JSONObject();
properties.put(JETPACK_USER, isJetpackUser);
properties.put(NUMBER_OF_BLOGS, numBlogs);
mNosaraClient.registerUserProperties(properties);
} catch (JSONException e) {
AppLog.e(AppLog.T.UTILS, e);
}

}


Expand Down

0 comments on commit be29fba

Please sign in to comment.