Skip to content

Commit 1399371

Browse files
committed
docs: add Google Analytics 4 tracking script via head_custom.html
1 parent a10bdb7 commit 1399371

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/_config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ description: Type-safe OpenAPI clients with generics (Spring Boot + OpenAPI Gene
33

44
just_the_docs:
55
custom_css: assets/css/custom.css
6-
ga_measurement_id: G-HMPG85XV29
76

87
remote_theme: just-the-docs/just-the-docs
98

docs/_includes/head_custom.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!-- Google Analytics 4 -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HMPG85XV29"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
gtag('config', 'G-HMPG85XV29');
8+
</script>

0 commit comments

Comments
 (0)