Skip to content

Data Collection Masking

If you need to fully mask a field, it is recommended to use FTMobileConfig.dataModifier for better performance. If you need fine-grained rule-based replacement, use FTMobileConfig.lineDataModifier.

Single Field Modification (dataModifier)

  • Function: Modifies the value of a single field in the data.
  • Parameter format: {key: newValue}
  • Example: {"device_uuid": "xxx"} replaces the value of the device_uuid field in the target data with "xxx".

Single Line Data Modification (lineDataModifier)

  • Function: Modifies the value of a specified field in a certain type of data.
  • Parameter format: {measurement: {key: newValue}}
  • Example: {"view": {"view_url": "xxx"}} replaces the value of the view_url field in all data of the view type with "xxx".

List of measurement data types:

  • RUM data: view, resource, action, long_task, error
  • Log data: log

Configuration Example

let config: FTMobileConfig = {
  datakitUrl: Config.SERVER_URL,
  debug: true,
  dataModifier: { device_uuid: 'xxx' },
  lineDataModifier: {
    resource: { response_header: 'xxx' },
    view: { view_url: 'xxx' },
  },
};

Feedback

Is this page helpful?