Engineering · November 13, 2026
Add analytics to Shopify, WordPress, Webflow and Wix
Step-by-step: how to add a website analytics script to Shopify, WordPress, Webflow, and Wix, which plans you need, and how to check it is working.

One snippet, four platforms
Most website analytics tools, Deeplitic included, are installed the same way: you paste one script tag into the head of every page. The hard part is not the code but finding where each platform lets you put it, and knowing which plan unlocks that setting. This guide covers Shopify, WordPress, Webflow, and Wix, then shows how to confirm the installation works.
Menus and plan names change from time to time. The steps below reflect each platform’s documentation as of November 2026; if a label has moved, search the platform’s help centre for “custom code” or “head code”.
Before you start
Create a site in Deeplitic and copy the tracking snippet from its Tracking code page. It is a single script tag. Decide which mode you want first: the default mode, the “wait for consent” mode (add data-consent="required" to the tag if you use a consent banner), or cookieless mode. You can change it later by editing the tag.
Install the snippet once per site. Adding it twice, for example through a plugin and a theme file, double-counts page views.
Shopify
In your Shopify admin, go to Online Store → Themes. On your current theme, open the actions menu (the “…” button) and choose Edit code.
In the Layout folder, open theme.liquid. Find the closing </head> tag, paste the Deeplitic snippet on the line just before it, and click Save. Every storefront page uses this layout, so the snippet will load on your home page, collections, products, and cart.
Two things to know. First, if you switch or update your theme, the snippet does not move with it; add it to the new theme’s theme.liquid before publishing. Second, Shopify’s checkout pages are rendered separately and do not load theme.liquid, so the theme snippet will not run there. Shopify manages code on checkout pages through its Customer events settings instead; check Shopify’s documentation for what your plan allows before relying on checkout data.
WordPress
Editing your theme’s header.php works, but the change is lost when the theme updates. A header and footer code plugin is safer. WPCode (formerly “Insert Headers and Footers”) is a widely used free option.
Install and activate WPCode from Plugins → Add New. Then go to Code Snippets → Header & Footer in the WordPress admin, paste the Deeplitic snippet into the Header box, and click Save Changes.
If you use a caching or optimisation plugin, clear the cache afterwards so visitors receive the updated pages. Some optimisation plugins also delay or combine scripts; if the installation does not show as connected, exclude the Deeplitic script from those features.
On WordPress.com, adding custom code requires a plan that allows plugins. Self-hosted WordPress has no such restriction.
Webflow
Custom code in Webflow requires a paid Site plan; the free Starter plan does not allow it.
In the Webflow Designer, open the Webflow menu and go to Site settings, then the Custom code tab. Paste the Deeplitic snippet into the Head code box and click Save. Then publish the site: custom code only goes live after you publish.
Publish to your custom domain, and make sure it matches the domain you added in Deeplitic. If you also publish to the webflow.io staging address, add it as an allowed origin or as a separate site so test traffic stays out of your production numbers.
Wix
Wix only lets you add custom code to sites that are published and have a connected domain, which in practice means a Premium plan.
From your site’s dashboard, go to Settings, then Custom code (under Development & integrations). Click Add Custom Code, paste the Deeplitic snippet, and give it a recognisable name such as “Deeplitic analytics”. Under Add Code to Pages, choose All pages and “Load code on each new page”. Under Place Code in, choose Head, then click Apply.
Wix notes that custom code snippets are removed if you change your site’s domain, so re-add the snippet after any domain change.
Check that it works
Open your site in a private browser window and browse a couple of pages. In Deeplitic, the Tracking code page should show the site as connected within seconds, and your visit should appear in realtime visitors. Open the visit to see its journey step by step.
If nothing arrives, check three things: that the published site, not just a draft, contains the snippet; that the domain you are visiting matches the one configured in Deeplitic; and that a caching or optimisation layer is not serving an old version of the page.
Add goals and tidy the data
Once page views arrive, add the actions that matter as goals. Forms are tracked automatically; for anything else, call window.deeplitic?.track('signup') (with your own event name) where the action happens, then turn the event into a goal. Tag your campaign links with UTM parameters so newsletters and social posts show up as campaigns rather than direct traffic.
Exclude your own visits, keep an eye on the sources report for spam, and turn on uptime monitoring with a keyword check for your home page so you hear about outages before customers do. Heatmaps of your top landing pages become useful after a week or two of traffic.
Which plan you need
Deeplitic’s Free plan covers one site, 5,000 page views a month, the last 30 days of reports, and heatmaps on one page, which is enough to try it on a small store or blog. Starter (€9 a month) adds more sites, full history, heatmaps on five pages, and uptime monitoring; Growth (€19 a month) adds heatmaps on every page. Compare plans on deeplitic.com/pricing and create your account at deeplitic.com/signup; installation takes about two minutes.
For privacy settings and banners, read our guides to cookieless analytics and the GDPR-friendly analytics checklist.