Skip to content
/ Folo Public
forked from RSSNext/Folo

Commit 8878e1b

Browse files
Inneilawvs
authored andcommitted
feat(ssr): add Google Analytics tracking to index.html
- Integrated Google Tag Manager for enhanced tracking and analytics capabilities. - Added asynchronous loading of gtag.js and configuration for tracking ID G-DZMBZBW3EC. Signed-off-by: Innei <tukon479@gmail.com>
1 parent a4c0c2f commit 8878e1b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

apps/ssr/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,17 @@
1919

2020
<meta name="apple-itunes-app" content="app-id=6739802604" />
2121
<link rel="manifest" href="/manifest.json" />
22+
<!-- Google tag (gtag.js) -->
23+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DZMBZBW3EC"></script>
24+
<script>
25+
window.dataLayer = window.dataLayer || []
26+
function gtag() {
27+
dataLayer.push(arguments)
28+
}
29+
gtag("js", new Date())
2230

31+
gtag("config", "G-DZMBZBW3EC")
32+
</script>
2333
<script>
2434
function setTheme() {
2535
let e = "follow:color-mode",

0 commit comments

Comments
 (0)