Skip to main content

Install on headless Shopify

Use this guide if your store runs on Shopify but your storefront isn't served by a Shopify theme, for example Hydrogen or another custom front end. If you're not sure, ask your Unveild POC.

You install two things: the Unveild Shopify app and the Unveild script. Your Unveild POC sends you the app install link and your script tag together.

Why you need both​

Unveild needs two things from a Shopify store, and they come from different places:

Unveild Shopify appUnveild script
What it gives UnveildYour Shopify store data: products, inventory and stock changes, orders, checkouts and customers, plus checkout events from Shopify's web pixelWhat happens on your storefront: pages and products viewed, and emails shoppers enter
Used forProducts that need store data, such as Restock (stock and price changes) and Replenishment (orders)Recognising shoppers and sending their browsing to your flows
Where it livesYour Shopify adminEvery page of your storefront

On a store with a Shopify theme, the app's app embed adds the script to the theme, so the app covers both. A headless storefront isn't served by a Shopify theme, so the app embed can't reach your pages, and you add the script yourself.

The full list of what the app can access is in What the Shopify app can access.

Step 1 — Install the Unveild Shopify app​

  1. Click the install link (provided by your Unveild POC).
  2. Review the permissions and click Install.
  3. Shopify may open the theme editor. You can close it: skip the Unveild App Embed toggle.
You may still see the app embed toggle

Many headless stores keep a placeholder theme published in Shopify, so the theme editor can still show the Unveild App Embed toggle. Turning it on there does nothing for your real storefront, and it may not save. That's expected: the script in step 2 does that job.

Step 2 — Add the Unveild script to your storefront​

Add the script tag your Unveild POC sent you to every page of your storefront, in one of these ways:

Pick only one.

When we ask you to update the app​

Follow Update the Unveild Shopify app and approve the data access update. Skip the app embed part at the end: on a headless storefront, the script from step 2 already does that job.

Verify the install

Open the browser console on any storefront page and confirm that Unveild: IIFE Script loaded appears. It should be present on every page. Then tell your Unveild POC: they will verify that data is flowing within 24 hours.