Skip to content

Commit

Permalink
fix: gtag manager
Browse files Browse the repository at this point in the history
  • Loading branch information
felixindrawan committed Sep 27, 2024
1 parent e869b0d commit 449b1ac
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google Tag Manager -->
<script>
if (!navigator.webdriver) {
setTimeout(() => {
(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 = "//www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-538F83");
}, 0);
}
</script>
<!-- End Google Tag Manager -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dynamsoft MRZ Scanner</title>
Expand Down Expand Up @@ -395,22 +413,6 @@
style="display: none; visibility: hidden"
></iframe>
</noscript>
<script>
if (!navigator.webdriver) {
setTimeout(() => {
(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 = "//www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-538F83");
}, 0);
}
</script>
<!-- End Google Tag Manager -->
</body>
</html>

0 comments on commit 449b1ac

Please sign in to comment.