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

Add an event tracking callback to allow for inserting custom trackers #9

Open
kleinjoshuaa opened this issue Mar 17, 2023 · 0 comments

Comments

@kleinjoshuaa
Copy link

kleinjoshuaa commented Mar 17, 2023

Sometimes we have other trackers that we like to 'piggy back' on to GA4 for tracking events.

It would be really cool to be able to do something like this:

tracker.addEventCallback((user_id, eventsParameters, persistentEventParameters, userProperties) => {
// add custom tracker code here
})

And then every time trackEvent is called this is called too

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

1 participant