Page cover image

Partially Match Condition

Partially match a condition you have defined by appending a caret (^) or dollar sign ($) to the value (e.g. postalCode:^30).

How Does It Work?

Partially matching the condition(s) that you define allows you to take the visibility feature further.

Append Caret (^): Your condition will be matched (return true) if the visitor data property begins with the value you have specified.

Append Dollar Sign ($): Your condition will be matched (return true) if the visitor data property ends with the value you have specified.

How To Implement

Attribute Name
Attribute Value
Which Page Element?

data-geo-visibility

conditionName:conditionValue^

Any Element

data-geo-visibility

conditionName:conditionValue$

Any Element

The character must be added after the value and only one can be present at a time. If a caret and dollar sign are added, the first one will be treated as part of the value and break your condition. If you are setting multiple conditions, then the semicolon goes after the caret or dollar sign.

Examples

Attribute Value

postalCode:30^

Description

The element is visibile to everyone whose postal/ZIP code begins with "30".

Attribute Value

postalCode:50$

Description

The element is visibile to everyone whose postal/ZIP code ends with "50".

Attribute Value

language:en^

Description

The element is displayed to visitors whose primary browser language begins with "en".

Attribute Value

referer:ca$

Description

The element is displayed to visitors that came from a website that ends with "ca".

Last updated

Was this helpful?