react-ga4
react-ga4 copied to clipboard
React Google Analytics 4
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....
I am using the below code and it's not working with the custom definition and getting "not set" as a value. But in the debug view I am getting the...
I don't see the gtag debug_mode option mapped to any parameter for ReactGA.initialize(). It also doesn't appear to be related to options.testMode, and I don't know what testMode is for...
Would be helpful to be able to supply an ID to the script tag itself to make it easy to call `document.body.removeChild(scriptTag)` if we want to unmount the analytics script
When using `react-ga` - we would set up the cross-domain tracking with the `linker` option in GA: ex: ``` ReactGA.ga("require", "linker") ReactGA.ga("linker:autoLink", ["source.com"]) ``` When we upgraded to this library...
We seem to be experiencing the "rogue referral" issue as described here: https://www.linkedin.com/pulse/how-fix-ga4-rogue-referral-problem-spa-websites-ortolani-barbosa/ Is there an internal solution for this or do I need to roll my own? Thanks!
ga4 scripts affecting page speed (TBT), is there any way to defer or lazyload the scripts?
My goal is to anonymize IP addresses to comply with GDPR regulations, but I'm having trouble getting it to work correctly. Hereβs the relevant code snippet I'm using: ``` const...
Hi there! I'm trying to use `ReactGA.send` to pass `user_id` to React GA4. ``` useEffect(() => { ReactGA.send({ hitType: 'pageview', page: location.pathname, user_id: user?.id ?? '' }) // Track the...
Hi! π Firstly, thanks for your work on this project! π Today I used [patch-package](https://github.com/ds300/patch-package) to patch `[email protected]` for the project I'm working on. Here is the diff that solved...