How to script game statistics?

Hello, I was wondering if I could use a bot or other method in order to recieve the statistics for my games. Roblox tracks statistics of your game, and I think it’d be cool to make a script that tries to improve game statistics by changing elements or testing things out by monitoring my game’s statistics.

Here is what I mean by statistics:

However I’m sure the solution is probably tracking my own statistics instead of using roblox’s. But I think that roblox may be more accurate and easier to manage, so I was wondering if it was possible

2 Likes

Hey,

Roblox automatically tracks statistics for their shareholders and press conferences. Anything in the developer portal is already implemented by roblox.

However, if you are interested in creating custom statistics then I would have a lot to say about that. For example, I have written pipelines that have supplied data for all user interactions and actions in game to provide data for the team to allow us to better the game and its experiences. An instance that comes to mind is, I set up an event that connects with an external SQL database that keeps track of where exactly the user has their mouse on the screen. In the example of this, we noticed players kept the mouse in the first quadrant an awful lot, this either meant that there was something in game influencing this, or, we can utilize that to make the game more enjoyable.

Thanks,

1 Like

I do not think it would be very useful to track player’s mouse movements because I believe it has little importance. Something that may be good though is tracking buttons clicked and screens opened such as user tendencies in the shop gui.

Anyways, yes, I’m referring to wanting to use ROBLOX’s statistics for my game specifically, as seen on that page. My original idea was to just use a bot which reads the data and gives it to the script using HTTPS service or something.

And to clarify I’m not referring to the statistics of the entire Roblox but for my game specifically. As for your team, I really recommend checking out Roblox’s analytics because that’s how Roblox markets your game. For example, upon examining their analytics, a critical yet not well known element of Roblox can be known: The first time player’s play your game is the most important.
Roblox has an entire metric specifically for how engaged users are on the first play.

Secondly critical is that they track whether or not the user plays a game the day after they first play. So this means its very important to offer an incentive for them to rejoin your game the next day.

1 Like

Every amount of data a user provides is valuable. Its just up to your data team to determine how to use that information. Roblox tracks every detail of you on their site, including how long it takes you to type in your favorite Roblox game in the search bar. I have had conversations with the Lead UX Researcher at Roblox and have personally worked on very large consumer facing application where we collected everything from the client application. While it may not seem important, it is.

Now as for you pulling the data that Roblox tracks, you may be able to find an endpoint inside of the JavaScript of the side, they pull that data from somewhere. Check your browser network traffic, copy the request and use replicate it using your desired language.

1 Like

I just want to say its an honor to be able to talk to a professional in the field. I hope the advice you can find the advice I gave for Roblox’s statistics helpful for your team, although you may have already known.

As for the mention of tracking the network, I believe I found a javascript of the anayltics, however its not formatted:

image


I added the lines in case there was sensitive data to hopefully try and have some layer of protection

1 Like

Haha, thanks! Its an honor to be informing you with the knowledge I have gained. I will 100% use the information you provided as it provided a different perspective.

Let me take a look really quick.

1 Like

https://apis.roblox.com/developer-analytics-aggregations/v2/get-benchmarks?universeId=5050832140&kpiType=MonthlyActiveUsers&startTime=2024-05-05T00%3A00%3A00.000Z&endTime=2024-06-04T00%3A00%3A00.000Z

https://apis.roblox.com/developer-analytics-aggregations/v2/get-benchmarks?universeId=5050832140&kpiType=TotalHours&startTime=2024-05-05T00%3A00%3A00.000Z&endTime=2024-06-04T00%3A00%3A00.000Z

https://apis.roblox.com/developer-analytics-aggregations/v2/get-benchmarks?universeId=5050832140&kpiType=Visits&startTime=2024-05-05T00%3A00%3A00.000Z&endTime=2024-06-04T00%3A00%3A00.000Z

https://apis.roblox.com/developer-analytics-aggregations/v2/get-benchmarks?universeId=5050832140&kpiType=Visits&startTime=2024-05-05T00%3A00%3A00.000Z&endTime=2024-06-04T00%3A00%3A00.000Z

https://apis.roblox.com/developer-analytics-aggregations/v1/metadata

3 Likes

With these endpoints you can pull all of the data from your game.

1 Like

Thank you! this is really helpful! I will mark your post as the solution.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.