Skip to content

Commit

Permalink
Merge pull request #721 from Automattic/update/track-client-logged-out
Browse files Browse the repository at this point in the history
Stats: track superProps when logged out
  • Loading branch information
johngodley committed Dec 1, 2015
2 parents 22b6996 + cf57313 commit aa6e692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/analytics/super-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
siteProps = {},
defaultProps = {
environment: config( 'env' ),
site_count: sites.data.length,
site_count: sites.data ? sites.data.length : 0,
site_id_label: 'wpcom',
client: config( 'tracks_client_prop' )
};
Expand Down
2 changes: 2 additions & 0 deletions client/boot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ function boot() {
translatorInvitation: translatorInvitation
} ), document.getElementById( 'wpcom' ) );
} else {
analytics.setSuperProps( superProps );

if ( config.isEnabled( 'oauth' ) ) {
LoggedOutLayout = require( 'layout/logged-out-oauth' );
} else {
Expand Down

0 comments on commit aa6e692

Please sign in to comment.