diff --git a/packages/gatsby-plugin-google-tagmanager/src/__tests__/__snapshots__/gatsby-ssr.js.snap b/packages/gatsby-plugin-google-tagmanager/src/__tests__/__snapshots__/gatsby-ssr.js.snap
index a3ecb72dd539b..3f0e6c3811180 100644
--- a/packages/gatsby-plugin-google-tagmanager/src/__tests__/__snapshots__/gatsby-ssr.js.snap
+++ b/packages/gatsby-plugin-google-tagmanager/src/__tests__/__snapshots__/gatsby-ssr.js.snap
@@ -8,4 +8,4 @@ exports[`gatsby-plugin-google-tagmanager defaultDatalayer should add a static ob
exports[`gatsby-plugin-google-tagmanager should load gtm 1`] = `"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl+'';f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer', 'undefined');"`;
-exports[`gatsby-plugin-google-tagmanager should load gtm 2`] = `""`;
+exports[`gatsby-plugin-google-tagmanager should load gtm 2`] = `""`;
diff --git a/packages/gatsby-plugin-google-tagmanager/src/gatsby-ssr.js b/packages/gatsby-plugin-google-tagmanager/src/gatsby-ssr.js
index aaffb352d2e40..c79e5f11cb38d 100644
--- a/packages/gatsby-plugin-google-tagmanager/src/gatsby-ssr.js
+++ b/packages/gatsby-plugin-google-tagmanager/src/gatsby-ssr.js
@@ -9,7 +9,7 @@ const generateGTM = ({ id, environmentParamStr, dataLayerName }) => stripIndent`
})(window,document,'script','${dataLayerName}', '${id}');`
const generateGTMIframe = ({ id, environmentParamStr }) =>
- oneLine``
+ oneLine``
const generateDefaultDataLayer = (dataLayer, reporter, dataLayerName) => {
let result = `window.${dataLayerName} = window.${dataLayerName} || [];`