Webshop integration

Server-side tracking for Lightspeed eCom

Connect a Lightspeed eCom API key, press Create webhook, and every paid order goes to your ad platforms from the server. A tracking snippet links each order to the ad click.

Lightspeed at a glance
Orders arrive byWebhook (orders updated) plus polling every 5 minutes
Webhook setupAutomatic, with the Create webhook button
CredentialsAPI key and secret with read access to orders, region (eu or us) and shop language
Paid ordersPayment status paid
Thank-you snippetTracking box, using {{ order.information.number }}

How Lightspeed connects

  1. Settings › Website settings › Web extras › Custom JavaScript: paste the ROASaurus script tag.
  2. On the same page, switch the Tracking box on and paste the thank-you snippet. It fires the ROASaurus purchase with the order number, total, currency and customer email.
  3. Back office › Settings › Store settings › Developers › New API key, with read access to orders, and enable the key.
  4. In ROASaurus, enter the API key and secret, the region (eu for webshopapp.com or us for shoplightspeed.com) and the language code in your API URLs, such as nl, en or de.
  5. Save, then press Create webhook.

What Create webhook does

ROASaurus registers an orders updated webhook in Lightspeed. Webhooks created with an API key are not signed, so each one carries a token unique to your store in its URL, and ROASaurus re-fetches the order from the API instead of trusting the payload. It also checks for updated orders every 5 minutes.

What ROASaurus reads from each order

The order number, which is also what the thank-you page shows, the total including tax, currency, email, phone, name, billing city, zip and country, the customer id and the products. Lightspeed orders also include the shopper's IP address and user agent, so when the snippet is missing, ROASaurus can still match on the same IP and browser, but only when exactly one visitor fits.

Limits

  • The connector uses the Lightspeed eCom (C-Series) API, on the eu and us clusters.
  • Only orders with payment status paid are sent. Orders paid later arrive with the next update or the 5-minute check.
  • The connector is built from the platform's official API documentation. Press Test connection after saving your credentials, then place a test order and check the Event log.

Related

FAQ

Questions, answered

Which Lightspeed product is supported?

Lightspeed eCom (C-Series), through its API on webshopapp.com (eu) or shoplightspeed.com (us). Pick the region that matches your back office.

Why do I need the language code?

Lightspeed eCom API URLs include the shop language, for example /nl/ or /en/. Use the one your shop's API URLs use.

What does the Tracking snippet add?

It fires a purchase with the Lightspeed order number on the thank-you page, which links the order to the visitor and their ad click. It also passes the total, currency and email.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. 14-day free trial, no credit card.

Start your free trial →