Skip to content

Commit e361ad0

Browse files
Merge pull request #9 from pascalgrimaud/google-analytics
Add google analytics
2 parents cac42ee + 5210bb3 commit e361ad0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.vitepress/config.mts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,14 @@ export default defineConfig({
4141
},
4242
ignoreDeadLinks: [
4343
/^http:\/\/localhost/
44-
]
44+
],
45+
head: [
46+
['script', { src: 'https://www.googletagmanager.com/gtag/js?id=G-DR0S8XWFFC', async: '' }],
47+
['script', {}, `
48+
window.dataLayer = window.dataLayer || [];
49+
function gtag(){dataLayer.push(arguments);}
50+
gtag('js', new Date());
51+
gtag('config', 'G-DR0S8XWFFC');
52+
`],
53+
],
4554
});

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ hero:
2121

2222
features:
2323
- icon: 🧩
24-
title: Modular Code Generation
24+
title: Modular Code Generator
2525
details: Generate only what you need, when you need, nothing more.
2626
- icon: 🛡️
2727
title: Clean & Hexagonal Architecture

0 commit comments

Comments
 (0)