mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-23 14:33:36 +08:00
feat: integrate Google Analytics (G-D42DM82263)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e9b72e0980
commit
adde39fcbb
@ -115,9 +115,8 @@ export default defineConfig({
|
|||||||
base: '/',
|
base: '/',
|
||||||
|
|
||||||
head: [
|
head: [
|
||||||
// Google Analytics - 获取 GA ID 后取消注释
|
['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-D42DM82263' }],
|
||||||
// ['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX' }],
|
['script', {}, `window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-D42DM82263');`],
|
||||||
// ['script', {}, `window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-XXXXXXXXXX');`],
|
|
||||||
],
|
],
|
||||||
|
|
||||||
locales: {
|
locales: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user