vTilt
By roleFoundersKnow what to fix firstMarketersSee what happens after the clickCMOsSee what your budget really buys
By businessSaaSTurn signups into active usersEcommerceSee why shoppers abandon cartsAgenciesProve your work to clientsEnterpriseOne customer record for every team
MeasureWeb AnalyticsFind where buyers leaveSession ReplaySee why they left, not just that they didAdsKnow what paid visitors do nextIntegrationsOne snippet feeds your stack
ThinkPeopleOne profile per customerCustomer MemoryvTilt remembers every visitorSite KnowledgeAnswers and audits from your own pages
ActAsk AIAnswers from real behaviorAI ChatChat that knows the visitorEmail CampaignsEmail from real visits
PricingWhy vTiltDocs
Docs / Shopify
Getting Started
OverviewInstallInitializeIdentify usersTrack eventsLogout & resetVerify eventsCommon mistakes
Guides
Event forwardingGoogle Tag Manager
Site builders
WordPressShopifyWebflowWixSquarespaceReverse proxyRealtime dashboardSite knowledgeStudioWebsite chat MCP
Frontend frameworks
Next.jsNuxt.jsVue.jsReactReact RouterRemixGatsbySvelte / SvelteKitAstroAngularTanStack StartDocusaurus
Backend frameworks
NestJSHonoCloudflare WorkersDjangoFlaskLaravelPhoenixRuby on Rails
Backend languages
PythonPHPRubyElixirGoJava.NET / C#Rust
Stack guides
Vue + PHP
API Reference
Browser SDK
Script bundlesAutocaptureWeb VitalsSession recordingChat widgetOutbound messagesCookie consentFeature readinessRemote configurationDebug logging
Node SDK
Install & setupCapture, identify & aliasContext & shutdownGlobal properties & opt-outError tracking
Content SDK
Headless blog
MCP server
Guides
OverviewAuthenticationOAuthAgent skills (prompts)AI intelligenceSite knowledgeGoogle AdsMeta AdsGoogle Search ConsoleGoogle Business Profile
Client setup
CursorClaude DesktopVS CodeChatGPTCodex

Getting Started

OverviewInstallInitializeIdentify usersTrack eventsLogout & resetVerify eventsCommon mistakes

Guides

Event forwardingGoogle Tag Manager
WordPressShopifyWebflowWixSquarespace
Reverse proxyRealtime dashboardSite knowledgeStudioWebsite chat MCP

API Reference

MCP server

On this page

On this page

  • Before you start
  • What vTilt sees on checkout
  • 1. Add the snippet to theme.liquid
  • 2. Confirm the first event
  • If nothing arrives
  • You edited a theme that is not live
  • The snippet ended up in the wrong place
  • An ad blocker is in the way
  • The token does not match
DocsGuidesSite buildersShopify

Shopify

Last updated December 1, 2026

Install the vTilt snippet on a Shopify store in the theme code (theme.liquid, in the head) — why not a custom pixel, what reaches checkout, and how to confirm the first event.

If your store runs on Shopify, you install vTilt by adding the snippet the dashboard gives you to your theme's code, once, in the head of the page. Shopify then includes it on every page of your online store.

Note

Use one install path. If the vTilt snippet is already in your theme, do not add it again as a custom pixel or through Google Tag Manager.

#Before you start

  • You can edit your store's theme in the Shopify admin.
  • Shopify does not let you edit the code of a paid theme you are only trying out: buy the theme first. On the Starter plan, theme customization is not available.
  • You have your vTilt snippet. Copy it from Get started → Paste the snippet, or from Settings → Project → Installation. Your project token is already filled in there.

Why the theme and not a custom pixel? Shopify's Customer events can hold custom pixels, but those run in a sandbox that cannot read or change your store's pages or show anything on them. vTilt needs the real page for click autocapture, session recordings and the chat widget, so it goes in the theme.

#What vTilt sees on checkout

Theme code runs on your online store's pages, but not on checkout pages. Shopify keeps checkout, the Thank you page and the Order status page separate, and the theme snippet does not reach them. vTilt sees visitors up to the moment they start checkout.

Shopify's custom pixels do run on those pages, but in the sandbox described above, with JavaScript only (no <script> tags). The vTilt snippet is written for a real page, so it is not meant for a custom pixel.

#1. Add the snippet to theme.liquid

Tip

Shopify recommends duplicating your theme before you edit its code, so you have a backup copy to go back to.

  1. In your Shopify admin, go to Online Store.
  2. On your current theme, click the … button and choose Edit code.
  3. Open theme.liquid. It is in the Layout folder, or search for it by name.
  4. Find the line </head>.
  5. Paste your snippet on a new line just above </head>.
  6. Click Save.

The snippet looks like this:

<script>
!function(t,e){var o,n,p,r;function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}if(!e.__SV&&!(window.vt&&window.vt.__loaded)){window.vt=e,e._i=[],o="init capture identify setUserProperties resetUser getUserIdentity getDeviceId getUserState alias getConfig getSessionId updateConfig setConsent on once off startAutocapture stopAutocapture startSessionRecording stopSessionRecording openChat closeChat toggleChat showChat hideChat sendChatMessage gtag setGoogleUserData".split(" ");for(n=0;n<o.length;n++)g(e,o[n]);e.init=function(i,s,a){(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.script_host?s.script_host+"/array.js":s.api_host+"/dist/array.js",p.onerror=function(){console.error("vTilt: Failed to load library script:",p.src)},(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="vt",u.toString=function(t){var e="vt";return"vt"!==a&&(e+="."+a),t||(e+=" (stub)"),e},n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1}}(document,window.vt||[]);
vt.init('YOUR_PROJECT_TOKEN', {
  api_host: 'https://www.vtilt.com',
});
</script>
html

Note

The snippet is part of this theme only. If you later publish a different theme, add the snippet to that theme too, or vTilt stops receiving events.

#2. Confirm the first event

  1. Open your online store in a new tab and load any page.
  2. Go back to Get started in vTilt. It is waiting for your first event and switches to your dashboard by itself when the event arrives. This normally takes a few seconds.

To watch events arrive one by one, open the Debug View — see Verify events.

#If nothing arrives

#You edited a theme that is not live

Customers only see your published theme. If you added the snippet to a copy or a draft theme, either add it to the published theme as well, or publish the theme you edited.

#The snippet ended up in the wrong place

Open theme.liquid again and check that the snippet sits just above </head>, whole, with its opening <script> and closing </script> lines.

#An ad blocker is in the way

Ad blockers can block analytics scripts. Test in a private window with extensions turned off. For visitors, a reverse proxy keeps vTilt's requests from being blocked.

#The token does not match

Check that the token in the snippet is the one shown for this project in Settings → Project → Installation. See Common mistakes.

PreviousWordPressGuidesNextWebflowGuides