diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsx index 5875a31d87..da5bb898e2 100644 --- a/frontend/src/AppRoutes/index.tsx +++ b/frontend/src/AppRoutes/index.tsx @@ -110,6 +110,18 @@ function App(): JSX.Element { source: 'signoz-ui', isPaidUser: !!licenses?.trialConvertedToSubscription, }); + + if ( + window.cioanalytics && + typeof window.cioanalytics.identify === 'function' + ) { + window.cioanalytics.reset(); + window.cioanalytics.identify(email, { + name: user.name, + email, + role: user.role, + }); + } } }, [hostname, isFetchingLicenses, licenses, org], diff --git a/frontend/src/index.html.ejs b/frontend/src/index.html.ejs index 1038b3ea42..81b820fdc2 100644 --- a/frontend/src/index.html.ejs +++ b/frontend/src/index.html.ejs @@ -98,10 +98,10 @@ } })(); -