diff --git a/dotcom-rendering/src/client/bootCmp.ts b/dotcom-rendering/src/client/bootCmp.ts index 5bdc46ba88d..62410b5a985 100644 --- a/dotcom-rendering/src/client/bootCmp.ts +++ b/dotcom-rendering/src/client/bootCmp.ts @@ -58,8 +58,9 @@ export const bootCmp = async ( ): Promise => { if (!window.guardian.config.switches.consentManagement) return; // CMP turned off! + // Initalise CMP before attempting to submit consent to Ophan, otherwise the consent state may be empty on first load. + await initialiseCmp(); await Promise.all([ - initialiseCmp(), eagerlyImportPrivacySettingsLinkIsland(), submitConsentToOphan(renderingTarget), ]);