https://metaplay.io logo
Adding custom analytics context to BigQuery event ...
# questions-and-feedback
m
Hi, I'm using a custom analytics context - by default it doesn't look like these custom fields are added by the event formatter. How do I add them? Thanks in advance!
m
Thanks for the question @mattdown_salto_14978 - we will get back to you on this tomorrow!
Just got to check it out with someone from the tech team 😃
j
The BigQuery context support will be in Release 31 which is expected to be released on December 13th. In release 31, the values of the context are added into the event_params with a $c: prefix. As an example, context of:
Copy code
public class MyPlayerAnalyticsContext : PlayerAnalyticsContext
{
    [BigQueryAnalyticsName("context_value")]
    [MetaMember(201)]
    public int ContextValue = 1;
}
would result in
Copy code
{ key: "$c:context_one", int_value: 1 }
key value pair to be added to event_params
m
Ok, thanks for your reply