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 app | Unveild script | |
|---|---|---|
| What it gives Unveild | Your Shopify store data: products, inventory and stock changes, orders, checkouts and customers, plus checkout events from Shopify's web pixel | What happens on your storefront: pages and products viewed, and emails shoppers enter |
| Used for | Products 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 lives | Your Shopify admin | Every 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
- Click the install link (provided by your Unveild POC).
- Review the permissions and click Install.
- Shopify may open the theme editor. You can close it: skip the Unveild 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:
- In the site header: paste it into the
<head>of every page. See Option 1 — Install directly in the site header. - With Google Tag Manager: add it as a Custom HTML tag that fires on all pages. See Option 2 — Install via Google Tag Manager.
- With Adobe Launch: add it as a custom-code rule that fires when the library loads. See Option 3 — Install via Adobe Launch.
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.
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.