Skip to content

os-referral-tracker (Referral Tracker)

os-referral-tracker reads the current referral code from URL/query state, syncs referral cookie state, and optionally renders referral attribution text.

os-referral-tracker (Referral Tracker)

nametyperequireddefaultdescription
hide-textstringNoNone (off)hide-text="true" — Hides the rendered “Shopping With” referral label, so the component tracks the referral invisibly. See the note below on how this attribute is read.
layout.html
<os-referral-tracker hide-text="true"></os-referral-tracker>

os-referral-tracker is a behavior-only component (it captures and persists referral codes) and exposes no --os-* CSS variables. If it renders any visible UI on your page, style it with plain selectors against the element — see Overriding styles.