Seems to mean that to access parameter_value in Firebase it has to be registered as a “Parameter”. Each app can register a maximum of 10 parameters per type (int, string etc).
This seems quite limiting, and I wondered if there is another way of tracking only one value? For example “score”.
Practically, how would these be used with Defold? Take kEventPostScore, for instance, would I use firebase.log_table() to log the event, something like this?
local name = "post_score"
local parameters_table = {}
parameters_table. score = 123
parameters_table. level = 1
parameters_table.character = "no_revive"
firebase.analytics.log_table(name, parameters_table)
If so, would log_table() be used even for events with just one parameter, like this?
local name = "level_start"
local parameters_table = { level_name="grasslands" }
firebase.analytics.log_table(name, parameters_table)
I assume I’d use firebase.log() for events without any parameters, like kEventLevelEnd?
If I do get some time I may look at it. Although I may break everything.
Good point. The documentation for the “post_score” event mentions that it takes three parameters: score, level and character. The parameters are defined in parameter_names.h and they should have corresponding constants in the extension. I added the first three to the branch: