Add the Omni Web Analytics tag to Webflow, WordPress, Shopify and more
Where to paste the Omni Web Analytics tracking tag on Webflow, WordPress, Shopify, Wix, Squarespace, Framer and Next.js or React sites, and how to check that visits arrive.
Before you start
You need the tag for the right website. In Omni Web Analytics, open All websites, open your website (or select Add website), then go to Settings and select Copy tracking code. The tag already contains your website's ID:
<script async src="https://founderomni.com/analytics.js?v=7"
data-site="YOUR-SITE-ID"></script>The general rule is the same on every platform: paste the tag once, in the site-wide head code, so it loads on every public page. Then publish. For more detail, see install the tracking code.
Use your real domainVisits only count when they come from the domain you entered for the website, or one of its subdomains (www. is ignored). A platform's own preview or staging address on another domain does not send visits. Test on your live domain.
Paste the tag on your platform
Menu names on these platforms change from time to time. If a step looks different, search the platform's help for "custom code in head".
Webflow
In your site's settings, open the Custom code tab.
Paste the tag into Head code and select Save changes.
Publish your site. Custom code goes live only after you publish.
WordPress
Use a header-code plugin, such as "Insert Headers and Footers" by WPCode.
Paste the tag into the Header box and save.
On WordPress.com, installing this plugin depends on your plan. See the WordPress.com guide.
Shopify
In your Shopify admin, go to Online Store, open the menu next to your theme and select Edit code.
Open
theme.liquidin the Layout folder. It is the base layout for every page.Paste the tag just before
</head>and save.
Wix
In your site's dashboard, go to Settings › Custom Code and select Add Custom Code.
Paste the tag and give it a name.
Choose All pages and place the code in Head, then select Apply.
Wix asks that your site is published and has a connected domain.
Squarespace
Open the Code Injection panel.
Paste the tag into Header and select Save.
Squarespace offers code injection on some plans only. See Using code injection.
Framer
Open your project's settings and find the Custom Code section.
Add a script, paste the tag and place it in the head of every page.
Publish your site.
Next.js and React
In the Next.js App Router, add the tag to your root layout with the Script component, so it loads on every route. Custom data- attributes are passed on to the final tag.
// app/layout.tsx
import Script from 'next/script'
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>{children}</body>
<Script src="https://founderomni.com/analytics.js?v=7" data-site="YOUR-SITE-ID" />
</html>
)
}For other React apps, paste the tag into the <head> of the HTML file that loads your app, often index.html. The tracker also records page changes inside a single-page app.
Check that it works
Open your live website and visit one or two pages.
In Omni Web Analytics, go to Settings and select Check installation.
If it says "No event found yet", wait about 30 seconds and check again.
When it works, Settings shows Installation verified.
Add the tag only onceIf you also added the tag through a theme, plugin or tag manager, two copies count each visit twice. Keep one.
Troubleshooting
- "No event found yet" — the change is not published, or you tested on a preview address. Publish, open your live domain, visit a page and check again.
- Nothing arrives from your test browser — ad blockers, Do Not Track or Global Privacy Control stop the tracker in that browser. Test in another browser without them.
- Only some pages are counted — the tag is on a single page instead of the site-wide head code. Move it to the site-wide setting.
- Still no data — see why you don't see visitors yet.
