Skip to content

Commit

Permalink
fix: update gtag script
Browse files Browse the repository at this point in the history
  • Loading branch information
L03TJ3 committed Dec 5, 2023
1 parent f290bab commit df0e6f6
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
var exports = {}
</script>
<!-- Google Tag Manager -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-94ZZEM10YJ"></script>
<script>
;(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', 'GTM-PZJ7X57')
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())

gtag('config', 'G-94ZZEM10YJ')

This comment has been minimized.

Copy link
@sirpy

sirpy Dec 5, 2023

Contributor

why is this hardcoded?
is this the production wallet identifier?

This comment has been minimized.

Copy link
@sirpy

sirpy Dec 5, 2023

Contributor

you should be able to use %REACT_APP_% env vars. see line 19 for %PUBLIC_URL%

This comment has been minimized.

Copy link
@L03TJ3

L03TJ3 Dec 5, 2023

Author Collaborator

basically just because it was hardcoded before, but ye using the env var method might make more sense

</script>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
Expand Down

0 comments on commit df0e6f6

Please sign in to comment.