Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asyncronous callback after trackPage/trackEvent #155

Open
lucianomurr opened this issue Apr 29, 2016 · 2 comments
Open

Asyncronous callback after trackPage/trackEvent #155

lucianomurr opened this issue Apr 29, 2016 · 2 comments

Comments

@lucianomurr
Copy link

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

L.

@Toxantron
Copy link
Contributor

Toxantron commented Apr 29, 2016

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

@lucianomurr
Copy link
Author

lucianomurr commented May 6, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants