decord/source/modules/nuf/native/NewUserAnalyticsUtils.tsx

27 lines
932 B
TypeScript
Raw Normal View History

// Module ID: 12812
// Function ID: 12813
// Name: NewUserAnalyticsUtils
// Dependencies: [1074, 1242, 2]
2026-07-20 16:05:17 +00:00
// Exports: trackNUFStep
// Module 12812 (NewUserAnalyticsUtils)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
let timestamp = 0;
let result = size.fileFinishedImporting("modules/nuf/native/NewUserAnalyticsUtils.tsx");
2026-07-20 16:05:17 +00:00
export const trackNUFStep = function trackNUFStep(STEP_GUILD_TEMPLATE, STEP_FRIEND_LIST, arg2) {
timestamp = Date.now();
2026-07-23 10:11:24 +00:00
const result = (timestamp - timestamp) / 1000;
const obj2 = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(arg2);
obj2.flow_type = "Mobile NUX Post Reg";
obj2.from_step = STEP_GUILD_TEMPLATE;
obj2.to_step = STEP_FRIEND_LIST;
obj2.seconds_on_from_step = result;
AnalyticsUtilsDefault.track(AnalyticEvents.NUO_TRANSITION, obj2);
2026-07-20 16:05:17 +00:00
};