Add back Google Analytics (#51)
Some checks failed
Deploy site / build (push) Has been cancelled
Deploy site / deploy (push) Has been cancelled

* config: add Google Analytics

* package-lock: regenerate
This commit is contained in:
lifehackerhansol 2024-09-29 21:29:41 -07:00 committed by GitHub
parent 975e819513
commit d652bd9df9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 434 additions and 252 deletions

View File

@ -11,7 +11,10 @@ import * as i18n from './i18n'
export default defineConfig({
title: "Hacks Guide",
description: "Hacks Guide Listings",
head: [['link', { rel: 'icon', href: '/images/favicon.ico' }]],
head: [['link', { rel: 'icon', href: '/images/favicon.ico' }],
['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-0R9QL9R7B8' }],
['script', {}, `window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-0R9QL9R7B8');`]
],
locales: {
root: i18n.en_US
},

681
package-lock.json generated

File diff suppressed because it is too large Load Diff