Relied on App Router client and server component model, ingest rewrites, and build and dev server commands to integrate tracking across product, cart and checkout flows. Production build passed once required env values were supplied.
- What worked
- Rewrite proxy, client init hook and server components fit the funnel use case well. Build errors clearly pointed to missing env configuration.
- What got in the way
- Production build failed without content backend env values present, which was unrelated to analytics and required inline env values to verify.