react-ga4 icon indicating copy to clipboard operation
react-ga4 copied to clipboard

React Google Analytics 4

Results 44 react-ga4 issues
Sort by recently updated
recently updated
newest added

Not a real issue but I am trying to figure out how to set and update google CMP (Consent Management Platform) with react-ga4. According to the official google doc [official...

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...

The original react-ga support a `titleCase` parameter when initializing. This doesn't seem to be present here. All my events are sent with a capitalized first letter. e.g. `this_event` ends up...

Currently GTAG script is being loaded into document.body but google recommends it to load inside head only. Due to script getting load in body many fields will be getting as...

- Closes https://github.com/codler/react-ga4/issues/54 Adds support for sending event data, etc. without automatically title casing the values. Continues to default to the behavior of title casing for backward compatibility.

In older versions, we could set HTML attributes like data-gtm-type="form" and data-gtm-name="personal-data" to track events. In the new version of react-ga4 how can do this? Example ``

Hi everyone I have a config multiple trackers, however when I try to send event to each tracker, it's missing events in the second tracker. ``` ReactGA.initialize(tracker.trackingId); this.trackers.push({ trackingId: tracker.trackingId,...

Hi everyone, I'm using react-ga4 and I'm curious if we can also use Google Tag Manager with it?

Hi, With: import ReactGA from 'react-ga4'; ReactGA.initialize('G-8XZ6X4KJQH'); I am having this error `Uncaught TypeError: import_react_ga4.default.initialize is not a function` It seems to work if I use `ReactGA.default.initialize('G-8XZ6X4KJQH');` using ESBuild 0.15.12...

Previously with `react-ga` we could use this code: ``` ReactGA.plugin.require("ecommerce"); ReactGA.plugin.execute("ecommerce", "addItem", { id, name, sku, category, quantity }); ReactGA.plugin.execute("ecommerce", "addTransaction", { id, revenue }); ReactGA.plugin.execute("ecommerce", "send"); ``` Is there...