Custom domains for events

triangle-exclamation

In the case of some hybrid apps (Electron, Cordova, etc) the location.host value used by the Web SDK is not defined. In terms of analytics data and events, the following problem arises:

  • Your organization has a lot of page views with no consent rate.

A custom domain can be set as part of the didomiConfig object to ensure that some domain is associated with API events for those applications.

You can add a customDomain property to the app object in the configuration property:

window.didomiConfig = {
  app: {
    customDomain: 'custom.app.domain'
  }
};
circle-exclamation

This configuration option is also available in the Didomi Consolearrow-up-right as part of the Custom JSON field in the Behavior tab.

Last updated