Sub topic 11
Common Pitfalls in GA4 Campaign Tracking and How to Fix Them
Assume that you know how URLs and query strings work, have a GA4 web data stream installed, and can open GA4 reports. This chapter focuses on diagnosing campaign data that is missing, grouped incorrectly, or attributed to the wrong source.
When Campaign Data Looks Wrong
UTM problems usually come from one of three places:
- The link was built incorrectly.
- A redirect, email system, or website removed or changed the parameters.
- GA4 received the parameters but interpreted them differently from what you expected.
The most useful debugging habit is to follow the link as a user would. Check the URL in the message, check the final landing-page URL, and then check whether GA4 recorded the visit.
`(not set)` Is Not One Specific Error
(not set) means that GA4 does not have a value for the selected dimension. The cause depends on the report and dimension.
For campaign traffic, common causes include:
- A required campaign parameter was missing.
- The user visited another page before the campaign data was recorded.
- The selected date range does not contain the relevant event or session.
- A report uses a dimension that does not apply to every event.
- Data processing or reporting thresholds affect what is displayed.
A link with only utm_source and utm_medium may identify the source and medium but leave the campaign dimension as (not set). Use the three core parameters together:
https://example.com/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale_2026Do not treat every (not set) row as a tagging failure. First identify the report, dimension, and scope. A session-scoped campaign dimension and an event-scoped dimension can produce different results.
`Unassigned` Is Different from `(not set)`
Unassigned is a channel-grouping result. It means GA4 received traffic information but could not map it to one of the available default channel groups.
For example, a custom medium such as sendout may be meaningful to your team, but GA4's default rules may not map it to Email. Use a standard medium such as email, or create a custom channel group with rules for your organization's values.
The distinction is useful:
| Result | Usually means | First check |
|---|---|---|
| `(not set)` | The dimension has no value | Required parameters and report scope |
| `Unassigned` | Values exist but channel rules did not match | Source, medium, and channel-group rules |
Internal UTM Links Cause Self-Referrals
Do not add UTM parameters to links between pages on your own website. An internal link such as this can overwrite the original campaign attribution:
https://example.com/pricing?utm_source=website&utm_medium=internal&utm_campaign=pricing_linkA visitor might arrive from a paid campaign, click this internal link, and then start a new session or receive a new campaign value. The original source may disappear from later reports. Internal UTM values can also create confusing self-referrals.
Use ordinary internal links without UTM parameters. If you need to understand clicks on an internal banner, measure the click as an event and add event parameters such as banner_name or placement.
Case and Spelling Errors Split Reports
UTM values are commonly treated as distinct values when capitalization or spelling differs. These values can create separate rows:
Newsletternewsletternews-letter
The same problem affects campaign names such as Spring Sale, spring_sale, and spring-sale. Choose a naming convention before launching a campaign. A practical convention is:
- Lowercase all values.
- Use underscores or hyphens consistently.
- Avoid spaces and special characters.
- Use one stable value for each source and medium.
- Keep campaign names descriptive but not excessively long.
A naming convention cannot repair old data. It prevents future fragmentation.
Redirects Can Remove Campaign Parameters
Some short-link services, consent flows, login pages, and server redirects fail to preserve the query string. The original URL may contain UTMs, but the final URL may not.
Open the landing page and inspect its address:
const params = new URLSearchParams(window.location.search);
const utm = Object.fromEntries(
[...params].filter(([key]) => key.startsWith("utm_"))
);
console.log(utm);If the object is empty, inspect every redirect in the chain. Update the redirect configuration so the final destination preserves the query string. Also check whether a consent platform delays analytics until after the first page view.
Auto-Tagging and Manual UTMs Can Conflict
Advertising platforms may use auto-tagging identifiers, while your team adds manual UTM parameters. The resulting attribution depends on the platform integration and the available identifiers. Do not assume that manually adding a different source will override an imported advertising dimension.
For linked Google Ads accounts, prefer the supported integration and auto-tagging. Use manual UTMs for channels that need them, such as newsletters, partner sites, and social posts. Keep the values consistent with your reporting plan.
A Practical Debugging Path
Use this sequence when a campaign does not appear as expected:
Finally, compare the campaign URL with the values shown in the Acquisition reports or an Exploration. Check the exact source, medium, campaign, date, and session count. Small differences in spelling often explain apparently missing data.
Exercise
A newsletter link contains utmsource=newsletter and utmmedium=sendout, but GA4 places the traffic in Unassigned. What should you check first?
Show answer
Check the medium against the default channel-grouping rules. Change it to a recognized value such as email, or add a matching rule to a custom channel group.