Skip to content

Commit

Permalink
Remove Google Analytics from the Pinot Website - fixes #14840
Browse files Browse the repository at this point in the history
  • Loading branch information
Niall Pemberton committed Jan 18, 2025
1 parent 95b35d7 commit 23efda9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<head>
<meta
httpEquiv="Content-Security-Policy"
content="default-src 'self';script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app analytics.umami.is www.youtube.com www.googletagmanager.com www.google-analytics.com;style-src 'self' 'unsafe-inline';img-src * blob: data:;media-src *.s3.amazonaws.com;connect-src *;font-src 'self';frame-src www.youtube.com youtube.com giscus.app youtu.be https://www.youtube.com https://youtube.com;"
content="default-src 'self';script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app analytics.umami.is www.youtube.com;style-src 'self' 'unsafe-inline';img-src * blob: data:;media-src *.s3.amazonaws.com;connect-src *;font-src 'self';frame-src www.youtube.com youtube.com giscus.app youtu.be https://www.youtube.com https://youtube.com;"
/>
<link
rel="apple-touch-icon"
Expand Down
4 changes: 2 additions & 2 deletions data/siteMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ const siteMetadata = {
// posthogAnalytics: {
// posthogProjectApiKey: '' // e.g. 123e4567-e89b-12d3-a456-426614174000
// },
googleAnalytics: {
// googleAnalytics: {
// googleAnalyticsId: process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS // e.g. G-XXXXXXX
googleAnalyticsId: 'G-ZXG79NJEBY'
// googleAnalyticsId: 'G-ZXG79NJEBY'
}
},
newsletter: {
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
// You might need to insert additional domains in script-src if you are using external services
const ContentSecurityPolicy = `
default-src 'self';
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app analytics.umami.is www.youtube.com www.googletagmanager.com www.google-analytics.com;
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app analytics.umami.is www.youtube.com;
style-src 'self' 'unsafe-inline';
img-src * blob: data:;
media-src *.s3.amazonaws.com;
Expand Down

0 comments on commit 23efda9

Please sign in to comment.