page transitions
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
})(window,document,'script','//eum.instana.io/eum.min.js','ineum');
|
||||
ineum('key', 'INSTANA_EUM_KEY');
|
||||
ineum('reportingUrl', 'INSTANA_EUM_REPORTING_URL');
|
||||
ineum('page', 'Shop');
|
||||
ineum('page', 'splash.html');
|
||||
</script>
|
||||
<!-- EUM include end -->
|
||||
|
||||
|
@@ -54,19 +54,10 @@
|
||||
|
||||
// Instana EUM
|
||||
// may not be loaded so check for ineum object
|
||||
$rootScope.$on('$routeChangeStart', (event, next, current) => {
|
||||
if(typeof ineum !== 'undefined') {
|
||||
ineum('startSpaPageTransition');
|
||||
}
|
||||
});
|
||||
$rootScope.$on('$routeChangeSuccess', (event, next, current) => {
|
||||
if(typeof ineum !== 'undefined') {
|
||||
ineum('endSpaPageTransition', {'status': 'completed', 'url': window.location.href});
|
||||
}
|
||||
});
|
||||
$rootScope.$on('$routeChangeError', (event, next, current) => {
|
||||
if(typeof ineum !== 'undefined') {
|
||||
ineum('endSpaPageTransition', {'status': 'error'});
|
||||
//console.log('route change', event, next, current);
|
||||
ineum('page', next.loadedTemplateUrl);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user