What should I see if I press multiple time "PLAY" in the editor ?

If I press Play then Stop in the editor, Should I see multiple gameStarted ?
Because I only see one.

8640600--1162128--upload_2022-12-6_21-42-20.png

I have only one script in my game that contains this :
https://docs.unity.com/analytics/AnalyticsSDKGuide.html

Hey Fangh,

Thanks for reaching out to the support team! Do you mean if you hit Play, then Stop, then Play again? Technically you should see 2 gameStarted events, but the editor allows for some unnatural testing of applications, so I could see it as being possible to only see one if you QUICKLY hit Play, Stop, Play, though it still should not happen.

Are you using Debug Event Reporting? If so, you should be able to see when events are recorded/uploaded in real-time using these steps:

  • Go to Project Settings > Player Settings > Player.
  • Go to Script Compilation section > Scripting Define Symbols.
  • Add keyword UNITY_ANALYTICS_EVENT_LOGS.
  • Click Apply.

One last question, how long did you wait between recording/uploading the event from the Editor and looking at the dashboard in your screenshot?

Best,
Randy

Hello.
[quote]
you should see 2 gameStarted
[/quote]
That is what I expected too.
[quote]
Are you using Debug Event Reporting?
[/quote]
Nop. Will try. Thank you.

[quote]
how long did you wait between recording/uploading the event from the Editor and looking at the dashboard in your screenshot?
[/quote]
1-2 min. But I look again today (~24h later) and it did update to "2" but I pressed play/pause a lot yersterday

Understood! When testing in the Editor, it's not recommended to keep a close eye on how many times you start and stop the editor vs how many start-up events you have. It's very possible that it becomes out of sync depending on how quickly/unnaturally you do this. The best way to test those (in terms of their frequency per session) would be to build to a device.

Best,
Randy

[quote=“RandolfKlemola”, post:2, topic: 902314]
Hey Fangh,

Thanks for reaching out to the support team! Do you mean if you hit Play, then Stop, then Play again? Technically you should see 2 gameStarted events, but the editor allows for some unnatural testing of applications, so I could see it as being possible to only see one if you QUICKLY hit Play, Stop, Play, though it still should not happen.

Are you using Debug Event Reporting? If so, you should be able to see when events are recorded/uploaded in real-time using these steps:

  • Go to Project Settings > Player Settings > Player.
  • Go to Script Compilation section > Scripting Define Symbols.
  • Add keyword UNITY_ANALYTICS_EVENT_LOGS.
  • Click Apply.

One last question, how long did you wait between recording/uploading the event from the Editor and looking at the dashboard in your screenshot?

Best,
Randy
[/quote]
just one question.

Where is it written in the documentation that “UNITY_ANALYTICS_EVENT_LOGS.” will recording in the editor console ?

Hi @Fangh ,

Sorry I never saw your response. It's in the link that I had sent, highlighted below:

https://docs.unity.com/analytics/en/manual/Debugging#Enable_logging_in_console

8865405--1209939--upload_2023-3-9_16-43-40.png

Best,
Randy