From b15a43e55fca252daf05fd54eee97f2d8d25229c Mon Sep 17 00:00:00 2001 From: julianajlk Date: Wed, 20 Nov 2024 10:36:34 -0500 Subject: [PATCH] refactor: Add timeout and polling to call Segment/Cohesion Identify ready --- public/index.html | 100 +++++++++++++++++++++++++++++----------------- 1 file changed, 63 insertions(+), 37 deletions(-) diff --git a/public/index.html b/public/index.html index e5ef2d4a0..17492936e 100755 --- a/public/index.html +++ b/public/index.html @@ -42,49 +42,75 @@ multiparty: true, } }) + + <% } %> - try { - if (window.cohesion) { - window.cohesion("tagular:ready", function () { - window.analytics.ready(function () { - const cohesionAnonymId = window.tagular("getAliasSet")["anonymousId"]; - const segmentAnonymId = window.analytics.user().anonymousId(); - const segmentUserId = window.analytics.user().id(); - - // Segment Identify - window.analytics.identify(segmentUserId, { - cohesion_anonymous_id: cohesionAnonymId, - }); + - <% } %>