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

[Request] Support exception events #40

Open
fehbari opened this issue May 17, 2023 · 0 comments
Open

[Request] Support exception events #40

fehbari opened this issue May 17, 2023 · 0 comments

Comments

@fehbari
Copy link

fehbari commented May 17, 2023

The following was possible in react-ga.

ReactGA.exception({
  description: 'An error occurred',
  fatal: true
})

In react-ga4, this seems to be disabled entirely.

case "exception":
        console.warn(`Unsupported send command: ${hitType}`);
        break;

This is a valuable feature of GA, and it's absence makes it a bit harder to use react-ga4 as a drop in replacement of react-ga for those migrating to GA4.

If this isn't in scope, I'd appreciate some advice on how to add it to my application without having to switch back to the basic GA client.

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