From 192bf3f9425f7104f332763a63b2913756c7719b Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Thu, 16 Jan 2025 08:36:45 +0000 Subject: [PATCH] Update bootCmp.ts --- dotcom-rendering/src/client/bootCmp.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotcom-rendering/src/client/bootCmp.ts b/dotcom-rendering/src/client/bootCmp.ts index a6310d9319e..4f502e497e6 100644 --- a/dotcom-rendering/src/client/bootCmp.ts +++ b/dotcom-rendering/src/client/bootCmp.ts @@ -61,6 +61,7 @@ const initialiseCmp = async () => { const { pageViewId } = window.guardian.config.ophan; const country = code ?? undefined; + const subscriber = window.location.search.includes('subscriber'); cmp.init({ pubData: { platform: 'next-gen', @@ -69,6 +70,7 @@ const initialiseCmp = async () => { pageViewId, }, country, + subscriber, }); log('dotcom', 'CMP initialised'); };