File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import type { AuthModule } from "./auth.types";
1313import { generateUuid } from "../utils/common.js" ;
1414
1515export const USER_HEARTBEAT_EVENT_NAME = "__user_heartbeat_event__" ;
16- export const ANALYTICS_INITIALIZTION_EVENT_NAME = "__initialization_event__" ;
16+ export const ANALYTICS_INITIALIZATION_EVENT_NAME = "__initialization_event__" ;
1717export const ANALYTICS_SESSION_DURATION_EVENT_NAME =
1818 "__session_duration_event__" ;
1919export const ANALYTICS_CONFIG_ENABLE_URL_PARAM_KEY = "analytics-enable" ;
@@ -247,11 +247,13 @@ function trackInitializationEvent(track: (params: TrackEventParams) => void) {
247247 if (
248248 typeof window === "undefined" ||
249249 analyticsSharedState . wasInitializationTracked
250- )
250+ ) {
251251 return ;
252+ }
253+
252254 analyticsSharedState . wasInitializationTracked = true ;
253255 track ( {
254- eventName : ANALYTICS_INITIALIZTION_EVENT_NAME ,
256+ eventName : ANALYTICS_INITIALIZATION_EVENT_NAME ,
255257 properties : {
256258 referrer : document ?. referrer ,
257259 } ,
You can’t perform that action at this time.
0 commit comments