@@ -53,7 +53,7 @@ import { SystemWarning } from "./components/SystemWarning";
5353import { getBrandingConfig } from "./redux/selectors/configSelectors" ;
5454import { buildMaterialPreviewURL } from "./util/materialUtils" ;
5555import GlobalInstances from 'components/GlobalInstances' ;
56- import posthog from 'posthog-js'
56+ // import posthog from 'posthog-js'
5757import { fetchHomeData } from "./redux/reduxActions/applicationActions" ;
5858
5959const LazyUserAuthComp = React . lazy ( ( ) => import ( "pages/userAuth" ) ) ;
@@ -122,9 +122,9 @@ class AppIndex extends React.Component<AppIndexProps, any> {
122122 const isLowCoderDomain = window . location . hostname === 'app.lowcoder.cloud' ;
123123 const isLocalhost = window . location . hostname === 'localhost' ;
124124
125- if ( isLocalhost || isLowCoderDomain ) {
125+ /* if (isLocalhost || isLowCoderDomain) {
126126 posthog.init('phc_lD36OXeppUehLgI33YFhioTpXqThZ5QqR8IWeKvXP7f', { api_host: 'https://eu.i.posthog.com', person_profiles: 'always' });
127- }
127+ } */
128128
129129 // make sure all users in this app have checked login info
130130 if ( ! this . props . isFetchUserFinished || ( this . props . currentUserId && ! this . props . fetchHomeDataFinished ) ) {
@@ -135,7 +135,7 @@ class AppIndex extends React.Component<AppIndexProps, any> {
135135 // if the user just logged in, we send the event to posthog
136136 if ( isLocalhost || isLowCoderDomain ) {
137137 if ( sessionStorage . getItem ( '_just_logged_in_' ) ) {
138- posthog . identify ( this . props . currentUserId ) ;
138+ // posthog.identify(this.props.currentUserId);
139139 sessionStorage . removeItem ( '_just_logged_in_' ) ;
140140 }
141141 }
0 commit comments