How to use Google Analytics gtag.js with Turbolinks & Webpacker Discussion
Are you using GA for the public parts of GoRails or are you also using it for the authenticated parts of GoRails too?
Thank you for yet another amazing and informative tutorial!
I found that in Rails 6.1.3 with Turbo (rather than Turbolinks), I needed to replace "page_location: event.data.url" with "page_location: event.detail.url". (data -> detail).