diff --git a/frontend/example.env b/frontend/example.env
index 5e1271b157..79912e0907 100644
--- a/frontend/example.env
+++ b/frontend/example.env
@@ -2,5 +2,6 @@ NODE_ENV="development"
BUNDLE_ANALYSER="true"
FRONTEND_API_ENDPOINT="http://localhost:8080/"
INTERCOM_APP_ID="intercom-app-id"
+APPCUES_APP_ID="appcess-app-id"
CI="1"
\ No newline at end of file
diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsx
index 40ddd6eef7..72750a70b2 100644
--- a/frontend/src/AppRoutes/index.tsx
+++ b/frontend/src/AppRoutes/index.tsx
@@ -103,6 +103,20 @@ function App(): JSX.Element {
if (domain) {
logEvent('Domain Identified', groupTraits, 'group');
}
+ if (window && window.Appcues) {
+ window.Appcues.identify(email, {
+ name: displayName,
+
+ tenant_id: hostNameParts[0],
+ data_region: hostNameParts[1],
+ tenant_url: hostname,
+ company_domain: domain,
+
+ companyName: orgName,
+ email,
+ paidUser: !!trialInfo?.trialConvertedToSubscription,
+ });
+ }
Userpilot.identify(email, {
email,
@@ -137,18 +151,6 @@ function App(): JSX.Element {
source: 'signoz-ui',
isPaidUser: !!trialInfo?.trialConvertedToSubscription,
});
-
- if (
- window.cioanalytics &&
- typeof window.cioanalytics.identify === 'function'
- ) {
- window.cioanalytics.reset();
- window.cioanalytics.identify(email, {
- name: user.displayName,
- email,
- role: user.role,
- });
- }
}
},
[
@@ -320,10 +322,6 @@ function App(): JSX.Element {
} else {
posthog.reset();
Sentry.close();
-
- if (window.cioanalytics && typeof window.cioanalytics.reset === 'function') {
- window.cioanalytics.reset();
- }
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isCloudUser, isEnterpriseSelfHostedUser]);
diff --git a/frontend/src/index.html.ejs b/frontend/src/index.html.ejs
index e0643f936d..1ea5dc5c3b 100644
--- a/frontend/src/index.html.ejs
+++ b/frontend/src/index.html.ejs
@@ -96,79 +96,19 @@
}
})();
+