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

Event Callback function not available in Mixpanel Template - URGENT #4

Open
oliverentain opened this issue Feb 21, 2023 · 2 comments
Open

Comments

@oliverentain
Copy link

Hi,

We found a race condition issue on tracking events once they are firing just before a redirection to another domain happens. In this way, the GTM event fires but the browser is not collecting the specific event from Mixpanel.

Mixpanel support team suggested using an 'event callback' function to mitigate this but this function is only available for custom HTML tags and not for the Mixpanel Template.

Can you please add this function to the Mixpanel template?

Thanks.

@jbwyme
Copy link
Contributor

jbwyme commented Feb 21, 2023

Documenting for posterity: one other potential option here would be to use the browsers sendBeacon method. We would need to do a bit of research to make sure that approach would work though.

@oliverentain
Copy link
Author

Thanks for your message. Yes, we applied this change and it works but only for a few labels.

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