From ceb489753bf3f1932c3e4e98fc88dd759f848999 Mon Sep 17 00:00:00 2001 From: ayesha waris <73840786+ayesha-waris@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:11:11 +0500 Subject: [PATCH] feat: added update cohesion script (#1335) --- src/cohesion/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cohesion/index.js b/src/cohesion/index.js index 6acfa77e..68b02bb9 100644 --- a/src/cohesion/index.js +++ b/src/cohesion/index.js @@ -15,14 +15,19 @@ const CohesionScript = () => { co.setTimeout(b, 3e3); co._Preamp.docReady = co._Fuse.docReady = !0 }); var z = h.createElement('script'); - z.async = 1; z.src = 'https://cdn.cohesionapps.com/cohesion/cohesion-latest.min.js'; + z.async = 1; z.src = 'https://beam.edx.org/cohesion/cohesion-latest.min.js'; z.onerror = function () { var ce = 'error',f = 'function'; for (var o of co[e].q || []) o[0] === ce && typeof o[1] == f && o[1](); co[e] = function (n, cb) { n === ce && typeof cb == f && cb() }; b() }; h.head.appendChild(z); } (window, document, 'cohesion', 'preamp', 'fuse', 'tagular', { tagular: { + apiHost: 'https://beam.edx.org/v2/t', writeKey: "${process.env.COHESION_WRITE_KEY}", sourceKey: "${process.env.COHESION_SOURCE_KEY}", + cookieDomain: 'edx.org', + domainWhitelist: ["edx.org"], + apiVersion: 'v2/t', + multiparty: true, taggy: { enabled: true }