send anonymousId as a string not object (#1543)

This commit is contained in:
jasonbryant84
2025-04-01 18:43:36 +01:00
committed by GitHub
parent dfa27e0e25
commit c06b01c167
@@ -32,7 +32,7 @@
if (originPass && cloudUIEvent.data === 'getAnonymousId') {
const anonymousId = analytics.user().anonymousId();
cloudUIEvent.source.postMessage({ anonymousId }, cloudUIEvent.origin);
cloudUIEvent.source.postMessage(anonymousId, cloudUIEvent.origin);
}
});
});