🌎
Geoflow Docs
  • 🌎Welcome to Geoflow
  • 🔍Overview
    • Visitor Data Properties
  • ⭐Features
    • Geo Visibility
      • Define Multiple Conditions
      • Match All Conditions
      • Partially Match Condition
      • Reverse Condition Value
      • Custom Classes
    • Geo Form
      • Autofill Form Fields
      • Auto-Populate Select Fields
    • Geo Text
    • Geo Style
    • Geo Script
    • Script Extensions
      • Performance
      • Marketing Parameters
    • Optional Settings
      • Script Tag Data Attributes
      • Meta Tags
  • ⚙️Advanced
    • Code Snippets
    • Methods
      • run
      • getData
      • updateData
      • displayData
      • clearData
      • checkCondition
      • select
    • Callbacks
    • Events
    • REST API
      • Get Visitor IP
      • Get Visitor Data
      • Add Website
      • Delete Website
      • Update Website
      • List Websites
      • Get Website
  • 📄Legal
    • License Agreement
Powered by GitBook
  1. Features

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.

Last updated 1 month ago

Was this helpful?

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 .

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 .

Examples

Attribute Value
Description
Attribute Value
Description
Attribute Value
Description
Attribute Value
Description

Explore Further

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.

Visitor Data Properties table
ISO Alpha-2 Code
Define Multiple Conditions
Match All Conditions
Partially Match Condition
Reverse Condition Value
Custom Classes
⭐
Page cover image