I thought it would be helpful to give some quick tips on how to keep test and production data separated using Analytics. Please let me know if you found this helpful, whether you have any questions, or whether you would like to see some more examples like this!
Suggestion 1
I believe the best way to keep your test data separate from your production data and keep the data on the same Dashboard would be to send a Custom Event like Analytics.CustomEvent(“tester”, new Dictionary { {“testUser”, userId } }); anytime a test player opens the game.
This would then allow us the ability to create two Custom Segments, one that only fills with users who send the testUser event and another that only fill with users who do not send the testUser event.
NOTE: it is very important that ‘ALL’ is selected for the ‘Test users’ segment and that ‘NONE’ is selected for the ‘Live Users’ segment.
Then finally on the Data Explorer you would be able to separate any metric or Custom Event based on these segments.
Also, remember that when you are creating builds for your live/production users to remove the ‘testUser’ Custom Event!
Suggestion 2
Another way would be to use two separate Unity Analytics projects for one game, one project id would be used for your test builds and another for your live builds.
PLEASE NOTE: Going about solving this issue this way is only really possible if your game is not using any of the other Unity Services. Changing the project id will disassociate your game from all other services it was previously using!
All of your testing builds would be created while linked to one project id and then once you are ready to create an official release you would unlink the testing project id and re-link to a new or previously unused project id before creating any of the new builds.
You can unlink a project id by clicking on services in the Services window and selecting Settings.
Then click Unlink Project.
Then you would either create a new project id or link an already created production project id.
This will give you two separate Dashboards for your testing and live data however, the biggest downside to this approach is that any funnels, segments, or saved reports that were created will have to be recreated under the new project id and if you are also using any other Unity Services everything related to those services would have to be changed/updated/migrated as well.
I hope this helps!