Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-google-tagmanager

Package Overview
Dependencies
Maintainers
2
Versions
480
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-google-tagmanager - npm Package Compare versions

Comparing version 1.1.0-alpha.93f2e2a2 to 1.1.0-alpha.9da1bca1

4

gatsby-ssr.js

@@ -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.93f2e2a2",
"version": "1.1.0-alpha.9da1bca1",
"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,
},
},
]
];
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc