Skip to content

Commit 6e313d7

Browse files
committed
add heap and gtm
1 parent 9231491 commit 6e313d7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ OTPFILENAME="./web-assets/js/otp.js"
2020
perl -pi -e "s/\{\{DOMAIN\}\}/$DOMAIN/g" $OTPFILENAME
2121
perl -pi -e "s/\{\{AUTH0DOMAIN\}\}/$AUTH0DOMAIN/g" $OTPFILENAME
2222

23+
OTPPAGEFILE="./web-assets/static-pages/otp.html"
24+
perl -pi -e "s/\{\{GTM\}\}/$GTM/g" $OTPPAGEFILE
25+
2326
DICECALLBACK="./web-assets/static-pages/dice-verify-callback.html"
2427
perl -pi -e "s/\{\{DOMAIN\}\}/$DOMAIN/g" $DICECALLBACK
2528
perl -pi -e "s/\{\{DICE_AUTH\}\}/$DICE_AUTH/g" $DICECALLBACK

web-assets/static-pages/otp.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,21 @@
1313
<link rel="stylesheet" href="./otp.css" />
1414
<script src="https://tc-public-static-files.topcoder.com/topcoder-auth/js/jquery-3.5.1.min.js"></script>
1515
<script type="text/javascript" src="otp.js"></script>
16+
<!-- Google Tag Manager -->
17+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
18+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
19+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
20+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
21+
})(window,document,'script','dataLayer','{{GTM}}');</script>
22+
<!-- End Google Tag Manager -->
23+
<script type="text/javascript" async="" src="https://cdn.heapanalytics.com/js/heap-4240734066.js"></script>
1624
</head>
1725

1826
<body>
27+
<!-- Google Tag Manager (noscript) -->
28+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{GTM}}"
29+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
30+
<!-- End Google Tag Manager (noscript) -->
1931
<div class="page-wrapper">
2032
<div class="row">
2133
<div class="left-column">

0 commit comments

Comments
 (0)