Skip to content

Commit

Permalink
TRI-30257 Switch to host checking for analytics (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-puzon-tri authored Nov 14, 2023
1 parent 7e27909 commit c1b5a14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
window.dataLayer = window.dataLayer || [];
</script>
<script>
const mode = "%MODE%";
if (mode === 'production') {
if (location.host === 'www.oxi.matr.io') {
(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-NWDNDCTW');
}
}
</script>
<!-- End Google Tag Manager -->
</head>
Expand Down

0 comments on commit c1b5a14

Please sign in to comment.