From 6537fcb84e2a1f21681164fd76847cb2a3770c7a Mon Sep 17 00:00:00 2001 From: Thomas Neil James Shadwell Date: Thu, 7 Sep 2023 13:54:06 -0700 Subject: [PATCH] Back out "Add Google Analytics because why not" GTM is the canonical way of using Google Analytics with Next.js. However, allowlisting GTM would be a total bypass to CSP, as anyone can upload a script to GTM. Original commit changeset: f84f62426ea2 --- ts/next.js/index.tsx | 47 ++++++++++++++++---------------------------- 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/ts/next.js/index.tsx b/ts/next.js/index.tsx index 4685568e6..accc39b40 100644 --- a/ts/next.js/index.tsx +++ b/ts/next.js/index.tsx @@ -1,5 +1,5 @@ import Head from 'next/head'; -import Script from 'next/script'; + export * as config from 'ts/next.js/next.config'; const BASE_CSP_RULES = [ @@ -16,37 +16,24 @@ export function HeaderTags() { : "default-src 'self'", ]; return ( - <> - - - - - - - + + - - + - - + + ); }