This preview of pull request 1639 is meant for internal use only.

ShareASale Destination

ShareASale quick info

ShareASale accepts Track, and Identify calls. If you reference it in the Integrations object, call it “ShareASale”.

ShareASale accepts device-mode data only from Analytics.js.

Getting Started

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.

ShareASale is a destination that is only supported on the client-side.

Identify

When you call 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.

Supported Sources and Connection Modes

Before you start, make sure ShareASale supports the source type and connection mode you’ve chosen to implement. You can learn more about connection modes here.

Web Mobile Server
📱 Device-mode ⬜️ ⬜️
☁️ Cloud-mode ⬜️ ⬜️ ⬜️

Settings

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

Create Leads

This will create leads in ShareaSale for identify method calls that have a userID associated with them.

Merchant ID

The merchantId given to you by your ShareASale account manager.

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.

This page was last modified: 20 Oct 2020



Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
or
Create free account