auth0-metrics-tag-manager
Advanced tools
Comparing version 2.0.0-beta1 to 2.0.0-beta2
{ | ||
"name": "auth0-metrics-tag-manager", | ||
"version": "2.0.0-beta1", | ||
"version": "2.0.0-beta2", | ||
"description": "A simple tag manager for auth0-metrics", | ||
@@ -5,0 +5,0 @@ "main": "build/auth0-metrics-tag-manager.js", |
@@ -23,3 +23,3 @@ import loadScript from './script-loader.js'; | ||
deferred.run(() => { | ||
return typeof FB === 'object' && window.fbAsyncInit.hasRun; | ||
return (typeof FB === 'object' && window.fbAsyncInit.hasRun); | ||
}); | ||
@@ -32,3 +32,2 @@ | ||
function handleEvent({ type, id, properties, userId }) { | ||
const location = window.location || {}; | ||
if (type === 'page') { | ||
@@ -43,3 +42,3 @@ return deferred.push(() => { FB.AppEvents.logPageView(); }); | ||
if (type === 'setUserId') { | ||
return deferred.push(() => { console.log(id); FB.AppEvents.setUserID(userId); }); | ||
return deferred.push(() => { FB.AppEvents.setUserID(userId); }); | ||
} | ||
@@ -46,0 +45,0 @@ |
20690
414