Skip to main content

Traffic Context

Traffic context is the backbone of personalization. It captures where a visitor came from and uses that to personalize everything — page layout (SDUI), pricing, offers, and content.

What's Captured

FieldSourceExample
bevCookie (auto-set)1712345_abcdef
partner_idQuery param or headerVISA
utm_sourceQuery paramgoogle
utm_mediumQuery paramcpc
utm_campaignQuery paramsummer_2026
traffic_sourceAuto-classifiedPARTNER, PAID, ORGANIC
referrer_urlReferer headerhttps://facebook.com/post
device_typeUser-AgentMOBILE, DESKTOP
ip_addressX-Forwarded-For203.0.113.42
loyalty_tierFrom user account2 (Gold)

How It's Used

Traffic Context

├─ SDUI → Visibility rules filter sections/blocks
├─ Pricing → PricingContextService matches rules → PricingAdjustment
├─ Offers → Filtered by PricingAdjustment (disable/whitelist)
└─ Analytics → visitor_session table for attribution

The Key Insight

Frontend does nothing. The backend:

  1. Reads the bev cookie (set automatically)
  2. Resolves stored traffic context from the last visit
  3. Applies it to every API response

Traffic params (partner_id, utm_source) are only needed on the initial landing URL.