From cf078e515fb99f2624adc7824f3056f671dbae6a Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 28 Jul 2025 17:29:57 +0100 Subject: [PATCH] Add linkedin pixel --- .astro/types.d.ts | 1 + src/components/Analytics/LinkedIn.astro | 22 ++++++++++++++++++++++ src/layouts/BaseLayout.astro | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 src/components/Analytics/LinkedIn.astro diff --git a/.astro/types.d.ts b/.astro/types.d.ts index f964fe0cf..03d7cc43f 100644 --- a/.astro/types.d.ts +++ b/.astro/types.d.ts @@ -1 +1,2 @@ /// +/// \ No newline at end of file diff --git a/src/components/Analytics/LinkedIn.astro b/src/components/Analytics/LinkedIn.astro new file mode 100644 index 000000000..a6ed5a82c --- /dev/null +++ b/src/components/Analytics/LinkedIn.astro @@ -0,0 +1,22 @@ +--- +// LinkedIn Analytics component +--- + + + + \ No newline at end of file diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 137526680..6f6a03b53 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -21,6 +21,7 @@ import { siteConfig } from '../lib/config'; import type { ResourceType } from '../lib/resource-progress'; import Bluconic from '../components/Analytics/Bluconic.astro'; import OneTrust from '../components/Analytics/OneTrust.astro'; +import LinkedIn from '../components/Analytics/LinkedIn.astro'; import { cn } from '../lib/classname'; import { GlobalUpgradeModal } from '../components/Billing/GlobalUpgradeModal'; @@ -261,5 +262,7 @@ const gaPageIdentifier = Astro.url.pathname resourceType={resourceType} client:load /> + + {!import.meta.env.DEV && }