You can add user information that is specific to your application to a browser snapshot. The information is expressed as key-value pairs, and the maximum size of all user data in a page is 100 bytes. The information appears in the User Data section of the snapshot and is available for page snapshots, Ajax requests, and virtual pages.
Add User Data
User data is added when certain events are triggered. You can choose to set user data for each or all of the following available events:
PageView- this event is triggered when the base page is loaded in the browser.
Ajax- this event is triggered when an Ajax call is made.
VPageView- this event is triggered when the virtual page is created. The virtual page is a dynamically recreated version of the base page.
The events are callbacks that are part of the
userEventInfo object that is assigned to
window['adrum-config'] as shown below. Here just the event callback
PageView is passed. Also, note that you must set
window['adrum-config'] before you inject the
For each event callback that is triggered, you can add user data by returning the following objects containing key-value pairs of different data types:
So, using the same snippet with the
PageView event, let's add some user data using the objects above:
The results from the code snippet above should then appear in the browser snapshot in the User Data panel.
- username: john_thompson
- email: email@example.com
- total_price: 123.14
- monthlyVisitFrequency: 0.133333
- returnCustomer: true
- checkoutTime: 1464390383475
Filter by User Data
You can filter browser snapshots based on user data in the Advanced section of the browser snapshot filter: