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
Fires when the 'geoflow' object has been successfully updated after the updateData() method is called.
geoflowExtComplete
Fires when a script extension has finished running. The extension name can be accessed on 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);
});
Last updated
Was this helpful?