Top
Ignore Application Attributes during Mutations
  • 23 Apr 2025
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Ignore Application Attributes during Mutations

  • Dark
    Light
  • PDF

Article summary

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

Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.