Page cover image

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)

Last updated

Was this helpful?