Crunch Config
This config will help you customize what we track and how we track it in your application.
sessionTimeout
A new user session is recorded by default after inactivity for 30 minutes or when the application is closed (by closing the browser tabs or the browser itself)
This timeout can be changed as per your requirement.
Example: If it is common for users to be idle for hours while using your application and you wish to record the activity under the same session, you can set the timeout to 7200000 ms (2 hours)
ignoreAllContent
This config will help you set whether you want the text content from elements to be captured or not.
This includes text content in the buttons, on the links and in the card headings or paragraphs.
By default, it is set to false and we recommend not using this as it may make understanding the user data and analytics a bit more difficult.
In case you wish to avoid capturing certain sensitive data on your application, you can use the data-crunch-ignore-content data attribute (explained below)
ignoreContentList
To make it easier for you to avoid capturing sensitive data from multiple parts of your website. You can include an ignoreContentList config.
The config will be an array of string element IDs under which no data will be captured.
There are two situations where you can still capture the data by explicitly mentioning it.
If any input element ID inside the element of ignoreContentList, is passed in the allowInputList config, then the data from that element will still be captured.
Any element with the data attribute data-crunch-capture-content given inside the ignoreContentList element will still be captured.
Use case: If you have a user details modal with sensitive data, you can provide the id of that modal element in the ignoreContentList, and still capture the generic buttons inside the modal by setting the data-crunch-capture-content data attribute on those buttons.
allowInputList
To capture the input value of the input elements, you can pass the IDs of those input elements in the allowInputList config.
All the input element IDs passed in this array will capture the input data and it will be associated with the current user.
Last updated