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