{"ScriptPreparationCode":"/*your preparation JavaScript code goes here\r\nTo execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/\r\nasync function globalMeasureThatScriptPrepareFunction() {\r\n // This function is optional, feel free to remove it.\r\n // await someThing();\r\n}","TestCases":[{"Name":"actual","Code":"try {\r\n\twindow.didomiOnReady = window.didomiOnReady || [];\r\n\twindow.didomiOnReady.push(function () {\r\n var consent_ga4 = Didomi.getUserConsentStatusForVendor(\u0027c:googleana-4TXnJigR\u0027);\r\n\t\twindow.dataLayer.push({\r\n\t\t\tevent : \u0027consent_ready\u0027,\r\n\t\t\tconsent: {\r\n\t\t\t\tstatus: window.dataLayer.dl ? window.dataLayer.dl[\u0027consent.status.cd\u0027] : undefined,\r\n ga: consent_ga4 ? \u00271\u0027 : !consent_ga4 ? \u00270\u0027 : undefined,\r\n\t\t\t\ttime: (performance.now() / 1000).toFixed(1) \u002B \u0027 s\u0027,\r\n\t\t\t\tvendor: {\t\r\n adform: Didomi.getUserConsentStatusForVendor(\u002750\u0027),\r\n echobox: Didomi.getUserConsentStatusForVendor(\u0027c:echobox\u0027),\r\n chartbeat: Didomi.getUserConsentStatusForVendor(\u0027c:chartbeat\u0027),\r\n\t\t\t\t\tclarity: Didomi.getUserConsentStatusForVendor(\u0027c:clarity\u0027),\r\n\t\t\t\t\tfacebook: Didomi.getUserConsentStatusForVendor(\u0027facebook\u0027),\r\n\t\t\t\t\tga: consent_ga4,\r\n\t\t\t\t\tgfk: Didomi.getUserConsentStatusForVendor(\u0027758\u0027),\r\n\t\t\t\t\tgoogle: Didomi.getUserConsentStatusForVendor(\u0027google\u0027),\r\n\t\t\t\t\toutbrain: Didomi.getUserConsentStatusForVendor(\u0027164\u0027)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n} catch(e){}","IsDeferred":false},{"Name":"futuro","Code":"(function() {\r\n window.didomiOnReady = window.didomiOnReady || [];\r\n window.didomiOnReady.push(function() {\r\n try {\r\n // Referencia local a Didomi para evitar b\u00FAsquedas repetidas en el scope global\r\n var didomi = window.Didomi;\r\n var getConsent = didomi.getUserConsentStatusForVendor.bind(didomi);\r\n \r\n // Obtener consentimiento GA4 una sola vez\r\n var consent_ga4 = getConsent(\u0027c:googleana-4TXnJigR\u0027);\r\n\r\n // Push directo al dataLayer con objeto preconfigurado\r\n (window.dataLayer = window.dataLayer || []).push({\r\n event: \u0027consent_ready\u0027,\r\n consent: {\r\n status: window.dataLayer.dl ? window.dataLayer.dl[\u0027consent.status.cd\u0027] : undefined,\r\n ga: consent_ga4 ? \u00271\u0027 : !consent_ga4 ? \u00270\u0027 : undefined,\r\n time: (performance.now() / 1000).toFixed(1) \u002B \u0027 s\u0027,\r\n vendor: {\r\n adform: getConsent(\u002750\u0027),\r\n echobox: getConsent(\u0027c:echobox\u0027),\r\n chartbeat: getConsent(\u0027c:chartbeat\u0027),\r\n clarity: getConsent(\u0027c:clarity\u0027),\r\n facebook: getConsent(\u0027facebook\u0027),\r\n ga: consent_ga4,\r\n gfk: getConsent(\u0027758\u0027),\r\n google: getConsent(\u0027google\u0027),\r\n outbrain: getConsent(\u0027164\u0027)\r\n }\r\n }\r\n });\r\n } catch(e) {}\r\n });\r\n})();","IsDeferred":false}]}