How to Add Orbit Analytics to a WordPress Site

WordPress doesn't have a single native place to add tracking scripts, so most sites use either a small header/footer plugin or a direct theme edit. Either path takes a couple of minutes and applies sitewide, including WooCommerce pages.

Setup steps

  1. Choose your injection methodDecide between a header/footer plugin (like Insert Headers and Footers), editing header.php in a child theme, or a code-injection field bundled with your page builder.
  2. Install a header/footer plugin (recommended)If you don't want to touch theme files, install a plugin such as "Insert Headers and Footers" from the plugin directory — it adds a settings page for pasting code into the site head.
  3. Paste the script into the header fieldAdd the <script defer src="https://orbitanalytics.app/script.js" data-website-id="{id}"></script> tag into the header field and save.
  4. Or edit header.php directlyIf you're comfortable with a child theme, open header.php and paste the same script tag immediately before the closing </head> tag instead.
  5. Verify trackingLoad the site in a private/incognito window and confirm the visit appears in Orbit's real-time view.

Frequently asked questions

Will a caching plugin block Orbit's script?

No — page caching plugins cache your HTML, not third-party script execution, so the script tag ships with the cached page and runs normally in the visitor's browser. If you use an aggressive JS-minify/combine setting, exclude Orbit's script from it to be safe.

Does this track WooCommerce checkout pages?

Yes — as long as the header code loads sitewide (which header/footer plugins do by default), Orbit tracks WooCommerce cart and checkout pages the same as any other page.

What about a headless WordPress setup?

If WordPress only powers the backend and a separate frontend renders pages, header.php and header-injection plugins won't apply — add the script to that frontend's own head template instead.

Will this conflict with plugins like Jetpack or MonsterInsights?

No — multiple analytics scripts can run on the same page without conflict. You'll just be tracking the same traffic in more than one system.

See it on your own site

Free for 1 website, no card required.