Creating custom fields for your application
To create a custom field
- From the Settings menu, select End User Experience.
- Select an application.
If you have not created an application, see Collecting-end-user-experience-data-from-applications. - Select the Custom Fields tab.
- Click + Create to create a new custom field mapping. If a custom field already exists, click
to edit it.
- From the Set Condition section,
- Set the Type to Page or Ajax.
- Specify the URL Pattern.
For example, if the URL is https://mystore.com/department/clothes.html?color=blue&size=medium#sale/summer/August, you can specify /department/*#sale/* as the URL pattern.
The URL pattern represents the path or fragment sections of the URL. It ignores the protocol (https), domain (mystore.com), and query param (color=blue&size=medium#sale/summer/August).
From the Custom Field section, select the Type of Custom Field.
Custom field
Type
Description
Cookie
Page
Contains data such as session tokens and arrays used for making authorization decisions.Authentication cookies tagged with the HttpOnly flag cannot be accessed by the JavaScript.
Query Param
Page, Ajax
Part of a uniform resource locator (URL) containing data used to sort or filter custom resource.
Session Storage
Page
Data stored in the user's web browser for the current session.
Local Storage
Page
Larger storage of application data in the user's web browser.
Response Header
Ajax
Information that a server sends back to a client's browser in response to the HTTP request.
Request Header
Ajax
Request that the client's browser sends to the server.
The default browser entries in the Request Header cannot be accessed by the JavaScript.Request Payload
Ajax
Data sent as part of the HTTP request.
Response Payload
Ajax
Data sent by the server in response to the request payload.
- Depending on the Type Custom Field, specify the Key and/or specify the Capture Options (applicable to storage and payload fields).
- Capture ALL - Collect the entire JSON for the storage or payload fields.
- Use JSON Path - Specify the path if the storage or payload fields use JSON
For example, if the payload value is {"user": {"name": "John", "id": 12}, company:"John's Company"}- Specify .company to collect the company field (John's Company).
- Specify .user.id to collect the user ID field (12).
Where to go from here
Use the system default view for analyzing end-user experience with your configured applications.