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

28 lines
907 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11905
// Function ID: 11906
2026-07-20 16:05:17 +00:00
// Name: trackNUFStep
2026-07-29 08:29:29 +00:00
// Dependencies: [676, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: trackNUFStep
2026-08-24 06:08:38 +00:00
// Module 11905 (trackNUFStep)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const AnalyticEvents = ME.AnalyticEvents;
2026-07-23 10:11:24 +00:00
let c3 = 0;
2026-08-24 06:08:38 +00:00
let result = set.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) {
const timestamp = Date.now();
2026-07-23 10:11:24 +00:00
const result = (timestamp - timestamp) / 1000;
2026-08-24 06:08:38 +00:00
let obj = expandEventPropertiesDefault;
2026-07-20 16:05:17 +00:00
obj = {};
const merged = Object.assign(arg2);
2026-07-29 08:29:29 +00:00
obj.flow_type = "Mobile NUX Post Reg";
obj.from_step = STEP_GUILD_TEMPLATE;
obj.to_step = STEP_FRIEND_LIST;
obj.seconds_on_from_step = result;
2026-07-20 16:05:17 +00:00
obj.track(AnalyticEvents.NUO_TRANSITION, obj);
};