Atatus captures all urls automatically. If you want to capture performance metrics only from set of domains or urls, then you can whitelist them either with whitelistUrls
option or setWhitelistUrls
function.
atatus.config('YOUR_API_KEY', {
whitelistUrls: [
'mycompany.com',
'ajax.googleapis.com'
]
}).install();
copy
atatus.setWhitelistUrls([
'mycompany.com',
'ajax.googleapis.com'
]);
copy
atatus.setWhitelistUrls([
/^((?!mycompany.com|googleapis.com).)*$/g
]);
In the whitelist url option or function, you can pass array of string and regex.