Atatus SPA agent captures the route changes automatically when you use Navigo with history-api
mode. When you use Navigo with hash
mode, then our SPA agent won't capture route changes. To see hash route changes, you have to manually call the following function.
atatus.spa.startTransaction();
This can be fixed by calling following function at start of Navigo router.on
functions.
Example:
router.on({
'usage': function () {
if (window.atatus && window.atatus.spa) {
window.atatus.spa.startTransaction();
}
setContent('usage');
},
'download': function () {
if (window.atatus && window.atatus.spa) {
window.atatus.spa.startTransaction();
}
setContent('download');
},
});