From 5ed00eaffea1ba06dd61be9e850c2ff5024d1899 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Tue, 11 Feb 2025 20:26:44 -0800 Subject: [PATCH] IO-3131 Crisp Segment for Basic Signed-off-by: Allan Carr --- client/src/redux/user/user.sagas.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/redux/user/user.sagas.js b/client/src/redux/user/user.sagas.js index e5db60fb8..5e5259874 100644 --- a/client/src/redux/user/user.sagas.js +++ b/client/src/redux/user/user.sagas.js @@ -347,6 +347,9 @@ export function* SetAuthLevelFromShopDetails({ payload }) { window.$zoho.salesiq.visitor.info({ "Shop Name": payload.shopname }); } }); + payload.features?.allAccess === true + ? window.$crisp.push(["set", "session:segments", [["allAccess"]]]) + : window.$crisp.push(["set", "session:segments", [["basic"]]]); } catch (error) { console.error("Couldnt find $crisp."); }