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.

Updated 29 November 20264 min read

On this page
  1. Before you start
  2. Paste the tag on your platform
  3. Check that it works
  4. Troubleshooting

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:

HTML
<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

  1. In your site's settings, open the Custom code tab.

  2. Paste the tag into Head code and select Save changes.

  3. Publish your site. Custom code goes live only after you publish.

WordPress

  1. Use a header-code plugin, such as "Insert Headers and Footers" by WPCode.

  2. 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

  1. In your Shopify admin, go to Online Store, open the menu next to your theme and select Edit code.

  2. Open theme.liquid in the Layout folder. It is the base layout for every page.

  3. Paste the tag just before </head> and save.

Wix

  1. In your site's dashboard, go to Settings › Custom Code and select Add Custom Code.

  2. Paste the tag and give it a name.

  3. 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

  1. Open the Code Injection panel.

  2. Paste the tag into Header and select Save.

Squarespace offers code injection on some plans only. See Using code injection.

Framer

  1. Open your project's settings and find the Custom Code section.

  2. Add a script, paste the tag and place it in the head of every page.

  3. 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.

TSX
// 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

  1. Open your live website and visit one or two pages.

  2. In Omni Web Analytics, go to Settings and select Check installation.

  3. 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.