Instant Analytics GA4 brings full Google Analytics 4 support to your Twig templates and automatic Craft Commerce integration with Google Enhanced Ecommerce.
You don’t need to include the typical Google Analytics script tag on your pages, instead Instant Analytics will send page views when your frontend templates are rendered via the officially supported Google Analytics 4 Protocol.
You can also track asset/media views in Google Analytics, either as PageViews or as Events. This lets you track otherwise untrackable things such as individual RSS feed accesses, images, PDF files, etc.
If you are using Craft Commerce, Instant Analytics will automatically send Google Analytics Enhanced eCommerce data to your Google Analytics account as items are added/removed from your cart, and orders are tracked as well.
Instant Analytics is implemented on the demo site Brads for Men
To install this plugin, copy the command above to your terminal.