analytics.google_analytics) is a Streamly plugin in the analytics category.
Injects GA4 on the viewer storefront. Optional apiSecret enables server-side Measurement Protocol events.
Learn the service
Watch this overview of the vendor platform (helpful before you paste keys into Streamly).Getting started with the Google Analytics property — Google Analytics.
At a glance
How it works
Storefront analytics components load your Measurement ID. Server helpers can send MP events whenapiSecret is set.
Activation keys
Configure in/admin/plugins → Google Analytics 4 → Configure. Secret fields stay server-side — never commit them or expose as NEXT_PUBLIC_* unless the key is intentionally public (e.g. Stripe publishable key).
Setup guide
1
Create GA4 web stream
Copy Measurement ID.
2
Install plugin
Paste
measurementId.3
Optional MP secret
GA4 Admin → Data stream → Measurement Protocol.
4
Verify
Realtime report / Tag Assistant on storefront.