---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/segment/connections/destinations/catalog/shareasale#article
headline: ShareASale Destination
description: Connect the ShareASale destination in Segment to create affiliate leads from Identify calls and Track Order Completed conversion events client-side.
url: https://www.twilio.com/docs/segment/connections/destinations/catalog/shareasale
inLanguage: en
dateModified: 2026-07-03T01:00:45.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# ShareASale Destination

## Destination Info

* Accepts [Identify](/docs/segment/connections/spec/identify), [Track](/docs/segment/connections/spec/track) calls.
* Refer to it as **ShareASale** in the [Integrations object.](/docs/segment/guides/filtering-data/#filtering-with-the-integrations-object)

### Components

* [Browser](https://github.com/segment-integrations/analytics.js-integration-shareasale)

## Connection Modes

[Learn more about connection modes.](/docs/segment/connections/destinations/#connection-modes)

### Device-Mode

* web: yes
* mobile: no
* server: no

### Cloud-Mode

* web: no
* mobile: no
* server: no

ShareASale is an affiliate marketing network. The ShareASale destination is supported only on the client-side through Analytics.js.

## Getting started

To enable ShareASale, turn it on in the Segment web app. When you enable ShareASale in the Segment web app, your changes appear in the Segment CDN in about 45 minutes, and then Analytics.js starts asynchronously loading the ShareASale tag onto your page. This means you should remove ShareASale's snippet from your page.

Your ShareASale sidebar will begin appearing for your team.

## Identify

When you call [Identify](/docs/segment/connections/spec/identify/) on analytics.js and you have enabled "Create Leads" in the advanced options, then we will create a lead for the user with the `userId` that you specify. Note that if the `userId` is not specified, then no lead is created.

## Track

ShareASale only supports the event "Order Completed", which requires the following properties:

* `orderId`
* `total` or `subtotal`
* an optional `repeat` property to signify whether a customer has bought from you before. Valid values for this property are `true` or `false`.

## Settings

Segment lets you change these destination settings from the Segment app without having to touch any code.

| Field               | Description                                                                                                                                                                                                            | Required | Type    |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |
| Create Leads        | This will create leads in ShareaSale for \[\`identify\` method]\(/docs/segment/connections/sources/catalog/libraries/website/javascript/#identify) calls that have a \`userID\` associated with them.                  | No       | boolean |
| Merchant ID         | The \`merchantId\` given to you by your ShareASale account manager.                                                                                                                                                    | Yes      | string  |
| Use total as amount | By default, we set the \`amount\` as the subtotal without the discount, but this might cause problems for sources like Shopify. If you need to provide the amount in the total property directly, enable this setting. | No       | boolean |
