A drag and drop solution for reporting client and server errors from scripts in Roblox games.
This package is designed to allow you to easily get analytics on scripts that might throw errors in your published games.
When you run the game, this package will place a few items into your Workspace :
- ErrorReporting - This Folder contains a RemoteEvent called ClientErrorEvent. This is placed here as a known location so that our server and client scripts can both locate it. If there is already something in ReplicatedStorage with this name, it will throw an error and you will have to handle the collision for it to work.
- ErrorObserverClient - This LocalScript will get copied into every player that joins. It will listen for clientside errors, and fire the ClientErrorEvent RemoteEvent to pass this information back to the server.
- Download the /bin/ErrorReporter.rbxm file and drag it into RobloxStudio. It should unpack as a Folder named ErrorReporter.
- Move this Folder into ServerScriptService. While it can work properly if placed directly in the Workspace, Config will contain sensitive information that you likely do not want to be publicly visible to any player that joins.
- Open the ModuleScript named Config and set the appropriate variables. By default, this module will try to report your data to GoogleAnalytics, but you will have to configure it with the appropriate tracking ID.
- Turn off any verbose messages when you are happy that everything is working properly.
- Log into your Google Analytics account at : https://analytics.google.com/
- If you do not have an account, hit Signup
- Configure your account for a Website
- Account Name - Use your business name, or your website name if you have one
- Website Name - Make this the name of your game
- Website URL - A real website is highly recommended, but https://roblox.com is acceptable
- Industry Category - Games
- Scroll down and hit Get Tracking ID
- Accept the Terms and Conditions. **** You are liable for following data storage laws ****
- You are now on the correct page, skip to step 3
- Open the Admin Panel in the lower left corner, click on Property > Property Settings
- Copy the Tracking Id
- Open the Config ModuleScript and update the GOOGLE_ANALYTICS_TRACKING_ID value
**- This feature is currently only available for developers in the beta program. -**
** - If you have not received an invitation, these steps will not work for you. -**
(These instructions can also be found : https://developer.roblox.com/en-us/articles/using-the-analytics-service) Testing PlayFab will be a little more difficult that Google Analytics, as data will only be sent from a live game server.
- Log into your PlayFab dashboard at https://developer.rblx.playfab.com/en-US/sign-up
- Find your game, and copy the string of characters under the name.
- Open the Command Bar in Studio
- Enter the text : game:GetService("AnalyticsService").ApiKey = "<YOUR_COPIED_API_KEY>"
Now, when you publish your game, you should see data starting to flow into your dashboard. Events may take a few minutes to appear.