react-gtm-ts
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -44,7 +44,3 @@ "use strict"; | ||
var _a; | ||
if (typeof window === "undefined") | ||
return; | ||
if (typeof ((_a = window == null ? void 0 : window.dataLayer) == null ? void 0 : _a.push) === "undefined") { | ||
console.log("react-gtm-ts"); | ||
} else { | ||
if (typeof ((_a = window == null ? void 0 : window.dataLayer) == null ? void 0 : _a.push) !== "undefined") { | ||
window.dataLayer.push({ | ||
@@ -54,2 +50,6 @@ event, | ||
}); | ||
} else { | ||
console.error( | ||
"\u{1F6D1} react-gtm-ts - Add ReactTagManager.init passing GTM code in app or _app (nextjs), see more in the documentation https://github.com/jr-duarte/react-gtm-ts" | ||
); | ||
} | ||
@@ -56,0 +56,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "This is a library to facilitate the implementation of Google Tag Manager.", | ||
@@ -8,0 +8,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
6821