The destination URL can carry macros, and the Worker replaces them with the visitor's own signals before redirecting. They work in the Action URL of a redirect rule and in every variant URL of a SmartLink rule, including geo-aware pools. The rule drawer has a row of chips under each URL field — click one to insert it.
{country}
- Two-letter country code — US, DE, BR — or XX when Cloudflare cannot determine it.
{device}
- Either
mobile or desktop. There is no tablet value; an iPad counts as desktop.
{os}
windows, macos, linux, android, ios, or unknown.
{browser}
chrome, firefox, safari, edge, opera, or unknown.
{path}
- The path the visitor requested on your acceptor domain.
{host}
- The acceptor domain that received the request.
A macro may appear as often as you need — in the path and again in a tracking parameter — and every occurrence is replaced: https://offer.com/{country}/?geo={country}&d={device} becomes https://offer.com/DE/?geo=DE&d=mobile for a German visitor on a phone.
An unknown macro is left exactly as written. There is no error and no fallback, so a typo like {coutry} travels to your partner literally, inside a URL that looks parameterised. The drawer warns about tokens it does not recognise — do not dismiss that warning.