JavaScript Events
How to leverage JavaScript events exposed by Spara.
Spara's JavaScript embed snippet exposes two events to the DOM:
Spara.onSparaLoad()
fires when Spara's embed script finishes executingSpara.onUserMessageSent()
fires when a lead sends message to Spara
These can be used however you like. For example, by pushing these events to your window's data layer for ingestion by Google Analytics.
To access these Javascript events, you will need to add an additional script to your website's <head>:
Last updated