Next.js-specific tracking guidance
Track campaigns that promote Next.js apps, SaaS landing pages, launch pages, and documentation. Next.js traffic can be difficult to compare when campaign names, ad placements, or organic links use inconsistent labels. A dedicated UTM structure helps teams understand how this traffic performs in GA4 and how it compares with other channels.
GA4 sees this traffic through the UTM values attached to the landing URL. For this page, the recommended starting point is source partner_site and medium referral. That pairing keeps reports readable and makes it easier to compare this traffic against email, paid search, social, affiliate, QR, and referral campaigns.
The goal is not to create a different naming system for every page. The goal is to document practical defaults, show examples, and connect the page to the wider campaign tracking workflow. Use this page when planning campaign URLs, briefing team members, or auditing whether existing links follow a reliable pattern.
Recommended UTM structure
Source
utm_source=partner_siteMedium
utm_medium=referralCampaign
utm_campaign=saas_launchContent
utm_content=docs_linkExample URLs
https://example.com/?utm_source=partner_site&utm_medium=referral&utm_campaign=saas_launch&utm_content=docs_link
https://example.com/?utm_source=partner_site&utm_medium=referral&utm_campaign=saas_launch&utm_content=footer_link
https://example.com/?utm_source=partner_site&utm_medium=referral&utm_campaign=product_launch&utm_content=docs_link
Best practices
Common mistakes
Not preserving UTMs through redirects or middleware.
Other common mistakes include uppercase values, spaces in campaign names, inconsistent separators, missing campaign names, and using one broad campaign label for every placement. Validate links before launch and keep a shared naming document for future campaigns.
FAQ
What source should I use for Next.js?
Use partner_site as a practical starting point when you want reports to identify Next.js traffic clearly.
What medium should I use for Next.js?
Use referral when it matches the channel type. Keep medium values consistent across similar campaigns.
Does GA4 support Next.js UTM links?
Yes. GA4 can read UTM source, medium, campaign, content, and term values from tagged landing URLs.
Should UTM values be lowercase?
Yes. Lowercase values reduce fragmented reports and make campaign data easier to compare.