In a standard Browser EUM beacon, the value for
document.title is collected as part of the data to be sent in the beacon. You may want to alter or eliminate the page title for security or privacy reasons.
You can choose to:
- Not collect a page title at all
- Use a title that is created by a function with 0 arguments
- Use a title that is an arbitrary string
The page title is different than the page name. The page title is just additional information included in browser snapshots, whereas, the page name is used to identify and group records in the Pages & AJAX Requests page.
Don't Use a Page Title
To remove the page title entirely, add the following snippet to your page before you inject the
Use a Page Title Created by a Function
To use a function with no arguments to create a page title, before you inject the
adrum.js script, define your function and call it, as in this example:
Something like this could be used, for example, to remove sensitive data from the page title.
Use an Arbitrary String as a Page Title
To use any arbitrary string as the page title, before you inject the
adrum.js script, set
This would set the page title in the beacon to "My Special Page Title".