Ignore Application Attributes during Mutations

Prev Next

Whatfix uses Mutation Observer to monitor changes in your application's DOM (Document Object Model). These changes can include updates to the attributes of HTML elements such as class, id, or style.
For more information on how Whatfix uses MutationObserver API, see Configure Mutation Observer..

However, not all attribute changes are relevant. By enabling Mutation Exclude Attribute Names, you create a list of attributes that Whatfix ignores. Even if these attributes change, Whatfix does not treat them as mutations and does not react to them.

By ignoring irrelevant changes, Whatfix focuses only on mutations that impact application functionality and user interactions.

Consider an example where you’re using Whatfix on a web application that frequently changes the color of its buttons. The color attribute (style) changes are not significant for the functionality of the Whatfix flows, so you decide to exclude them from mutation observations.

Use the following steps to exclude certain application attributes during mutations:

  1. On the Whatfix Guidance dashboard, click Settings.
    ia_left_nav_settings

  2. Click Advanced customisation.
    ia_settings_advanced%20configuration

  3. Click Technical configuration.
    ac_tech config.png

  4. Click Add preferences.
    tech config_add prefrences.png

  1. Click Smart Tip.
    tech config_smart tip.png

  2. Select the Mutation Exclude Attribute Names checkbox.
    tech config_enable mutation exclude attributes name.png

  3. Click Add.
    tech config_add button.png

  4. In the Mutation Exclude Attribute Names Value field, enter the attributes you want Whatfix to exclude, as shown in the following image:
    DB_Mutation_Observer.png

Note:

The attribute name values must be enclosed in double quotes.

  1. Click Save.
    tech config_save.png