From 790fd4611f4356538fa048b67a6a9fa5e63f7e26 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Mon, 31 Oct 2022 11:30:45 -0700 Subject: [PATCH] Improved LR activiation. --- client/src/App/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/App/App.jsx b/client/src/App/App.jsx index 2d183c595..618366db4 100644 --- a/client/src/App/App.jsx +++ b/client/src/App/App.jsx @@ -75,9 +75,9 @@ export function App({ }); useEffect(() => { if (currentUser.authorized && bodyshop) { - console.log("Setting Attribute"); client.setAttribute("imexshopid", bodyshop.imexshopid); - if (client.getTreatmentWithConfig("LogRocket_Tracking")) { + + if (client.getTreatment("LogRocket_Tracking") === "on") { console.log("LR Start"); LogRocket.init("gvfvfw/bodyshopapp"); }