6 min readIntegrations

Shopify URL Shortener: Branded, Tracked Store Links

Use a URL shortener with Shopify: branded product links, QR codes on packaging, tracked email and SMS, and per-link revenue from the orders/paid webhook.

Marketing solutions engineering

Writes practical guides on campaign links, QR codes, and attribution.

A Shopify URL shortener swaps a long product or campaign URL for a short, branded one you control, then counts the clicks. It can also record the revenue that followed. That part takes real setup, and I'll show what it needs. Elido has no Shopify app. What works today is the dashboard, the API, no-code tools, and a signed orders/paid webhook that credits each paid order to a short link.

I checked every claim here against the code on 2026-10-25, including the webhook handler in api-core. I found one problem in it, flagged below. Only want branded links and QR codes on packaging? Skip the webhook.

There are four pieces, and each is something you do or something Elido does:

  1. Create the short link on your branded domain, with UTMs in the destination URL.
  2. Add the link's numeric ID to that destination as a query parameter, for example ?elido_link_id=4711.
  3. Copy it into a cart attribute when the shopper lands, using a small theme script.
  4. Receive the paid order: Shopify's orders/paid webhook goes to Elido, which reads the attribute and credits the sale to the link.
Shopify attribution path: a short link, a theme script that writes the elido_link_id cart attribute, the orders/paid webhook, and a conversion row in Elido with revenue by link

The redirect adds no click ID and no link ID to the destination. Step 2 is yours. Create the link, read its ID from the API response, then update the destination. A bulk script does this better than a human.

The theme script for step 3 uses Shopify's Cart API. Per Shopify's Cart API reference (accessed 2026-10-25), POST /cart/update.js accepts an attributes object of key-value pairs:

<script>
  const id = new URLSearchParams(location.search).get("elido_link_id");
  if (id) {
    fetch(window.Shopify.routes.root + "cart/update.js", {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({ attributes: { elido_link_id: id } }),
    });
  }
</script>

Cart attributes travel with the order as note attributes, which is where Elido's handler looks for elido_link_id.

Place a real test order before you trust any of it. Really.

Set up the webhookSet up the webhook

In Elido's code, the receiver is POST /v1/workspaces/{workspace_id}/conversions/shopify. It handles two Shopify topics and ignores the rest: orders/paid records a conversion, and refunds/create reduces it. Here's the setup:

  1. Save your Shopify webhook signing secret on the workspace with PUT /v1/workspaces/{id}/pixels and the shopify_webhook_secret field. The Settings pixel form in the dashboard only has fields for pixel IDs, so this is an API call today. Without a secret, the endpoint answers 401.
  2. In Shopify, create an orders/paid webhook pointing at that URL. Add refunds/create too if you want refunds reflected.
  3. Read the numbers under Analytics, Conversions. The page breaks revenue down by platform, link, campaign and day.
Elido conversions page in a demo workspace showing total conversions and revenue, revenue by platform for Shopify and Stripe, and top links and campaigns by revenue

Demo workspace with synthetic example data, not customer results.

What you get is the revenue the order reported, credited to a link. No attribution window. No cookie matching. No first-touch mode. The conversions help page lists what's planned.

Test the signature check onceTest the signature check once

Shopify's webhook documentation (accessed 2026-10-25) says each HTTPS delivery carries a base64-encoded HMAC in the X-Shopify-Hmac-SHA256 header. Elido verifies that header against your webhook secret and rejects anything that doesn't match with a 401. While writing this post I found the handler compared the digest as hex, which would have rejected real deliveries; that's fixed and covered by a test now.

Still, check it once on your own store. Send a test order, then look at Analytics, Conversions and Shopify's webhook delivery log. Shopify retries failed deliveries 8 times over about 4 hours, and a subscription created through the Admin API is deleted after 8 consecutive failures, so a wrong secret is worth catching early.

A raw Shopify URL like acme.myshopify.com/products/blue-slim-jeans?variant=4471 doesn't fit on a flyer, a story sticker or a packing slip. A link such as shop.acme.com/blue-jeans does. Point a domain you own at Elido. Every link you create then lives on it. The custom domains feature page covers plans and DNS.

The redirect lands on your canonical Shopify URL. It's a 302 by default, with 301 or 307 per link. These marketing links don't compete with your product pages. Decide a slug convention before the first link. Something like channel-product-region, so ig-bluejeans-de reads at a glance in a report. Random slugs work for shoppers. They turn your link list into noise.

For many links at once, use the API (of the official SDKs, only Go is published so far). A script can read products from Shopify's Admin API, create a link per product with a UTM template, and write the slugs back to a spreadsheet. Zapier and Make cover smaller volumes without code. The Zapier app is private and token-based, so check the Zapier automation guide for how that works today.

QR codes on packaging and receiptsQR codes on packaging and receipts

A QR code is a short link in physical form. Packaging inserts, receipts, hang tags and pop-up displays all have room for one. A QR code in Elido encodes a short link, so the destination stays editable after print. You can ship a "scan for your welcome offer" insert and later point the same code at a replenishment offer. The dynamic vs static QR codes post explains the trade-off.

Two cautions. Elido doesn't separate QR scans from ordinary clicks, so give packaging its own short link. And print big, with high contrast and a quiet zone, then test on a cheap phone in poor light before the print run. A code that scans only in ideal light loses the shopper who tries once.

For owned channels, create one short link per send and tag it, so the report reads per message instead of per raw URL. The UTM end to end guide covers the naming.

Klaviyo receives each Elido click as an Elido Link Click event, covered in Klaviyo click events to profiles. Elido doesn't create links at send time inside Klaviyo or Shopify Email, so you generate links before the send. SMS is where length costs money: a long product URL alone can push a message into a second segment.

What isn't thereWhat isn't there

  • No Shopify app and no theme extension. The cart attribute is your code.
  • No click ID or cookie from the redirect, so there's no cookie-based attribution on the store.
  • No forwarding of orders to Meta's Conversions API or GA4. If you want purchase events in Meta, build the server-side call yourself; that post explains how and verifies it against Meta's docs.
  • No Shopify secret field in the dashboard yet.

These gaps are on the backlog. Until they close, lean on branded links, QR codes and per-link revenue, and test the signature check first. Ready to try it? Start with a free workspace and send one test order.

Frequently asked questions

Does Elido have a Shopify app?

No. There's no Shopify app or theme extension in the Elido codebase as of 2026-10-25. You use Elido with Shopify through the dashboard, the REST API, no-code tools, and a signed orders/paid webhook that records revenue per short link. The webhook and the cart-attribute snippet need a one-time setup by someone comfortable with a theme file and an API call.

How do I see which short link produced a Shopify order?

Put the link's numeric ID in the destination URL, copy it into a cart attribute named elido_link_id with a few lines of theme code, and point a Shopify orders/paid webhook at Elido. Elido reads the attribute from the order and credits the conversion to that link and its campaign. Orders without the attribute are still recorded but are not tied to a link.

Does Elido send Shopify orders to Meta or Google?

No. Orders arrive in Elido only to be reported, by link, campaign, day and platform. Elido doesn't forward them to Meta's Conversions API. Clicks are forwarded to GA4, Mixpanel, Klaviyo, Brevo and Datadog. If you want purchase events in Meta, you send them from your own server, as the Meta Conversions API post explains.

Can I put a short link or QR code on Shopify packaging?

Yes. A QR code in Elido encodes a short link, so you can change the destination after the packaging is printed. Print at a generous size with a quiet zone and test a scan on a cheap phone in poor light. Elido's QR stats don't separate scans from clicks, so give packaging its own short link if you want to count it.

Will branded short links hurt my store's SEO?

No, not in a way you'd notice. Short links in email, SMS, social and print aren't indexed product pages, and the redirect hands people to your canonical Shopify URL. A branded domain also avoids the warnings some platforms attach to generic shortener domains. The default redirect is a 302, and you can set 301 or 307 per link.

Do short links work with Klaviyo and Shopify Email?

Yes, with limits. You paste or template a short link into any email or SMS tool. Elido sends each click to Klaviyo as an Elido Link Click event. It does not create links automatically at send time, so you mint links before the send, through the API or a bulk import.

Try Elido

Paste a URL, get a working short link

No signup. Link lives for 30 days. Sign up to keep it forever.

Free account required. The free plan includes 25 links in total. Already have an account? Log in

Try Elido

EU-hosted URL shortener with custom domains, deep analytics, and an open API. Free tier - no credit card.

Tags
shopify url shortener
shorten links shopify
shopify short links
track shopify links
shopify product links
branded links shopify

Continue reading