🌎
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
  2. Geo Visibility

Partially Match Condition

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

PreviousMatch All ConditionsNextReverse Condition Value

Last updated 1 year ago

Was this helpful?

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
Description
Attribute Value
Description
Attribute Value
Description
Attribute Value
Description

postalCode:30^

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

postalCode:50$

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

language:en^

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

referer:ca$

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

⭐
Page cover image