Skip to content

Commit dfe01ef

Browse files
committed
chore: update gtag
1 parent 20bc920 commit dfe01ef

1 file changed

Lines changed: 15 additions & 25 deletions

File tree

demos/html-demo/index.html

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@
5858
<meta content="utf-8" http-equiv="encoding" />
5959
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
6060

61+
<!-- Google tag (gtag.js) -->
62+
<script
63+
async
64+
src="https://www.googletagmanager.com/gtag/js?id=G-F2ZTFWQ8CL"
65+
></script>
66+
<script>
67+
window.dataLayer = window.dataLayer || [];
68+
function gtag() {
69+
dataLayer.push(arguments);
70+
}
71+
gtag('js', new Date());
72+
73+
gtag('config', 'G-F2ZTFWQ8CL');
74+
</script>
75+
6176
<link
6277
rel="stylesheet"
6378
href="https://cdnjs.cloudflare.com/ajax/libs/bulma/1.0.3/css/bulma.min.css"
@@ -501,30 +516,5 @@ <h2>Features</h2>
501516
</p>
502517
</footer>
503518
<script src="build/demo.js" type="module"></script>
504-
505-
<script>
506-
(function (i, s, o, g, r, a, m) {
507-
i['GoogleAnalyticsObject'] = r;
508-
(i[r] =
509-
i[r] ||
510-
function () {
511-
(i[r].q = i[r].q || []).push(arguments);
512-
}),
513-
(i[r].l = 1 * new Date());
514-
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
515-
a.async = 1;
516-
a.src = g;
517-
m.parentNode.insertBefore(a, m);
518-
})(
519-
window,
520-
document,
521-
'script',
522-
'//www.google-analytics.com/analytics.js',
523-
'ga',
524-
);
525-
526-
ga('create', 'UA-75839528-1', 'auto');
527-
ga('send', 'pageview');
528-
</script>
529519
</body>
530520
</html>

0 commit comments

Comments
 (0)