Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

docs: add gtm

Timothy Yineac9b5c8db9b
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index 4f6e9a2a..dd692213 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -4,6 +4,23 @@ import { defineConfig } from 'vitepress'
export default defineConfig({
title: 'ChronoFrame',
description: 'A Self-hosted photo gallery',
+ head: [
+ [
+ 'script',
+ {
+ async: '',
+ src: 'https://www.googletagmanager.com/gtag/js?id=G-RQSZM9PP5F',
+ },
+ ],
+ [
+ 'script',
+ {},
+ `window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+ gtag('config', 'G-RQSZM9PP5F');`,
+ ],
+ ],
lastUpdated: true,
themeConfig: {
// https://vitepress.dev/reference/default-theme-config