gatsby-plugin-google-tagmanager
Advanced tools
Comparing version 1.1.0-alpha.76b32701 to 1.1.0-alpha.8c822451
@@ -8,3 +8,3 @@ "use strict"; | ||
var _templateObject = (0, _taggedTemplateLiteralLoose3.default)(["\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer', '", "');"], ["\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer', '", "');"]), | ||
_templateObject2 = (0, _taggedTemplateLiteralLoose3.default)(["\n <iframe\n src=\"https://www.googletagmanager.com/ns.html?id=", "\"\n height=\"0\"\n width=\"0\"\n style=\"display: none; visibility: hidden\"\n />"], ["\n <iframe\n src=\"https://www.googletagmanager.com/ns.html?id=", "\"\n height=\"0\"\n width=\"0\"\n style=\"display: none; visibility: hidden\"\n />"]); | ||
_templateObject2 = (0, _taggedTemplateLiteralLoose3.default)(["\n <iframe\n src=\"https://www.googletagmanager.com/ns.html?id=", "\"\n height=\"0\"\n width=\"0\"\n style=\"display: none; visibility: hidden\"\n ></iframe>"], ["\n <iframe\n src=\"https://www.googletagmanager.com/ns.html?id=", "\"\n height=\"0\"\n width=\"0\"\n style=\"display: none; visibility: hidden\"\n ></iframe>"]); | ||
@@ -23,3 +23,3 @@ var _react = require("react"); | ||
if (process.env.NODE_ENV === "production") { | ||
if (process.env.NODE_ENV === "production" || pluginOptions.includeInDevelopment) { | ||
setHeadComponents([_react2.default.createElement("script", { | ||
@@ -26,0 +26,0 @@ key: "plugin-google-tagmanager", |
{ | ||
"name": "gatsby-plugin-google-tagmanager", | ||
"description": "Gatsby plugin to add google tagmanager onto a site", | ||
"version": "1.1.0-alpha.76b32701", | ||
"version": "1.1.0-alpha.8c822451", | ||
"author": "Thijs Koerselman <thijs@vauxlab.com>", | ||
@@ -6,0 +6,0 @@ "devDependencies": { |
@@ -6,2 +6,3 @@ # gatsby-plugin-google-tagmanager | ||
## Install | ||
`npm install --save gatsby-plugin-google-tagmanager` | ||
@@ -17,6 +18,9 @@ | ||
options: { | ||
id: 'YOUR_GOOGLE_TAGMANAGER_ID', | ||
id: "YOUR_GOOGLE_TAGMANAGER_ID", | ||
// Include GTM in development. | ||
// Defaults to false meaning GTM will only be loaded in production. | ||
includeInDevelopment: false, | ||
}, | ||
}, | ||
] | ||
]; | ||
``` |
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
25
3835
5