https://create.roblox.com/docs/production/analytics/custom-fields
As a Roblox developer, I would like to see documentation on Custom Fields to mention that, all the values should be string type.
I have been sending custom fields data such as player join data .PlaceId and #Players:GetPlayers() but the custom value received end up being “” without any warning. and turns out they have to be put into string for it to work.
3 Likes
Either that or just cast it to a string on the C++ side first. It’s kinda bizarre to ignore Lua typecasting conventions here.
Always use tostring when working with analytics service, since it uses web requests in the background which always needs strings in its query params.
Unfortunately, there are many cases of this convention not being respected, for example afaik UserService
doesn’t convert any array inputs to numbers and will error out instead.