---
title: How do I track e-commerce events and user activity on Sendlane for Opensend contacts?
description: This guide helps you set up a custom integration in Sendlane's dashboard, allowing you to implement cookie sync between Opensend and Sendlane to track e-commerce events and user activity.
---

[Skip to content](https://help.opensend.com/how-do-i-track-e-commerce-events-and-user-activity-on-sendlane-for-opensend-contacts#main-content)

[Contact Support](https://help.opensend.com/kb-tickets/new?hsLang=en)

[![Logo Black.png\]](https://help.opensend.com/hs-fs/hubfs/Logo%20Black.png?height=33&name=Logo%20Black.png)](https://opensend.com/)

Open main navigation

Close main navigation

- [Contact Support](https://help.opensend.com/kb-tickets/new)
- [Return to opensend.com](https://opensend.com/)

[Return to opensend.com](https://opensend.com/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Success Center](https://help.opensend.com/?hsLang=en)
2. [Integrations](https://help.opensend.com/integrations?hsLang=en)
3. [Sendlane](https://help.opensend.com/integrations?hsLang=en#sendlane)

# How do I track e-commerce events and user activity on Sendlane for Opensend contacts?

## This guide helps you set up a custom integration in Sendlane's dashboard, allowing you to implement cookie sync between Opensend and Sendlane to track e-commerce events and user activity.

### **Log in to Sendlane**

1. Go to the Sendlane [login page](https://auth.sendlane.com/login).
2. Enter your credentials (email and password) and click **Login**.

### **Accessing the API Settings**

1. Click on the Account Gear icon
2. Click on **Integrations**
   
   ![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-02-55-42-7710-AM.png?width=688&height=475&name=image-png-Sep-22-2024-02-55-42-7710-AM.png)
3. On the Integrations page, locate and select the **Custom Integrations** section.
   
   ![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-02-57-24-5033-AM.png?width=688&height=287&name=image-png-Sep-22-2024-02-57-24-5033-AM.png)

### **Embed Active on Site Script to your website**

#### **If you are already using Custom integration with an existing token follow the steps below to sync the events tracking for Opensend contacts**

1. Go to **Integrations**
2. Select **Custom Integration**
3. Create a new custom integration and name Store as **Opensend (not any other name)**
4. Select your default **Opensend list** where contacts will be synced and click on the **Save** button

**In this case, there is no need to add Javascript code to the website since it would overwrite your original setup for custom integration. You only need to create a new integration called Opensend.**

---

#### **If you are already using Beacon tracking follow the steps below to sync the events tracking for Opensend contacts**

1. Go to **Integrations**
2. Select **Custom Integration** from the available options.
3. Create a new custom integration and name Store as **Opensend (not any other name)**
4. Select your default **Opensend List** where contacts will be synced to
5. Copy the tracking code from the **Opensend Custom Integration**
   
   ```
   <script src="https://sendlane.com/scripts/pusher.js" async data-token="tokenthatyouhaveincustomintegration"></script>
   ```
6. Click on the **Save** button

**Note:**

#### Original Beacon Script:

Before making any changes, your existing Beacon script looks like this: 

```
<script>window._Sendlane = window._Sendlane || [];</script><script src="https://sendlane.com/scripts/pusher.js" async></script><script>_Sendlane.push({    event_id: 'XXXXXXXXXXXXXX'});</script>
```

#### Instructions to Modify:

- Locate the second `<script>` tag in your original Beacon script:
  
  ```
  <script src="https://sendlane.com/scripts/pusher.js" async></script>
  ```
- Replace it with the following code, that you previously copied in the last step from your **Opensend Custom Integration:**

```
<script src="https://sendlane.com/scripts/pusher.js" async data-token="tokenthatyouhaveincustomintegration"></script>
```

This update ensures that your Beacon tracking script now includes the necessary token for the Opensend integration.

#### Modified Beacon Script:

**Your Beacon code should look like this after updates are made, copy the adjusted code to replace in the header of your website** 

```
<script><script>window._Sendlane = window._Sendlane || [];</script><script src="https://sendlane.com/scripts/pusher.js" async data-token="tokenthatyouhaveincustomintegration"></script><script>_Sendlane.push({    event_id: 'XXXXXXXXXX'});</script>
```

---

#### If you are not using Custom integration or Beacon tracking

1. Go to **Integrations**
2. Select **Custom Integration** from the available options.
3. Create a new custom integration and name Store as **Opensend (not any other name)**
4. In the Store Settings, select **Opensend list** to sync new contacts
5. Click Continue  
   ![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-03-42-07-3522-AM.png?width=461&height=509&name=image-png-Sep-22-2024-03-42-07-3522-AM.png)
6. Copy the **Code Script** to add to your Store website to activate **cookie sync** between Opensend and Sendlane. This script contains the **Integration Token** which will allow Opensend to retrieve historical activities of all contacts in the custom **List** selected above.
   
   ![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-03-44-12-3486-AM.png?width=477&height=444&name=image-png-Sep-22-2024-03-44-12-3486-AM.png)

#### **Use Beacon event tracking**

1. Go to Beacon and click on Get Beacon Code

![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-29-2024-10-19-00-7729-PM.png?width=687&height=359&name=image-png-Sep-29-2024-10-19-00-7729-PM.png)

2\. Copy Beacon code

![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-29-2024-10-19-37-4650-PM.png?width=688&height=375&name=image-png-Sep-29-2024-10-19-37-4650-PM.png)

#### Original Beacon Script:

Before making any changes, your existing Beacon script looks like this: 

```
<script>window._Sendlane = window._Sendlane || [];</script><script src="https://sendlane.com/scripts/pusher.js" async></script><script>_Sendlane.push({    event_id: 'XXXXXXXXXXXXXX'});</script>
```

#### Instructions to Modify:

- Locate the second `<script>` tag in your original Beacon script:
  
  ```
  <script src="https://sendlane.com/scripts/pusher.js" async></script>
  ```
- Replace it with the following code, that you previously copied in the last step from your **Opensend Custom Integration:**

```
<script src="https://sendlane.com/scripts/pusher.js" async data-token="tokenthatyouhaveincustomintegration"></script>
```

This update ensures that your Beacon tracking script now includes the necessary token for the Opensend integration.

#### Modified Beacon Script:

**Your Beacon code should look like this after updates are made, copy the adjusted code to replace in the header of your website** 

```
<script><script>window._Sendlane = window._Sendlane || [];</script><script src="https://sendlane.com/scripts/pusher.js" async data-token="tokenthatyouhaveincustomintegration"></script><script>_Sendlane.push({    event_id: 'XXXXXXXXXX'});</script>
```

#### Creating and tracking custom events using Beacon

1. Go to **Beacon** and click on the **Create Event** button
   
   ![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-03-51-38-7494-AM.png?width=654&height=274&name=image-png-Sep-22-2024-03-51-38-7494-AM.png)
2. Enter a **Name** and **Description** for your **Event** (In our example it is a viewed product page) and click on **Save**
   
   ![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-03-56-57-6132-AM.png?width=471&height=492&name=image-png-Sep-22-2024-03-56-57-6132-AM.png)
3. Click on **Get code** button
   
   ![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-03-58-11-4810-AM.png?width=688&height=86&name=image-png-Sep-22-2024-03-58-11-4810-AM.png)
4. Copy and add **Event code** to the website code where you want to track this event
   
   ![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-03-58-57-8130-AM.png?width=555&height=566&name=image-png-Sep-22-2024-03-58-57-8130-AM.png)
5. After doing this, you will be able to track **Beacon custom events** that you created for your contacts with the help of Opensend cookie-sync.  
   Results in the **engagement screen** when a user visits a page containing a product for the event we created above:
   
   ![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-04-00-26-0060-AM.png?width=688&height=100&name=image-png-Sep-22-2024-04-00-26-0060-AM.png)

#### Start using custom events to trigger email flows for Opensend contacts

Once the embedded the relevant Active on Site Script to your website for cookie-sync, you can use all the custom events as a result of our cookie-sync to trigger any flows in Sendlane for Opensend contacts  ![:tada:](https://informedoutreach.atlassian.net/gateway/api/emoji/03be757e-1632-4bd5-a0bc-e27fac0e2907/1f389/path) 

**Example:**

**![](https://help.opensend.com/hs-fs/hubfs/image-png-Sep-22-2024-04-04-48-3580-AM.png?width=688&height=242&name=image-png-Sep-22-2024-04-04-48-3580-AM.png)**

- [Getting started](https://help.opensend.com/getting-started?hsLang=en#main-content)

    - [Start Here!](https://help.opensend.com/getting-started?hsLang=en#start-here)
    - [Installation and Setup](https://help.opensend.com/getting-started?hsLang=en#installation-and-setup)
    - [CNAME Setup](https://help.opensend.com/getting-started?hsLang=en#cname-setup)
    - [Opensend SDK](https://help.opensend.com/getting-started?hsLang=en#opensend-sdk)
- [Best Practices to Maximize Revenues](https://help.opensend.com/best-practices-to-maximize-revenues?hsLang=en#main-content)

    - [Direct-to-consumer](https://help.opensend.com/best-practices-to-maximize-revenues?hsLang=en#direct-to-consumer)
    - [Business-to-business](https://help.opensend.com/best-practices-to-maximize-revenues?hsLang=en#business-to-business)
    - [Deliverability](https://help.opensend.com/best-practices-to-maximize-revenues?hsLang=en#deliverability)
- [Dashboards & Reports](https://help.opensend.com/dashboards-reports?hsLang=en#main-content)

    - [Klaviyo Reports](https://help.opensend.com/dashboards-reports?hsLang=en#klaviyo-reports)
    - [Iterable Reports](https://help.opensend.com/dashboards-reports?hsLang=en#iterable-reports)
- [Reconnect](https://help.opensend.com/reconnect?hsLang=en#main-content)

    - [Klaviyo](https://help.opensend.com/reconnect?hsLang=en#klaviyo)
    - [Iterable](https://help.opensend.com/reconnect?hsLang=en#iterable)
    - [Bloomreach](https://help.opensend.com/reconnect?hsLang=en#bloomreach)
    - [Attentive](https://help.opensend.com/reconnect?hsLang=en#attentive)
    - [Salesforce Marketing Cloud](https://help.opensend.com/reconnect?hsLang=en#salesforce-marketing-cloud)
- [Personas](https://help.opensend.com/personas?hsLang=en)
- [Revive](https://help.opensend.com/revive?hsLang=en)
- [Integrations](https://help.opensend.com/integrations?hsLang=en#main-content)

    - [API Keys and Account IDs](https://help.opensend.com/integrations?hsLang=en#api-keys-and-account-ids)
    - [Bloomreach](https://help.opensend.com/integrations?hsLang=en#bloomreach)
    - [Braze](https://help.opensend.com/integrations?hsLang=en#braze)
    - [Facebook](https://help.opensend.com/integrations?hsLang=en#facebook)
    - [Google](https://help.opensend.com/integrations?hsLang=en#google)
    - [Iterable](https://help.opensend.com/integrations?hsLang=en#iterable)
    - [Klaviyo](https://help.opensend.com/integrations?hsLang=en#klaviyo)
    - [Listrak](https://help.opensend.com/integrations?hsLang=en#listrak)
    - [Sendlane](https://help.opensend.com/integrations?hsLang=en#sendlane)
    - [Suppression List](https://help.opensend.com/integrations?hsLang=en#suppression-list)
    - [Webhook](https://help.opensend.com/integrations?hsLang=en#webhook)
    - [Yotpo](https://help.opensend.com/integrations?hsLang=en#yotpo)
    - [Zapier](https://help.opensend.com/integrations?hsLang=en#zapier)
    - [Attentive](https://help.opensend.com/integrations?hsLang=en#attentive)
    - [Salesforce Marketing Cloud](https://help.opensend.com/integrations?hsLang=en#salesforce-marketing-cloud)
- [FAQs](https://help.opensend.com/faqs?hsLang=en)
- [General](https://help.opensend.com/general?hsLang=en)

[![Chill listening crop-3](https://help.opensend.com/hs-fs/hubfs/OpenSend_Logo%20icon%202.png?width=42&height=42&name=OpenSend_Logo%20icon%202.png "Chill listening crop-3")](https://www.opensend.com/)

Opensend Help Center

Copyright © 2026, Opensend Inc