Geo Visibility
Set the visibility of any element on the current page, based on one or more conditions you have defined with the visitor data properties.
How Does It Work?
Geoflow evaluates the conditions defined in the Geo Visibility data attribute against the visitor data properties. If the conditions match (returns true), the element will become visible. Otherwise, the hidden attribute will be applied to the element.
How To Implement
Attribute Name | Attribute Value | Which Page Element? |
---|---|---|
data-geo-visibility | conditionName:conditionValue | Any Element |
The condition name is case-sensitive and must match the 'Property Variable' for that visitor data property in the Visitor Data Properties table.
The case sensitivity and validity for the condition value depend on the data type. For example, when defining a condition based on a country code, the value must be an ISO Alpha-2 Code.
Examples
countryCode:AU
The element is only visible to visitors currently in the country Australia (AU).
isMobile:true;countryCode:CA
The element is visible to mobile visitors or anyone currently in Canada.
language:fr
The element is only visible if the primary browser language is set to French.
deviceType:Desktop;isEU:true
The element is only visible to visitors in the European Union or desktop computer users.
Explore Further
Define Multiple ConditionsMatch All ConditionsPartially Match ConditionReverse Condition ValueCustom ClassesLast updated
Was this helpful?