Skip to content

Commit ecf79a7

Browse files
committed
feat: add Google Analytics tracking (G-FYMRJ2GG39)
1 parent fd13e87 commit ecf79a7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.vitepress/config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ export default defineConfig({
44
title: 'Crawlee Cloud',
55
description: 'Open-source self-hosted platform for Crawlee scrapers',
66
cleanUrls: true,
7+
head: [
8+
[
9+
'script',
10+
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-FYMRJ2GG39' },
11+
],
12+
[
13+
'script',
14+
{},
15+
`window.dataLayer = window.dataLayer || [];
16+
function gtag(){dataLayer.push(arguments);}
17+
gtag('js', new Date());
18+
gtag('config', 'G-FYMRJ2GG39');`,
19+
],
20+
],
721
srcDir: 'src',
822
outDir: './dist',
923
themeConfig: {

0 commit comments

Comments
 (0)