🌎
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. Advanced
  2. Methods

updateData

Use this to override any visitor data property, simulating what different visitors may experience on your website.

Description

This method allows you to change any visitor data property; the changes are reflected in the 'geoflow' JS object and session storage. One advantage to this is that it allows you to simulate what different visitors may experience on your Webflow website.

An object containing key-value pairs of visitor data properties, separated by commas, is accepted. Each key-value pair consists of a propertyName (e.g. countryCode) as the key and its corresponding propertyValue (e.g. US) as the value. Both are treated as strings.

The geoflowUpdated event will be fired, and the Geoflow_Updated callback will be triggered.

Parameters

{ propertyName (string key): propertyValue (string) }

Using This Method

geoflow.updateData({ countryCode: 'US' });

Output

true (boolean)
PreviousgetDataNextdisplayData

Last updated 1 year ago

Was this helpful?

⚙️
Page cover image