SaleAssist for Developers
HomeDashboardAPI DocsBook A Demo
  • 👋Welcome
  • Introduction
  • Onboarding Steps
  • Admin Account Creation
  • Getting Started
  • Features Overview
    • Live Video Calling
      • Outbound Calls
        • Schedule Video Meets
        • Instant Video Meets
      • Inbound Calls
        • How to use ?
        • Integration
        • Desktop Call Management
    • Live Stream Selling
      • How to go Live?
      • Get RTMP and Stream Key from social channels.
    • Shoppable Videos Tiles
      • How to use?
      • Integration
    • Strike
      • AI Videos
    • Co-Browsing
  • Integration Guide
    • Mobile SDK integration
      • Cobrowse - Flutter SDK
      • React Native SDK
      • IOS SDK
      • Android SDK
      • How to delete my account?
      • Cobrowse - Android SDK
      • Cobrowse - IOS SDK
      • Identify your devices for Cobrowse
      • Use 6-digit codes
      • Redact sensitive data
      • Start and Stop Cobrowsing
      • Listening for events
    • User Experience
    • Agent Mapping
    • Nudges
    • Agent Feedback
    • AI Chat (Add Context)
    • API Integration
    • Webhook Integration
    • FAQ & Troubleshooting
    • Lead Management
    • Task Management
    • SaleAssist Whatsapp Feature
    • Sales/Conversion Tracking - Widget
    • Sales/Conversion Tracking - Video Tiles
    • Integrate meetings lite dashboard
  • Assets Managment
    • Media
    • Products
    • Orders
  • Organization Settings
    • Profile
    • Organization
    • Users & Roles
    • SMTP Integration
    • Custom Domain
    • Notification Manager
  • Addons
    • Transcription & Summarization
    • Video QR Codes
    • Video Emails
    • Live Chat
    • Outbound Phone Calling
    • Book In-store appointment
    • Schedule Call
    • Shoppable Video Links
      • How to use?
      • Integration
    • Video FAQs
      • How to use?
      • Integration
    • WhatsApp Onboarding steps
  • Analytics
    • Widget Insights
    • Video tiles insights
    • Reporting
    • SaleAssist Mobile Application
    • How to manage calls on Mobile Application
    • Admin Controls
  • Troubleshooting
    • Troubleshoot Video Call Permissions
  • Release Logs
    • v24.11.24
    • v24.11.30
    • v24.12.10
    • v25.01.10
    • v25.01.18
    • v25.01.29
    • v25.02.05
    • v25.02.05
Powered by GitBook
On this page

Was this helpful?

  1. Integration Guide

Sales/Conversion Tracking - Video Tiles

Track User Journey along with Conversions on your website via SaleAssist Video Tiles.

PreviousSales/Conversion Tracking - WidgetNextIntegrate meetings lite dashboard

Last updated 11 months ago

Was this helpful?

‘eventCaller’ Function Documentation

Description

The eventCaller function is a utility function in JavaScript that allows you to trigger custom events with specific data. It takes an event name as a string and an optional data object as parameters. When called, the eventCaller function dispatches a custom event with the given name and the provided data, making it possible to capture custom events in your JavaScript applications.

Parameters

  • eventName (String): The name of the custom event to be dispatched. It should be a string representing the event's name.

  • data (Objectl): A data object to be passed along with the custom event. This data can be used by event listeners to access additional information related to the event.

Usage

Here's an example of how to use the eventCaller function for Product Click:

// Example: Triggering an event with data const eventData = { 'actionField': {'list': 'Search Results'}, // Optional list property. 'products': [{ 'name': productObj.name, // Name or ID is required. 'id': productObj.id, 'price': productObj.price, 'brand': productObj.brand, 'category': productObj.cat, 'variant': productObj.variant, 'position': productObj.position }],

'source_referrer': 'domain.com' }; saleassistVideoTiles.track("{playlistId}", "productClick", eventData);

Here's an example of how to use the eventCaller function for Product Detail:

// Example: Triggering an event with data const eventData = { 'actionField': {'list': 'Apparel Gallery'}, // 'detail' actions have an optional list property. 'products': [{ 'name': 'Triblend Android T-Shirt', // Name or ID is required. 'id': '12345', 'price': '15.25', 'brand': 'Google', 'category': 'Apparel', 'variant': 'Gray' }] }; saleassistVideoTiles.track("{playlistId}", "productDetail", eventData);

Here's an example of how to use the eventCaller function for Add To Cart:

// Example: Triggering an event with data const eventData = { 'currencyCode': 'EUR', 'add': { // 'add' actionFieldObject measures. 'products': [{ // adding a product to a shopping cart. 'name': 'Triblend Android T-Shirt', 'id': '12345', 'price': '15.25', 'brand': 'Google', 'category': 'Apparel', 'variant': 'Gray', 'quantity': 1 }] },

'source_referrer': 'domain.com' }; saleassistVideoTiles.track("{playlistId}", "addToCart", eventData);

Here's an example of how to use the eventCaller function for Promotion Clicks:

// Example: Triggering an event with data const eventData = { 'promotions': [ // Array of promoFieldObjects. { 'id': 'JUNE_PROMO13', // ID or Name is required. 'name': 'June Sale', 'creative': 'banner1', 'position': 'slot1' }]

}; saleassistVideoTiles.track("promotionClick", eventData);

Here's an example of how to use the eventCaller function for Checkout:

// Example: Triggering an event with data const eventData ={ 'actionField': {'step': 1, 'option': 'Visa'}, 'products': [{ 'name': 'Triblend Android T-Shirt', 'id': '12345', 'price': '15.25', 'brand': 'Google', 'category': 'Apparel', 'variant': 'Gray', 'quantity': 1 }] }; saleassistVideoTiles.track("{playlistId}", "checkout", eventData);

Here's an example of how to use the eventCaller function for Measuring Purchases:

// Example: Triggering an event with data const eventData ={ 'actionField': { 'id': 'T12345', // Transaction ID. Required for purchases and refunds. 'affiliation': 'Online Store', 'revenue': '35.43', // Total transaction value (incl. tax and shipping) 'tax':'4.90', 'shipping': '5.99', 'coupon': 'SUMMER_SALE' }, 'products': [{ // List of productFieldObjects. 'name': 'Triblend Android T-Shirt', // Name or ID is required. 'id': '12345', 'price': '15.25', 'brand': 'Google', 'category': 'Apparel', 'variant': 'Gray', 'quantity': 1, 'coupon': '' // Optional fields may be omitted or set to empty string. }, { 'name': 'Donut Friday Scented T-Shirt', 'id': '67890', 'price': '33.75', 'brand': 'Google', 'category': 'Apparel', 'variant': 'Black', 'quantity': 1 }] }; saleassistVideoTiles.track("{playlistId}", "purchase", eventData);

Here's an example of how to use the eventCaller function for Measuring Refunds:

// Example: Triggering an event with data const eventData ={ 'actionField': {'id': 'T12345'} // Transaction ID. Required for purchases and refunds. }; saleassistVideoTiles.track("refund", eventData);

Here's an example of how to use the eventCaller function for Partial Refunds:

// Example: Triggering an event with data const eventData ={ 'actionField': {'id': 'T12345'}, // Transaction ID. 'products': [ {'id': 'P4567', 'quantity': 1}, // Product ID and quantity. Required for partial refunds. {'id': 'P8901','quantity': 2} ] }; saleassistVideoTiles.track("{playlistId}", "refund", eventData);

Thank you !!!

Questions?

Please feel free to reach out via support@saleassist.ai if you need any help.

Sales Conversion Tracking