Hey all! I’m running into some confusion with the new documentation for the new AnalyticsService for funnel analytics (Specifically, trying to set up an onboarding analytics funnel).
The sample code provided seems relatively simple
local AnalyticsService = game:GetService("AnalyticsService")
-- Log the first step of the FTUE
AnalyticsService:LogOnboardingFunnelStepEvent(
player,
1, -- Step number
"Joined Game" -- Step name
)
-- Log the second step of the FTUE
AnalyticsService:LogOnboardingFunnelStepEvent(
player,
2, -- Step number
"Choose Class" -- Step name
)
But it’s clear there is no way it knows when these steps actually occur. Should I be placing these steps inside of functions triggering these events? Or would best practice be to link to the events directly from within central analytics script? Appreciate any input!
For reference, I am trying to do this within the sample “Plant” game for some learning.