Values wrong or truncated
Who this page is for
| Audience | Why it matters to you |
|---|---|
| Analysts | Spot bad data |
| Implementers | Fix issues |
Values Wrong or Truncated
Data is showing, but values are wrong or cut off.
Issue: Values truncated
Problem: Page names showing "Customer Contact Form - Report a..." (truncated)
Cause: Values > 255 bytes are truncated
Fix:
- Make page names shorter
- Use abbreviations
- Or use a prop instead (for shorter values)
Issue: Values merged incorrectly
Problem: Same page shows as two values:
- "home page"
- "Home Page"
Cause: Analytics is case-sensitive
Fix: Use processing rule to lowercase all page names
If: Page Name is set
Then: Set Page Name = lowercase(Page Name)
Issue: Page names are URLs
Problem: prop showing: "/en/product/iphone-15-pro?ref=search&campaign=summer"
Cause: Implementation is sending full URL instead of clean page name
Fix: In your data layer, send clean page name:
// WRONG
s.pageName = window.location.href;
// RIGHT
s.pageName = "Product - iPhone 15 Pro";
Issue: Event values wrong
Problem: event1 showing 0 value (should be count)
Cause: Events aren't numeric
Fix: Events can be:
- Counters: event1 = 1 (fires once)
- Numeric: event5 = 99.99 (revenue)
- Always numeric
Make sure you're sending numbers, not text:
// WRONG
s.events = "event5=purchase_amount"
// RIGHT
s.events = "event5";
s.eVar1 = "99.99"; // revenue in separate var
Issue: Segments not matching
Problem: "Mobile visitors" segment shows 0 traffic, but Mobile device type shows data
Cause: Segment container mismatch
Fix: Check your segment:
- Hit container: checks this specific hit
- Visit container: checks within a visit
- Visitor container: checks within entire visitor
---
Next: Low Traffic and cardinality