Skip to content

Commit

Permalink
use hat versions and fix bug where recordAliasInFloodlight would not …
Browse files Browse the repository at this point in the history
…be called
  • Loading branch information
roo2 authored and p-jackson committed Jan 24, 2020
1 parent 2f784b4 commit 2448b0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions client/lib/analytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,9 @@ if ( typeof window !== 'undefined' ) {
const analytics = {
initialize: function( currentUser, superProps ) {
initializeAnalytics( currentUser, superProps );

// neccessary because calypso-analytics/initializeAnalytics no longer calls out to ad-tracking
const user = getCurrentUser();
if ( 'object' === typeof userData && user && getTracksAnonymousUserId() ) {
if ( 'object' === typeof currentUser && user && getTracksAnonymousUserId() ) {
identifyUserDebug( 'recordAliasInFloodlight', user );
recordAliasInFloodlight();
}
Expand Down
8 changes: 4 additions & 4 deletions packages/calypso-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"prepare": "transpile"
},
"dependencies": {
"hash.js": "1.1.7",
"lodash": "4.17.15",
"qs": "6.9.1",
"debug": "4.1.1"
"hash.js": "^1.1.7",
"lodash": "^4.17.15",
"qs": "^6.9.1",
"debug": "^4.1.1"
}
}

0 comments on commit 2448b0e

Please sign in to comment.