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
ReactGA.event sends event title with first letter captitalised #22
Comments
You can use the following code for ReactGA.event("add_to_cart", {
items: [{ item_name: "name" }],
}); https://developers.google.com/tag-platform/gtagjs/reference/events#add_to_cart |
Thank you for the above comment. The above link has many relevant events, and that certainly helps. But what if I were to create a custom event like for example, |
I don't understand what you meant. If you use |
@sakshambhatt, I have the same issue. Maybe the suggestion of Codler is not clear. You can do like this:
It'll result in no |
I think the bigger issue here is presumptively adding title case. Shouldn't user input be kept as is? |
ReactGA initialize, gives options to make the titleCase boolean false. Could such an option be added in react-ga4 as well?
So that following code, leads to
add_to_cart
and not inAdd_to_cart
?The text was updated successfully, but these errors were encountered: