Skip to main content

How to manually create links and track referrals using the "Link ID" (sacode) URL parameters

This method allows you or your affiliate to append a special tracking parameter (?sacode=) to any URL from your store.

Milos avatar
Written by Milos
Updated this week

This guide explains a powerful and flexible way to create trackable referral links for any page on your store, such as a specific product, collection, or blog post.

Note: This process is for creating manual links to specific pages. It is different from the "Custom Link" feature, which is used to change the appearance of a link (e.g., from .../o?id=e82c1s to .../affiliate2).

What is the "Link ID" (sacode)?

Every referral link in your program—whether it's a "Standard" or "Custom" link—has a unique "Link ID." This ID is the core tracking code our system uses to assign a referral to that specific link.

When used as a URL parameter, this ID is referred to as the sacode. Thanks to a recent update, you can now see this ID directly in the affiliate's profile, making it easy to copy and paste.

How to Find a referral link's "Link ID"

  1. Navigate to the "Affiliates" Section From your main merchant dashboard, go to the "Affiliates" section.

  2. Select an Affiliate Find the affiliate you want to create a link for and click on their name to open their profile details.

  3. Locate the "Link ID" Scroll down to the "Referral links" section. In the table of their links, you will see a column labeled "Link ID." The short, alphanumeric code in this column (e.g., 36of96, e82c1s, stgrc9) is the unique ID for that link.

  4. An affiliate may have multiple referral links, and each has its own Link ID. You can use the 'Link ID' from any of their links to create a new manual link; they will all correctly credit the affiliate.

How to Build a Manual Link with the "Link ID"

Once you have copied the affiliate's Link ID, you can append it to any URL on your store. The format you use depends on whether the destination URL already has a question mark (?) in it.

Scenario 1: The URL has no existing ?

This is the most common scenario. Simply add ?sacode= followed by the affiliate's Link ID to the end of the URL.

Example:

Scenario 2: The URL already has a ? (e.g., a collection with sorting)

If the URL already contains a ? (often used for collection sorting, search results, or variants), you must use an ampersand (&) instead to add the tracking code.

Example:

This method gives you and your affiliates the flexibility to create precise, targeted campaigns to any page on your site, ensuring that the referral is tracked accurately every time.

Did this answer your question?