Closed frankfarm closed 1 year ago
The Grav plugin support Analitics.JS and you would like to use an other script called GTag.JS. To use GTag.JS the plugin have to rewrite.
ganalytics plugins now uses gtag.js as required per GA4 support. Update to v2 and give it ago.
I haven't tried it yet, but thank you!
In my Google Analytics account it says:
and the tracking code looks like this:
where [trackingid] is my tracking id. However, when I use this plugin the code I get is
and it appears just before the end of the body tag regardless of whether I choose Head or End of Body for the code position in the Grav plugin configuration.
How do I get the Global Site Tag code as shown above and as the first item in the head as Google recommends?