From 09ad9072afd167ce483c8bd86434b4aa1ed4deba Mon Sep 17 00:00:00 2001 From: xjahic Date: Mon, 30 Oct 2023 22:42:41 +0100 Subject: [PATCH] Add GTM scripts to document.tsx --- .env.template | 1 + src/pages/_document.tsx | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.env.template b/.env.template index 34696c0..7932abf 100644 --- a/.env.template +++ b/.env.template @@ -34,3 +34,4 @@ NEXT_PUBLIC_COURSE_PRODUCT_ID_JAVA_KURZ_PRO="prod_OkklGrYeJgDOg4" NEXT_PUBLIC_COURSE_PRODUCT_BUYABLE_UNTIL_JAVA_KURZ="2023-10-21T13:00:00.000Z" NEXT_PUBLIC_STRIPE_PUBLISHABLE_API_KEY= +NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID="GTM-XXX" diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 5b1b112..904de31 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -115,9 +115,28 @@ export default class MyDocument extends Document { return ( +