VisitorContext
Defined in: src/rules.ts:12
What the rules engine knows about the visitor. All string values lowercase except country/continent.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
browser |
string |
- | src/rules.ts:15 |
continent? |
string |
Continent code, uppercase. | src/rules.ts:19 |
country? |
string |
ISO alpha-2, uppercase. | src/rules.ts:17 |
device |
string |
- | src/rules.ts:13 |
languages |
string[] |
Primary language tags from Accept-Language, lowercase, in preference order (["de", "en"]). |
src/rules.ts:21 |
now |
number |
Evaluation time, epoch millis. | src/rules.ts:28 |
os |
string |
- | src/rules.ts:14 |
qr |
boolean |
- | src/rules.ts:24 |
query |
URLSearchParams |
Query parameters of the short URL. | src/rules.ts:26 |
referrerHost |
string |
Referrer hostname (lowercase) or "(direct)". |
src/rules.ts:23 |