Skip to content

Commit

Permalink
Add Analytics (#89)
Browse files Browse the repository at this point in the history
Add Google Analytics to docs.
  • Loading branch information
sambukowski authored Oct 31, 2024
1 parent 6121b9d commit 7a7b79d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,23 @@ export default defineConfig({
ignoreDeadLinks: true,
base: base,
head: [
["link", { rel: "icon", href: "/favicon.png" }]],
["link", { rel: "icon", href: "/favicon.png" }],
[
"script",
{
async: "true",
src: 'https://www.googletagmanager.com/gtag/js?id=G-RKYWRJTV6J'
}
],
[
"script",
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-RKYWRJTV6J');`
]
],
themeConfig: {
editLink: {
pattern: "https://github.com/astriaorg/docs/edit/main/docs/:path",
Expand Down

0 comments on commit 7a7b79d

Please sign in to comment.