window.postMessage() to post event from the embedded iframe to the parent hosting site, for more information see Window.postMessage()
Example of using an event:
name attribute, In addition all events will send:
accountId- Your account IDprojectId- Your project IDanonymousId- Viewer ID
Core Events
| Event Name | Description |
|---|---|
tolstoyStarted | Start button clicked for the first time |
pageView | Page viewed |
embedView | Element in view |
videoLoaded | Video starts to play |
videoPause | Video paused |
videoResume | Video resumed |
videoReplay | Video replayed |
videoSeeked | Video seeked |
videoUnmuted | Video unmuted |
videoWatched | Video watched completion event |
feedPlay | Feed started playing |
feedPause | Feed paused |
feedScroll | Swipe to next video |
clickViewProduct | Click to view product details |
shareClick | Share clicked |
tolstoyProductCardClick | Product card clicked |
tolstoyAddToCart | Add to cart triggered |
Widget Lifecycle Events
| Event Name | Description |
|---|---|
tolstoyWidgetReady | Widget ready |
tolstoyWidgetOpen | Widget opened |
tolstoyWidgetClose | Widget closed |
tolstoyModalClose | Modal closed |
Interactive Events
| Event Name | Description |
|---|---|
tolstoyAnswerClicked | CTA button clicked |
tolstoyInputSubmit | Form input submitted |
tolstoyLeadFormSubmit | Lead form submitted |
tolstoyReachedEnd | User reached end |