mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 09:58:30 +02:00
adding firstVisitAttribution to postMessage playlooad for product site (#1730)
This commit is contained in:
@@ -28,7 +28,8 @@
|
||||
analytics.ready(() => {
|
||||
if (event.data === 'getAnonymousId') {
|
||||
const anonymousId = analytics.user().anonymousId();
|
||||
event.source.postMessage(anonymousId, event.origin);
|
||||
const { firstVisitAttribution } = analytics.user().traits();
|
||||
event.source.postMessage({ anonymousId, firstVisitAttribution }, event.origin);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user