🌎
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

Callbacks

Geoflow triggers the following callbacks and can be accessed anywhere on the page, allowing you to add custom functionality.

Callback Name
Callback Description

Geoflow_Ready

The asynchronous callback is triggered when the visitor data properties are ready.

Geoflow_Error

The asynchronous callback is triggered when an error was thrown while the visitor data properties were being fetched.

Geoflow_Updated

The asynchronous callback is triggered when the 'geoflow' object has been successfully updated after the updateData method is called.

Geoflow_ExtComplete

The asynchronous callback is triggered when a script extension has finished running. The extension name is passed as a function parameter.

Developer Tip: When using the Geoflow_Ready and Geoflow_Updated callbacks, the current Geoflow object can also be accessed through the function parameter.

Examples

function Geoflow_Ready(geoflow) {

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

}

function Geoflow_Error(error) {

    console.error('Geoflow Error!', error);

}

function Geoflow_Updated(geoflow) {

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

}

function Geoflow_ExtComplete(extName) {

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

}
PreviousselectNextEvents

Last updated 1 year ago

Was this helpful?

⚙️
Page cover image