angular-google-analytics
angular-google-analytics copied to clipboard
Asyncronous callback after trackPage/trackEvent
Hi everyone, exists a way to set a callback function after the trackPage/trackEvent?
L.
No. What would be the use case for this? Could you elaborate little on your requirements?
Yes, we have a page with redirect to the other app, and we would monitoring this event.
myFunctionRedirect(){
Analytics.trackEvent('button', 'click', 'newPageRedirect');
window.location.href = 'urlOtherApp';
}
The redirect after the trackEvent remove the previous call to the analytics service of the current page.