angular-google-analytics icon indicating copy to clipboard operation
angular-google-analytics copied to clipboard

Asyncronous callback after trackPage/trackEvent

Open lucianomurr opened this issue 9 years ago • 2 comments

Hi everyone, exists a way to set a callback function after the trackPage/trackEvent?

L.

lucianomurr avatar Apr 29 '16 15:04 lucianomurr

No. What would be the use case for this? Could you elaborate little on your requirements?

Toxantron avatar Apr 29 '16 15:04 Toxantron

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.

lucianomurr avatar May 06 '16 13:05 lucianomurr