Interactive interface for browsing global, full-resolution satellite imagery
update gtm tag in iframe of index.html (#4462)
Ryan Weiler2bc41bc772af
diff --git a/tasks/util/dist.js b/tasks/util/dist.jsindex c4ce8b103..96e4d94dc 100755--- a/tasks/util/dist.js+++ b/tasks/util/dist.js@@ -54,7 +54,7 @@ shell.sed('-i', /@BUILD_VERSION@/g, pkg.version, applyTo)// replace google tag manager idconst googleTagManagerID = GTM_ID || ''-shell.sed('-i', /@GTM_ID@/g, googleTagManagerID, applyTo)+shell.sed('-i', /@_ID@/g, googleTagManagerID, applyTo)const dist = 'dist/worldview.tar.gz'console.log(`Creating distribution: ${dist}`)diff --git a/web/index.html b/web/index.htmlindex aeff83447..d0a713161 100644--- a/web/index.html+++ b/web/index.html@@ -12,15 +12,15 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (https://opensource.g<head><!-- Google Tag Manager --><script async>- if (!/localhost/.test(window.location.href) && '@GTM_ID@') {+ if (!/localhost/.test(window.location.href) && '@_ID@') {(function (w, d, s, l, i) {w[l] = w[l] || []; w[l].push({- 'gtm.start':- new Date().getTime(), event: 'gtm.js'+ '.start':+ new Date().getTime(), event: '.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','GTM-WNP7MLF');+ 'https://www.googletagmanager.com/.js?id=' + i + dl; f.parentNode.insertBefore(j, f);+ })(window,document,'script','dataLayer','-WNP7MLF');window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}@@ -75,7 +75,7 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (https://opensource.g<body><!-- Google Tag Manager (noscript) -->- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=@GTM_ID@" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WNP7MLF" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- End Google Tag Manager (noscript) --><div data-role="page" id="app"></div></body>