Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

update index.html and dist file (#4463)

Ryan Weilerb4d9d4d5df27
diff --git a/tasks/util/dist.js b/tasks/util/dist.js
index 96e4d94dc..c4ce8b103 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 id
const googleTagManagerID = GTM_ID || ''
-shell.sed('-i', /@_ID@/g, googleTagManagerID, applyTo)
+shell.sed('-i', /@GTM_ID@/g, googleTagManagerID, applyTo)
const dist = 'dist/worldview.tar.gz'
console.log(`Creating distribution: ${dist}`)
diff --git a/web/index.html b/web/index.html
index d0a713161..36c505af1 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) && '@_ID@') {
+ if (!/localhost/.test(window.location.href) && '@GTM_ID@') {
(function (w, d, s, l, i) {
w[l] = w[l] || []; w[l].push({
- '.start':
+ 'gtm.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/.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
- })(window,document,'script','dataLayer','-WNP7MLF');
+ })(window,document,'script','dataLayer','GTM-WNP7MLF');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}