From 798e4fe18e1287f30a913c6e2d1fcbef792418e1 Mon Sep 17 00:00:00 2001 From: Marcus Eagan Date: Mon, 11 Nov 2024 12:23:06 -0800 Subject: [PATCH] Directly Inject LDFR Script (#1474) --- web/platform/astro.config.ts | 6 +- web/platform/src/layouts/Layout.astro | 82 ++++++++++++++----- .../src/thirdParty/GoogleTagManager.astro | 3 +- 3 files changed, 64 insertions(+), 27 deletions(-) diff --git a/web/platform/astro.config.ts b/web/platform/astro.config.ts index 1e22d9bd9..255a02a8e 100644 --- a/web/platform/astro.config.ts +++ b/web/platform/astro.config.ts @@ -41,11 +41,7 @@ export default defineConfig({ }), starlight(starlightConfig), sitemap(), - partytown({ - config: { - forward: ["dataLayer.push"], - }, - }), + partytown(), ], markdown: { rehypePlugins: [ diff --git a/web/platform/src/layouts/Layout.astro b/web/platform/src/layouts/Layout.astro index de6e6cbe1..812fc8416 100644 --- a/web/platform/src/layouts/Layout.astro +++ b/web/platform/src/layouts/Layout.astro @@ -3,32 +3,72 @@ import "@styles/global.css"; import "@styles/tailwind.css"; import ViewTransitions from "astro/components/ViewTransitions.astro"; -import { ScrollTracker } from "@qwik/components/scroll" -import { Header } from "@qwik/components/header" -import { Footer } from "@qwik/components/footer" -import GoogleTagManager from "../thirdParty/GoogleTagManager.astro" +import { ScrollTracker } from "@qwik/components/scroll"; +import { Header } from "@qwik/components/header"; +import { Footer } from "@qwik/components/footer"; +import GoogleTagManager from "../thirdParty/GoogleTagManager.astro"; const { title } = Astro.props; const scrolled = false; --- + - - - - - - - - - {title} - - - - -
- -