Mon Apr 26 2021
How can values of customData and other metadata fields be changed?
There are two methods to either permanently or temporary change the values of customData or other metadata fields (e.g.
This methods allows you to change the value of a
customData field during a session. The method can be called multiple times during a session.
There are two different cases to consider here:
If the current state is
played, an additional sample will be sent when using this method. This sample will contain the old values for the changed
customData fields. Additionally, the sample will contain all measurements up until that point and will display the state when the method was triggered (
played). After that sample, the collector will continue with collecting data as new samples, however all following samples will contain the new values for the changed
If current state is something other than
played no samples will be sent. The collector will just change the
customData values internally and all samples from this point on will contain the new
This method allows you to change the value of a
customData field temporarily for one sample.
When this method is called, an additional sample will be sent. That sample will trigger the state = customdatachanged and write new values for the selected
customData fields. All other duration measurements will be set to 0 (e.g.