Skip to content

Configuring Dynamics

Karan Gupta edited this page Apr 14, 2023 · 3 revisions

The Configuration method provides a variety of options that can be accommodated by the system.

configureAnalytics({
    applicationName: 'SampleApplication1',
    captureEvents: [DynamicEvents.MOUNT, DynamicEvents.ERROR],
    apiUrl: 'https://google/com',
    devConsole: true,
    captureAnonymizedId: true
});

Below is a list of all possible parameter which can be configured -

Parameter Value
applicationName Unique app name used while capturing telemetry which is required in case multiple applications are using Dynamics
captureEvents Which events should be captured at component level. e.g. Mounting, Unmounting given in the form of an array
apiUrl Backend URL where telemetry data is to be sent
devConsole Allows telemetry data to be printed in Chrome dev console by attaching a printTelemetry method to the global window obbject
captureAnonymizedId Adds a unique encrypted identifier based on user's machine details to Telemetry objects

Events that are supported by Dynamics -

  1. DynamicEvents.MOUNT
  2. DynamicEvents.UNMOUNT
  3. DynamicEvents.MOUSECLICK
  4. DynamicEvents.MOUSEOVER
  5. DynamicEvents.ERROR
  6. DynamicEvents.REDUX_ACTION

Clone this wiki locally