From 6f82605588bde06aebfc1b23fc98de4b8ec1fc6f Mon Sep 17 00:00:00 2001 From: "Carlos A. Cabrera" <316104+fnhipster@users.noreply.github.com> Date: Mon, 11 Nov 2024 13:04:41 -0600 Subject: [PATCH] Experimentation Plugin must load before Drop-ins initialization (#193) * experimentation must load before dropins initialization * Update scripts.js --- scripts/scripts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 6dda8ab35a..66a7549974 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -177,6 +177,8 @@ async function loadEager(doc) { await runEager(document, { audiences: AUDIENCES }, pluginContext); } + await initializeDropins(); + window.adobeDataLayer = window.adobeDataLayer || []; let pageType = 'CMS'; @@ -368,7 +370,6 @@ export function getConsent(topic) { } async function loadPage() { - await initializeDropins(); await loadEager(document); await loadLazy(document); loadDelayed();