Skip to main content
If you sell on Shopify, your store’s own domain is the most persuasive address an affiliate can share. Shopify short links use it: instead of a long tracking URL, affiliates share something like yourstore.com/jane, which redirects to the product page you chose with their tracking preserved. To a customer it looks like an ordinary link to your shop, because it is one. Referly builds these as URL redirects inside your Shopify store, and creates them for every affiliate automatically. To set them up, go to Settings, open Program details, select Automated short links, and choose Shopify Short Links under Short Link Type. shopify-short-links-panel

Connect your Shopify store first

The settings stay greyed out until Referly can talk to your store. If you see Shopify integration not connected with the line “Connect your Shopify store to use Shopify Short Links.”, select Connect Shopify and complete the connection. Once connected, the strip turns green and reads Shopify connected with your store name and “Ready to create URL redirects.” — Referly can now create redirects on your behalf. Trying to save without a connection gives you Please connect your Shopify store first. Short links are a Business-plan feature, so the option prompts you to upgrade on lower plans.
If your program is managed by an agency, Shopify short links may not be available. Agencies can switch off Shopify short links for the programs they manage, in which case the Shopify Short Links option doesn’t appear and saving it anyway returns Your agency has disabled Shopify short links for this program. Agencies can also switch off all automated short links, which hides the Automated short links page entirely.

Choose the landing pages to shorten

Select Landing Pages for Short Links lists the landing pages configured for your program. Select one or more — these are the destinations your short links will point at. If the list is empty, you’ll see a note that no landing page URLs are configured and to add at least one in your program details. Set those up in General program settings first, then come back.

Pick a primary page

Every selected page shows a Set as Primary button; the chosen one is badged Primary. The primary page’s path is what Referly uses to build the redirects in Shopify, unless a link is tied to a different page (see Where each short link goes). That matters if you select several pages. Because the redirect is generated from the primary page’s path, Referly recommends keeping the path portion the same across your landing pages so the short links behave consistently. If your pages point at genuinely different paths, keep it simple and select just one. Every selected page has a two-way switch that decides how short links to that page are created:
  • Connect to coupon(s) is the default. You connect one or more coupons to the page, and Referly creates a short link to it for each affiliate who has an auto-generated code on a connected coupon. Details are in the next section.
  • Create links for all affiliates gives every affiliate who has access to this page their own short link to it, whether or not they have a promo code. Affiliates who join later get one automatically too. You can’t connect coupons to a page in this mode.
Pick Create links for all affiliates when you want everyone to have a link to a page, such as your main shop page. Pick Connect to coupon(s) when a page goes with a particular discount.

Connect coupons to a page (optional)

With Connect to coupon(s) selected, the page shows Connected Coupons (optional), where you can search your Shopify coupons and attach one or more to that landing page. This links a discount to a destination — the coupon attached here is what gets applied when the auto-apply setting below is on. For each connected coupon, Referly creates one short link for every affiliate with an auto-generated code on it, and names the link after that code. An affiliate whose code is JANE10 gets a short link like yourstore.com/JANE10, and because the link is tied to the code, the discount can be applied for the customer automatically. A coupon can only be connected to one landing page at a time. If it’s already attached elsewhere, it appears in the list marked with the page that claimed it and can’t be selected twice. With Create links for all affiliates selected, you choose how each affiliate’s link is named instead of connecting coupons.
  • Link name structure: turn on any of First name, Last name, Email (the part before the @) and Random characters. When Random characters is on, a dropdown next to it sets how many to add, from 2 to 10. The default is first name plus 4 random characters.
  • Prefix: optional text added to the start of every link name, for example SHOP. Letters and numbers only.
  • Example: a preview of a finished link on your store’s domain, such as https://yourstore.com/JANEx7q4.
The parts are joined in that order with nothing between them. If you turn every part off, each affiliate gets a random link name instead. And if a name is already taken in your program, Referly adds three random digits to the end so every link stays unique. When you select several landing pages, Referly decides the destination of each short link separately, checking in this order:
  1. The page the link is tied to. Links made by Create links for all affiliates are tied to their page, and so are links that you or an affiliate connect to a landing page when creating them.
  2. The page of its promo code’s coupon. If the link is connected to a promo code, and that code’s coupon is connected to a page, the link goes there.
  3. Your primary page.
  4. The first of your selected pages the affiliate can see, if they can’t see the primary page.
Landing page restrictions are respected at every step. If you’ve limited a page to certain affiliates or groups in General program settings, affiliates outside that list never get a short link to it, and their links fall through to the next page they can see.

Auto-apply a discount code

Auto-Apply Discount Code sends the visitor through Shopify’s discount route so a code is applied for them, with no typing at checkout. It’s the single biggest reason to choose Shopify short links over the alternatives — a discount that applies itself converts better than one the customer has to remember. When it’s on, Referly works out which code to apply like this:
  1. If a coupon is connected to the landing page, it uses the affiliate’s own promo code under that coupon.
  2. Links without a connected promo code redirect straight to the landing page with no discount applied.
So if you want an affiliate’s link to carry a discount, make sure it’s connected to one of their promo codes, either through a coupon connected to the page or by connecting the code when the link is created. Show Only Matched Short URL narrows what each affiliate sees. With it on, an affiliate link shows only the short link for the landing page whose coupon matches that link’s promo code; if nothing matches, all the short links are shown as usual. Turn this on when you run several landing pages with different coupons and don’t want affiliates guessing which short link goes with which code. Leave it off if you’d rather affiliates always see every short link available to them.

Check the preview

Once a primary page is chosen, a Preview panel shows the round trip: what the Affiliate shares, and where the Customer lands on. short-link-preview If your primary page uses Create links for all affiliates, the Affiliate shares link follows your link name rule. Read it before saving. It’s the quickest way to confirm the redirect lands on the page you intended and carries the tracking parameters — and to catch a landing page path that isn’t what you assumed.

Save

Select Save Changes. You’ll see a confirmation explaining that the redirects are syncing in the background, which can take up to ten minutes.
Saving doesn’t create the redirects instantly. Referly writes one redirect per affiliate into your Shopify store in the background, so on a program with many affiliates the links won’t all resolve the moment you save. Give it up to ten minutes before testing.
Two other checks run when you save: Please select at least one landing page URL if you haven’t chosen a page, and Please select a primary base URL if none is marked primary.

Re-sync your redirects

Once Shopify short links are live, a Re-sync Redirects panel appears with the description “Force-update all Shopify redirects for this program”. resync-redirects Select Re-sync to rebuild every redirect. A progress bar tracks the run and reports how many were created and updated, plus any errors, finishing at Sync complete. Reach for this when the redirects and your settings have drifted apart — for example if someone edited or deleted redirects inside Shopify directly, if a batch failed earlier, or if links aren’t resolving after a change to your landing pages. It’s safe to run whenever you’re unsure; it updates what exists rather than duplicating it.

Turning it off

Switching Short Link Type back to Disabled removes the redirects from your Shopify store in the background, again taking up to ten minutes. Affiliates keep their normal full-length links, but any short link already published stops working — so warn your affiliates before turning it off on a live program.

Automated short links

Compare the short link types and choose the right one.

Referly short links

The alternative if you’re not on Shopify or want your own domain.

General program settings

Set the landing pages your short links redirect to.

Tracking methods

Turn on coupon tracking so discount codes credit the right affiliate.
Last modified on October 23, 2026