Next.js Discord

Discord Forum

Need help GA4 and GTM real time data and custom event and purchase events

Unanswered
Giant resin bee posted this in #help-forum
Open in Discord
Giant resin beeOP
I’m using Next.js 16.2.11 and the @next/third-parties package to integrate GA4 and Google Tag Manager. I added both components to my root layout and double-checked that the GA4 and GTM IDs are correct.

However, GA4 is not showing any real-time active users.

I also have a multi-step form on a single page that eventually leads to checkout. My application currently has multiple checkout flows, and I want to track:

* Users progressing through each step of the multi-step form
* Users reaching the checkout page
* Users completing a purchase
* Which checkout flow generated the purchase

What would be the best way to set up this tracking using GA4 and GTM in Next.js?

3 Replies