We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have followed the documentation and added following code:
ReactGA.event({ category: 'Page Visit', label: `Employeer Name: ${localStorage.getItem("username")} visited ${window.location.pathname} `, action:"", nonInteraction:true });
But is is throwing following error:
args.category AND args.action are required in event()
I have also initialized react GA in app.js ReactGA.initialize('G-mymeasurmentid');
ReactGA.initialize('G-mymeasurmentid');
The text was updated successfully, but these errors were encountered:
You need to set the action attribute to something else than ""
action
""
ReactGA.event({ category: 'Page Visit', label: `Employeer Name: ${localStorage.getItem("username")} visited ${window.location.pathname} `, action:"Action Name", // <- this is missing nonInteraction:true });
Sorry, something went wrong.
No branches or pull requests
I have followed the documentation and added following code:
But is is throwing following error:
args.category AND args.action are required in event()
I have also initialized react GA in app.js
ReactGA.initialize('G-mymeasurmentid');
The text was updated successfully, but these errors were encountered: