From 6d02b3bfa2c6d6e9f08e2ae2bc582c7fd4273ab5 Mon Sep 17 00:00:00 2001 From: Juliana Kang Date: Wed, 20 Nov 2024 13:38:31 -0500 Subject: [PATCH] refactor: Add interval polling for Segment/Cohesion Identify ready (#36) --- public/index.html | 100 +++++++++++++++++++++++++++++----------------- 1 file changed, 63 insertions(+), 37 deletions(-) diff --git a/public/index.html b/public/index.html index e5ef2d4a0..c493ff0c1 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, - }); + - <% } %>