page transitions

This commit is contained in:
Steve Waterworth
2019-05-07 14:48:11 +01:00
parent 5d167a9f19
commit ab7b7cee74
2 changed files with 3 additions and 12 deletions

View File

@@ -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 -->

View File

@@ -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);
}
});
});