🌎
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

Events

Geoflow fires the following events on the window object and can be accessed anywhere on the page, allowing you to add custom functionality.

Event Name
Event Description

geoflowReady

Fires when the visitor data properties are ready.

geoflowError

Fires when an error was thrown while the visitor data properties were being fetched (e.g. due to a server error).

geoflowUpdated

geoflowExtComplete

Fires when a script extension has finished running. The extension name can be accessed on the event's detail property.

Developer Tip: When listening for the geoflowReady and geoflowUpdated events, the current 'geoflow' object can also be accessed through the event's detail property.

Examples

window.addEventListener('geoflowReady', function (e) {

    console.log('Geoflow Is Ready!', e.detail);

});

window.addEventListener('geoflowError', function (e) {

    console.log('Geoflow Error!', e.detail);

});

window.addEventListener('geoflowUpdated', function (e) {

    console.log('Geoflow Was Updated!', e.detail);

});

window.addEventListener('geoflowExtComplete', function (e) {

    console.log('This Script Extension Finished Running:', e.detail);

});
PreviousCallbacksNextREST API

Last updated 1 year ago

Was this helpful?

Fires when the 'geoflow' object has been successfully updated after the method is called.

updateData()
⚙️
Page cover image