In a standard Browser RUM 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.
Remove a Page Title
To remove the page title entirely, add the following snippet to your page before you inject the adrum.js script:
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:
<head>
<script type='text/javascript' charset='UTF-8'>
function title() { return document.title.split('-').slice(1,3).join('-'); } // define a function
(function (config) {
(function (page) {
page.title = title; // call your function
})(config.page || (config.page = {}));
})(window['adrum-config'] || (window['adrum-config'] = {}));
</script>
<script src='//cdn.appdynamics.com/adrum/adrum-latest.js' type='text/javascript' charset='UTF-8'/>
...
</head>
JS
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 page.title.