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

Not sure issue with ReactGA.send( #84

Open
aaronucsd opened this issue Aug 9, 2024 · 0 comments
Open

Not sure issue with ReactGA.send( #84

aaronucsd opened this issue Aug 9, 2024 · 0 comments

Comments

@aaronucsd
Copy link

Seems like if you put
ReactGA.send({ hitType: "pageview", page: "/demo/dedicated", title: "dedicated dashboard page" }); outside of the page view (per route) it will update all the custom page views. Not sure this is a bug or do we need to put this call inside the component const DedicatedHomeView = () => {} definition and maybe in the React.useEffect(() => {, []}? SO it called once on page / component load?

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