It looks like LogOnboardingFunnelStepEvent doesn’t work for me. I have the following onboarding flow:
- Start Tutorial
- Finish Tutorial
- Play first match
- Finish first match
However, for my tutorial, I teleport players to a new place if they don’t have any data (I force them into the tutorial). My Funnel Events analytics page shows 100% completion of the first 2 steps, which I honestly doubt, but it also does not show the name of the steps.
Here is my code:
In Tutorial place:
AnalyticsService:LogOnboardingFunnelStepEvent(
CurrentPlayer,
1, -- Step number
"Started Tutorial" -- Step name
)
-- On completion:
AnalyticsService:LogOnboardingFunnelStepEvent(
CurrentPlayer,
2, -- Step number
"Finished Tutorial" -- Step name
)
CurrentSession.CharacterData:saveData()
game.ReplicatedStorage.Remotes.Teleport:InvokeClient(Plr, 'MainGame')
In main place:
-- On match start:
-- Log event that all the players started a match
for _, player in self:GetPlayers() do
AnalyticsService:LogOnboardingFunnelStepEvent(
player,
3, -- Step number
"Started First Match" -- Step name
)
end
-- On match end:
-- Increment total matches by 1 for all sessions and log some analytics
for _, session in self:GetSessions() do
if session.Player == PlayerLeft then continue end
session.CharacterData:UpdateValue("TotalMatches", function(oldValue)
return oldValue + 1
end)
AnalyticsService:LogOnboardingFunnelStepEvent(
session.Player,
4, -- Step number
"Completed First Match" -- Step name
)
end
I’m not really sure why this isn’t working. If someone could help, please do.