Skip to content

Commit c92e4ec

Browse files
committed
add gtm
1 parent 8dc8a79 commit c92e4ec

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

_includes/layout.vto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
<title>{{title}}</title>
88
<meta name="description" content="{{description}}" />
99
<link rel="stylesheet" href="/styles.css">
10+
<!-- Google tag (gtag.js) -->
11+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LR9HTF1W99"></script>
12+
<script>
13+
window.dataLayer = window.dataLayer || [];
14+
function gtag(){dataLayer.push(arguments);}
15+
gtag('js', new Date());
16+
17+
gtag('config', 'G-LR9HTF1W99');
18+
</script>
19+
1020
</head>
1121
<body>
1222
<header class="bg-white">

_includes/taip.vto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
querySelector: 'pre code.language-mermaid',
1717
});
1818
</script>
19+
<!-- Google tag (gtag.js) -->
20+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LR9HTF1W99"></script>
21+
<script>
22+
window.dataLayer = window.dataLayer || [];
23+
function gtag(){dataLayer.push(arguments);}
24+
gtag('js', new Date());
25+
26+
gtag('config', 'G-LR9HTF1W99');
27+
</script>
28+
1929
</head>
2030
<body class="container mx-auto bg-white">
2131
<header class="bg-white">

0 commit comments

Comments
 (0)