@dudadev/tracking
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -14,12 +14,12 @@ const commonProps = require('@dudadev/common-props'); | ||
exports.initHubspotEvents = function () { | ||
// console.log('window._account.accountOwnerEmail', window._account.accountOwnerEmail); | ||
if (window._hsq) { | ||
return Promise.resolve(window._hsq); | ||
} | ||
window._hsq = window._hsq || []; | ||
return exports.loadScript(`https://js.hs-scripts.com/${exports.HS_ID}.js`); | ||
if (window._account.accountOwnerEmail) { | ||
window._hsq = window._hsq || []; | ||
return exports.loadScript(`https://js.hs-scripts.com/${exports.HS_ID}.js`); | ||
} | ||
}; | ||
exports.pushEvent = function (eventName) { | ||
// console.log('pushEvent', eventName); | ||
if (!exports.isHubspotUserIdentified) { | ||
@@ -26,0 +26,0 @@ window._hsq.push([ |
{ | ||
"name": "@dudadev/tracking", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Module for tracking events", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3382