Remove Cloudflare beacon

This commit is contained in:
Rico Sta. Cruz 2024-03-28 22:01:42 +11:00
parent feb02eb551
commit 49f5585e62
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
2 changed files with 1 additions and 11 deletions

View File

@ -3,8 +3,7 @@ import '../sass/full.scss'
import '@fontsource/cousine/400.css'
import '@fontsource/cousine/700.css'
import GoogleAnalytics from '~/analytics/GoogleAnalytics.astro'
import CloudflareAnalytics from '~/analytics/CloudflareAnalytics.astro'
import { cloudflareAnalytics, googleAnalytics } from '~/config'
import { googleAnalytics } from '~/config'
export type Props = {
title?: string
@ -29,11 +28,6 @@ const analyticsEnabled = import.meta.env.PROD || true
<GoogleAnalytics measurementId={googleAnalytics.measurementId} />
) : null
}
{
analyticsEnabled && cloudflareAnalytics.token ? (
<CloudflareAnalytics token={cloudflareAnalytics.token} />
) : null
}
<slot name="head" />
</head>
<body class={props.bodyClass ?? ''}>

View File

@ -12,10 +12,6 @@ export const disqus = {
host: 'devhints.disqus.com'
} as const
export const cloudflareAnalytics = {
token: '93ebff376c05423d8e6c1dfbe406a172'
} as const
export const googleAnalytics = {
measurementId: 'G-N7TC6B227L'
} as const