To install CROforce on Shopify, add the CROforce app to your store, then open your theme editor, go to App embeds and switch the CROforce embed on. The app sets your site token for you and adds a web pixel, so checkouts and purchases are tracked with no extra setup. If you'd rather not use the app, you can paste the snippet into theme.liquid instead.
Takes about 5 minutes. You need to be the store owner or a staff member who can install apps and edit themes.
1. Install the app
Open the CROforce install link from your Shopify admin and approve the permissions Shopify shows you. When you approve:
- CROforce creates a website for your store (or connects the one you already have for the same address) and logs you in.
- Your store's site token is saved in the app, so the App Embed knows which website it belongs to.
- A web pixel is added to your store. It's what tracks checkout and purchase events — see What the web pixel tracks.
Why the app asks for theme and customer-event access. Theme access lets it offer the App Embed; customer-event and pixel access let it add the web pixel; order and product access let CROforce show your sales and products.
2. Turn on the App Embed
The app doesn't change your theme by itself — you switch its embed on once in the theme editor.
- In your Shopify admin, go to Online Store › Themes.
- On your live theme, click Customize to open the theme editor.
- In the left sidebar, open App embeds.
- Find the CROforce embed, listed as Entail Javascript Web, and switch it on.
- Click Save.
Shortcut: https://YOUR-STORE.myshopify.com/admin/themes/current/editor?context=apps opens the theme editor straight on App embeds for your live theme. Replace YOUR-STORE with your store's name.
The embed loads the CROforce script in your storefront's <head> on every page, with your site token filled in.
3. Check the installation
Open your store in a browser, then in CROforce click Install Entail CRO, choose Shopify and click Verify Installation. See Check your installation.
Store password-protected? While your storefront asks for a password, CROforce can't load your homepage to look for the script. Visit the store yourself first so CROforce receives a visit — that counts as installed too.
What the web pixel tracks
Shopify's checkout runs in its own protected pages, where theme code and the App Embed can't run. The web pixel runs there, so these are recorded automatically:
Event | When | What it carries |
|---|---|---|
| A shopper starts checkout | Cart value, subtotal, tax, shipping, currency, country and the items in the cart |
| A shopper completes an order | Order ID and number, order value, subtotal, tax, shipping, discount, currency, country and each item's name, SKU, price and quantity |
To count purchases as conversions and see revenue in your reports, add a purchase goal — see Track purchases and revenue and Goals.
Install without the app (theme.liquid)
This is the method the Shopify option on CROforce's install screen shows. It puts the script on your storefront pages but doesn't add the web pixel, so purchases on Shopify's checkout aren't tracked automatically.
- In CROforce, click Install Entail CRO, choose Shopify and click Copy script (or Copy Code on the page you see after sign-up).
- In your Shopify admin, go to Online Store › Themes.
- On your live theme, open the … menu and choose Edit code.
- Under Layout, click
theme.liquid. - Find the closing
</head>tag and paste your snippet just before it. - Click Save.
<head>
{{ content_for_header }}
…
<!-- CROforce: paste your snippet here, just before </head> -->
<link rel="preload" href="https://cdn.entail-insights.com/js/entail.js" as="script">
<link rel="preconnect" href="https://widgets.entail.ai/" crossorigin>
<script> /* …your snippet… */ </script>
</head>Theme updates. A snippet pasted into theme code stays with that theme. If you switch or replace your theme, paste it into the new one too.
Troubleshooting
What you see | What to do |
|---|---|
The embed isn't in App embeds | The app isn't installed on this store, or you're editing a different store. Install the app, then reopen the theme editor. |
The check fails after you turned the embed on | Make sure you clicked Save in the theme editor and edited the live theme, not a draft one. |
Purchases don't show up | Make sure you installed the app (the pasted snippet doesn't track checkout), and that you have a purchase goal. |
More help: Troubleshooting.
Next steps
- Track purchases and revenue: Turn orders into conversions.
- Products catalogue: The products your pages promote.
- Create a popup: Your first offer for shoppers.
Frequently asked questions
Do I need to edit theme.liquid if I use the app?
No. The App Embed loads the script on every storefront page. Edit theme.liquid only if you aren't using the app.
Are purchases tracked on Shopify's checkout pages?
With the app, yes: its web pixel runs on Shopify's checkout and records checkout starts and completed purchases with their value. A snippet pasted into theme.liquid doesn't run on checkout pages.
Will the App Embed and a pasted snippet double-count visits?
No. Whichever loads second sees that CROforce is already running and stops. Still, use one method and remove the other to keep things simple.
Do I have to turn the App Embed on again if I change themes?
Yes. App Embeds are switched on per theme, so turn it on in the new theme's editor and save.
