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 trackCustomEvent [Fixes #34] #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samajammin
Copy link
Contributor

@samajammin samajammin commented Jul 27, 2020

Solves #34

@d4h0
Copy link

d4h0 commented Dec 13, 2020

@samajammin: Shouldn't this be defined in gatsby-browser.js?

I'm pretty sure, calling trackCustomEvent outside the browser will fail because window doesn't exist.

@Hahlh
Copy link

Hahlh commented Jul 11, 2021

@d4h0 a simple window check, e.g: if (typeof window !== 'undefined') { // do something }, should suffice to address that if necessary.

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

Successfully merging this pull request may close these issues.

3 participants