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

Cannot integrate google search console using generated snippet

Open PierreNoll opened this issue 8 months ago • 1 comments

Validating google search console integration using the Google Analytics Tracking code generated with this module fails because:

Your non-logged-in homepage (see note) must contain either the analytics.js or gtag.js snippet. The tracking code must be in the <head> section, not the <body> section, of your page. To confirm the presence of this tag, visit the page in your browser, view the page source, and search for the snippet.

(cf https://support.google.com/webmasters/answer/9008080?hl=en#zippy=%2Cgoogle-analytics-tracking-code)

PierreNoll avatar Jun 23 '25 10:06 PierreNoll

This issue would be fixed by https://github.com/codler/react-ga4/pull/37

PierreNoll avatar Jun 23 '25 10:06 PierreNoll