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

feat: added global window definition for ease of use #31

Merged
merged 2 commits into from
Aug 15, 2022
Merged

Conversation

jahilldev
Copy link
Owner

Currently if a consumer does not make use of Node, or a build tool built in Node, it's not possible to access the track function globally inside an applications code.

This introduces an additional config property, defineGlobal, that can be set to handle this definition. You can access the function by calling:

window.track(/*[...]*/);

@jahilldev jahilldev mentioned this pull request Aug 15, 2022
@jahilldev jahilldev merged commit 6c13f7c into main Aug 15, 2022
@jahilldev jahilldev deleted the define-global branch August 15, 2022 14:54
@jahilldev jahilldev added enhancement New feature or request ga4 labels Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ga4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant