Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Ecommerce Events
  • Overview
  • Getting Started
  • Usage - Device Mode
  • Usage - Cloud Mode
  • Events
    • Account Events
    • Cart & Checkout Events
    • Product Events
    • Promotion & Coupon Events
    • Wishlist Events
  1. Ecommerce Events

Getting Started

This guide will walk you through the process of integrating with our E-commerce events system. Whether you're working on the client-side with our Device Mode or on the server-side with Cloud Mode, you'll find the essential steps to get up and running quickly.

Choosing Your Integration Mode#

First, decide which integration mode is right for your application's needs:
Device Mode: Ideal for capturing events directly from the user's browser or mobile app. Choose this mode for client-side analytics, marketing automation, or real-time user interface reactions.
Cloud Mode: Best suited for server-side applications that need to react to events occurring on our platform. This mode is perfect for backend services such as order management, fulfillment, and custom data processing.

Device Mode Integration#

Follow these steps to integrate with our E-commerce events in Device Mode. For a complete, step-by-step guide on setting up, customizing, and publishing your tracker.js script, refer to the Usage - Device Mode.

1. Include the tracker.js Script#

As detailed in the Usage - Device Mode, you will include your custom-built tracker.js script in your website's HTML, typically within the <head> section.

2. Listen for Events#

Once your tracker.js script is loaded and configured, you can listen for E-commerce events using standard browser event listeners. Your custom logic within the tracker.js will define how these events are processed.

3. Available Events#

For a comprehensive list of all available E-commerce events, including their properties and example payloads, please refer to the documentation within the Events directory.

Cloud Mode Integration (App Functions)#

Cloud Mode offers a powerful server-to-server integration for processing E-commerce events directly through your App Functions. This method is highly reliable as events are delivered from our platform directly to your backend, eliminating client-side dependencies.
For a detailed walkthrough on how to set up, configure, and develop your App Functions to consume E-commerce events, please refer to the dedicated Usage - Cloud Mode. This guide will cover:
Enabling App Functions for your application.
Receiving and parsing event payloads.
Implementing custom business logic in response to events.
Testing and deployment of your App Functions.
Modified at 2025-11-27 13:04:50
Previous
Overview
Next
Usage - Device Mode