Why the app embed is needed on Shopify stores
What Unveild does on a Shopify store
Shopify already records what shoppers do on your store: the pages and products they view, what they add to cart and how far they get through checkout. What Shopify doesn't know is who an anonymous shopper is, until they log in or enter their email at checkout. Most shoppers leave before either.
Unveild fills that gap. It does three jobs on a Shopify store:
- Recognises the shopper. Whenever a shopper identifies themselves on your store, Unveild links it to their browser. From then on, Unveild knows who that shopper is on every visit. That includes:
- an email or phone number typed into any form or sign-up pop-up;
- a sign-up through Klaviyo's forms or another tool's forms on your site;
- a click from a Klaviyo email, whose link carries the subscriber's ID;
- a Postscript SMS subscriber, recognised by Postscript's own script;
- an email another tool on your site has already saved in the shopper's browser.
- Remembers the shopper and adds Shopify's data. A random Unveild ID stored in the shopper's browser lets Unveild recognise them on later visits without them typing anything again. Shopify's own visitor cookie and the email entered at checkout help Unveild recognise shoppers it would otherwise miss.
- Uses your store data. Your Shopify catalogue, stock, prices and orders power Restock (back in stock, low stock, price drop) and Replenishment (reorder, cross-sell, win-back).
For example, a shopper views a pair of jeans, adds them to cart and types her email into your pop-up, then leaves without buying. Shopify recorded the cart but not who she is.
- Unveild links her email to her browser.
- It records an
Added to Cart Rekindle Unveildevent on her profile in Klaviyo, with the jeans' name, price, image and link. - That event triggers the abandoned-cart flow Unveild set up in your Klaviyo, which emails her a reminder showing the jeans.
- If the jeans later sell out and come back, a
Back In Stock Unveildevent starts your back-in-stock flow for her.
See Events and the Flow library for every event and flow.
Which part of the installation does what
Installing the Unveild Shopify app sets up three parts, one for each job. Two work as soon as the app is installed. The app embed has to be enabled separately.
| Job | What it uses | Part that does it | How it's set up |
|---|---|---|---|
| 1. Recognises the shopper | Emails and phone numbers typed into forms and pop-ups; sign-ups through Klaviyo's and other tools' forms; the subscriber ID in links from Klaviyo emails; Postscript's subscriber ID; emails other tools have saved in the browser | App embed, the Unveild script in your theme | You enable it in your theme |
| 2. Remembers the shopper | A random Unveild ID it stores in the shopper's browser, so Unveild recognises them on later visits. Also Shopify's own visitor cookie, the email entered at checkout, and Shopify's events, including on Shopify's checkout pages | Web pixel, part of the Shopify app | Automatic when you install the app |
| 3. Uses your store data | Products, stock, prices, orders and checkout updates, straight from Shopify's servers | Store connection, the app's permissions and Shopify webhooks | Automatic when you install the app |
- App embedCatches sign-ups, typed emails and link IDs on your pages, and publishes each one as an event into Shopify.
- Web pixelReceives those events with Shopify's own, stamps each with Shopify's identity for the shopper, and puts them all in one standard format.
- UnveildMatches the shopper and sends events to your tools.
The app embed doesn't send anything to Unveild itself. It publishes each capture as an event into Shopify's own analytics, the same channel Shopify uses for its standard events. The web pixel listens to that channel, so it receives the app embed's events and Shopify's together. It then:
- stamps every event with Shopify's identity for that shopper: Shopify's own visitor ID, plus Unveild's ID. So an email the app embed catches is tied to the shopper as Shopify knows them, and to every other event from that visitor;
- adds the shopper's consent status from Shopify's privacy settings;
- puts every event into one standard format and sends it to Unveild over HTTPS.
So whichever part saw it, every event reaches Unveild in the same shape. Your store data goes from Shopify's servers to Unveild directly.
Why the app embed must be enabled
Installing the Unveild Shopify app does not switch on the app embed. It comes with the app but stays off until you enable it in your theme (Online Store → Themes → Customize → App embeds, then Save).
It matters because the web pixel runs in a closed-off sandbox: Shopify doesn't let it read your pages, so it can't see what a shopper types into a pop-up or a sign-up through another tool's form. Only the app embed runs on the page itself. The app tells Unveild what happened in your store; the app embed tells Unveild who did it.
| If this is missing | What you lose |
|---|---|
| App embed | Most shoppers are never recognised. Unveild still gets the email entered at checkout, and an email submitted through a simple form, but it misses most sign-up pop-ups, clicks from Klaviyo emails, Postscript subscribers and emails other tools have saved. |
| Web pixel | Checkout events and Shopify's own event stream, and the app embed has nothing to pass its captures to. |
| Store connection | Product, stock, price and order data, so Restock and Replenishment can't run. |
Keep the app embed enabled
The app embed is switched on per theme, under Online Store → Themes → Customize → App embeds. It only works on the theme that serves your storefront.
If you publish a new theme, switch the Unveild App Embed on in that theme too. Nothing warns you when it's off: Unveild simply stops seeing on-page activity.
Headless storefronts are different: the app embed can't reach pages that aren't served by a Shopify theme, so you add the Unveild script yourself. See Install on headless Shopify.
For the full list of permissions and webhooks, see What the Shopify app can access.
What the app embed does with shopper data
Enabling the app embed is safe for your shoppers' data. Three things hold for every Unveild store.
No data is shared across stores
- In the browser, Unveild creates a random browser ID for your store only. It's saved in the shopper's browser under your website's name, and browsers never let another website read it. The same shopper gets a different, unrelated ID on every other store.
- In Unveild, every record is filed under your store's account. A lookup for your store can only read your store's records. There is no lookup across stores, by email or by browser.
- At your tools, events go to your Klaviyo, Postscript or other tools with your own API keys. Your data can't reach another store's tools.
Unveild doesn't pool, sell or share your shoppers' data with other stores or third parties.
Data goes only to Unveild, encrypted
The app embed calls only two places: your own store, to read the cart and product, and Unveild's event intake at e.usesneakpeek.com over HTTPS. It loads no other vendor's code and calls no ad network or data broker.
Data is encrypted in transit (HTTPS) on the way to Unveild and encrypted at rest wherever Unveild stores it. From there, it goes only to the tools you've connected.
What's kept in the shopper's browser
Unveild keeps only identity in the shopper's browser, saved under your website's name, where only your website can read it:
- the email address or phone number the shopper typed on your site;
- the random Unveild ID for your store;
- the subscriber ID from a Klaviyo email link or a Postscript text, when they arrive through one;
- a short list of their recent browsing events, waiting to be sent to Unveild.
Nothing sensitive is stored: no passwords, no payment or card details, no addresses and no order history. It's the shopper's own identity, used so Unveild keeps recognising them on your site and can resend an event that failed to go out.