Skip to content

Commit

Permalink
Remove Cloudflare beacon
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Mar 28, 2024
1 parent feb02eb commit 49f5585
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
8 changes: 1 addition & 7 deletions src/components/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ?? ''}>
Expand Down
4 changes: 0 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49f5585

Please sign in to comment.