diff --git a/frontend/src/hooks/useSessionValid.js b/frontend/src/hooks/useSessionValid.js index c77310a9e..4d26b422f 100644 --- a/frontend/src/hooks/useSessionValid.js +++ b/frontend/src/hooks/useSessionValid.js @@ -19,15 +19,6 @@ try { // Plugin not available } -// Import useGoogleTagManager hook -let hsSignupEvent; -try { - hsSignupEvent = - require("../plugins/hooks/useGoogleTagManager.js").useGoogleTagManager(); -} catch { - // Ignore if hook not available -} - let selectedProduct; let selectedProductStore; let PRODUCT_NAMES = {}; @@ -120,11 +111,6 @@ function useSessionValid() { } }); - const isNewOrg = setOrgRes?.data?.is_new_org || false; - if (isNewOrg && hsSignupEvent) { - hsSignupEvent(); - } - userAndOrgDetails = setOrgRes?.data?.user; userAndOrgDetails["orgName"] = setOrgRes?.data?.organization?.name; userAndOrgDetails["orgId"] = orgId;