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

Extra Event Call

Open ShubhamSinghNW18 opened this issue 2 years ago • 2 comments

Hi I am using this package for implementing GA4 in my next js application. While clicking on any ancor tag a extra GA4 click event is getting called, so is their any way to block this extra event call

ShubhamSinghNW18 avatar Jun 14 '23 08:06 ShubhamSinghNW18

I think you can disable it by turning off Enhanced measurement in the GA console

guybinya avatar Mar 13 '24 21:03 guybinya

@ShubhamSinghNW18, I'm experiencing a similar issue where page views are duplicated (noticed when monitoring the Realtime Overview, where they appear twice).

I tested the solution suggested by @guybinya, and while it does address the problem, it introduces a new issue: if you navigate through multiple pages quickly, only a single request is sent (resulting in just one page showing up in the Realtime Overview).

Anyone have an idea what is the best practice?

obada-jaras avatar Apr 03 '24 01:04 obada-jaras