Skip to main content

Add the script on Shopify

Where to paste the line on Shopify, and how to check it.

About 5 minutesYou need: access to edit the theme
On this page

Steps

  1. Copy your line from Settings, then Script.
  2. Open Online Store, then Themes, then Edit code.
  3. Open theme.liquid.
  4. Paste the line just before </head> and save.
  5. Press Check my site in the app.
Your line
<script async src="https://YOUR-LINK-DOMAIN/t.js" data-key="mk_YOUR_KEY"></script>

How to know it worked

The check says Found. Then open your page once, and the script status changes after we see the visit.

Good to know

Shopify's checkout pages don't run theme code. Match orders by email instead.

You can't connect a Shopify account yet. Send orders with the Sales API until you can.

Common errors

ProblemFix
Not foundPublish the site and clear its cache
Found more than onceRemove the extra line
Links lose the tm codeRemove redirects that drop values after ?
Note:

We wrote these steps from Shopify's public settings. Menus change. We have not tested this guide on a live account.

Names and marks belong to their owners. Showing one does not mean they endorse us.

Was this useful?

Your answer stays in this browser.