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

Can we use google tag manager with react-ga4?

Open beany-vu opened this issue 2 years ago • 4 comments

Hi everyone,

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

beany-vu avatar Jun 16 '23 14:06 beany-vu

It may duplicate data depending on how you initialize G4. Also, you may need to change how your measurement ID is configured. By default it ignores a secondary script if found.

jpyoda avatar Jun 20 '23 15:06 jpyoda

@beany-vu did you figure this out?

coreybruyere avatar Jun 27 '23 19:06 coreybruyere

@beany-vu and @jpyoda I am in the same boat did you guys figure this out?

daiky00 avatar Jul 01 '23 17:07 daiky00

You need to go to data-streams, go to the measurement ID you want, select configure tag settings, go to manage google tag. In additional tag settings you can disable ignore duplicate instances. You can also configure additional IDs.

jpyoda avatar Jul 01 '23 17:07 jpyoda