Shopify Cart Permalinks: Choose the Right Link for Your Campaign

By Milan Dhameliya · · 8 min read

Choose between Shopify /buy links, legacy /cart permalinks, and product pages, then test variants, discounts, and incomplete selections before a campaign goes live.

Shopify cart permalinks open a prefilled cart or checkout from a reusable link. Choose the current /buy format for a straightforward purchase when your store supports it, retain /cart when you need its supported customization fields, and use a product page when the shopper still needs to make choices.

That decision matters more than shortening the route to payment. A campaign for a specific mug is different from a campaign for a mug that needs an engraving, a gift message, or a subscription frequency. This guide helps your ecommerce team choose the destination, build a representative link, and decide whether it is ready to send.

Choose the purchase experience before the URL

Start with the promise in your email, ad, or customer-service message. Write down exactly what the customer has agreed to buy by the time they click. If the answer includes an unresolved size, finish, or personalization choice, I recommend keeping that choice visible on a product page.

For a fixed selection, Shopify's permalink comparison recommends the successor format by default. The older format remains supported, but will not receive new features. This is a compatibility decision, not a reason to replace every working campaign link immediately.

For example, imagine an email offering two matching espresso cups. A prefilled selection could be sensible if the email clearly identifies the color and quantity. For an engraved cup, first decide where the customer supplies and reviews the engraving. Do not approve the faster route until somebody has followed the personalization all the way into the order.

Apply the same thinking to the review step. Our cart page versus drawer guide explains when customers need more room to check their purchase. A shorter journey is useful only if it preserves the information needed to buy confidently.

Build one representative link

For a basic link created in the admin

Shopify's merchant instructions document an admin route when the Buy Button channel is installed: open Products, select the product, then choose More actions > Create checkout link. Select the variant and copy the link. This creates a legacy-format link containing one variant with quantity one.

For multiple items, the documented manual structure is /cart/variant_id:quantity,variant_id:quantity. Here is an illustrative two-item selection; replace the example domain and IDs with your own:

https://example.com/cart/70881412:1,70881382:2

The merchant documentation also shows ?storefront=true for sending the buyer to the populated cart instead of checkout. Keep the destination deliberate. If the campaign asks the customer to review the selection, test that review experience instead of approving the link merely because it opens a page.

For the current /buy format

Follow Shopify's current permalink instructions: open your store's /.well-known/ucp profile, find dev.ucp.shopping.permalink, and use its config.endpoint exactly. If that capability is absent, use the supported legacy route. Do not assume that replacing the word “cart” with “buy” completes the setup.

With an advertised endpoint of https://example.com/buy, the same selection becomes https://example.com/buy/70881412:1,70881382:2. To land on the cart, add ?continue_to=/cart. The current format uses different fields, including discounts/codes/0 for a discount.

Ask the person building your links to return two things: the final URL and a plain-English description of its expected behavior. “One navy cup, two ivory cups, cart review before payment” is useful to a merchandiser. An unexplained string of numbers is not.

Check the variant, not just the product name

A permalink identifies the purchasable variant. Shopify's variant-ID instructions distinguish that identifier from the product ID. In the older admin layout, open Products > your product > Variants > the selected variant; the number following /variants/ in the address is the variant ID.

Shopify notes that a redesigned product page is rolling out gradually, so your screen may differ. Its documented bulk alternative is Analytics > Reports > New exploration, using the Percent of inventory sold metric and the Product title, Product variant title, and Product variant ID dimensions. Filter the results to your campaign products.

I recommend a small link register with these columns: campaign, product name, option values, variant ID, quantity, intended destination, and reviewer. Have the reviewer compare the actual landing page with the product names and option values, without relying on the person who assembled the link.

This is especially useful when two variants look nearly identical in a thumbnail. Give the reviewer an explicit question, such as “Does the cart contain the matte finish in the larger size?” A generic “link checked” note does not tell the next team member what was verified.

A discount in the URL is not the whole offer

Set up the promotion itself before adding it to a campaign link. Shopify's discount-management instructions put editing under Discounts > select the discount. Review the Eligibility section, including any customer, segment, or market restrictions, and save the intended settings.

Keep a separate expected-result note for the offer. Specify the eligible items, the qualifying customer, and the market you intend to serve. Then test with those conditions. If a welcome offer is meant for new customers, testing only with the team's usual returning-customer account leaves the central requirement unanswered.

For a campaign that lets shoppers browse before choosing, consider a discount's shareable link instead of a prefilled purchase. Open Discounts > select the discount > Promote > Get a shareable link, then choose the destination. Shopify documents product and collection destinations as well as the homepage. That option fits a “choose your favorite” message better than a link that silently chooses for the shopper.

When multiple promotions overlap, review Shopify's combination rules. Each discount must allow the relevant combination. Unsupported combinations do not become valid because the codes appear in a URL; Shopify can apply the best eligible discount or combination instead.

Test the offer once without competing promotions and again with the automatic discounts your store actually runs. Record the displayed discount and final selection. Avoid describing a campaign as “stackable” until the intended combination has been checked with the exact products and customer conditions.

The acceptance test that catches a misleading success

The current permalink documentation describes several behaviors worth building into your review: opening a link replaces the buyer's existing cart; unavailable stock can reduce quantities or omit an item; and checkout can still open when a discount cannot be applied. For a two-product campaign, reaching checkout with one product is a failed campaign test even though the link opened successfully.

I recommend using the following review sequence before approving a send. These are acceptance criteria for your team, not claims about results from a client store:

Shopify says links containing buyer details are private to that buyer. Keep individual email and shipping details out of reusable campaigns.

If the destination needs information that your checkout does not currently collect, review the requirements before approving the campaign. Our checkout customization guide provides context for planning that work. Do not make the campaign launch depend on an unverified assumption about where a field can be added.

Keep working links, and give each campaign an owner

For an existing link, start by documenting what it does today and which capabilities it depends on. Keep it if that behavior remains supported and meets the campaign's needs. For a new straightforward selection, evaluate the current format first. For an unresolved customer choice, send the buyer somewhere they can make it clearly.

Before handoff, record the approved link, expected selection, offer conditions, review date, and owner. Ask that owner to revisit the link whenever the campaign's products or offer changes. For printed materials, agree on the review process before anything goes to print; a teammate should be able to identify the destination without reverse-engineering a QR code.

If your team needs help connecting campaign links, personalization, and the order your warehouse receives, our Shopify development services can work from that acceptance record. Bring one representative campaign and its expected purchase. That makes the work specific enough to scope and the result specific enough to verify.