How to Deploy Orbit Analytics via Google Tag Manager

If you already manage tags through Google Tag Manager, Orbit's script installs as a Custom HTML tag with an All Pages trigger — no separate code change on the site itself, since the GTM container is presumably already installed.

Setup steps

  1. Create a new tagIn your GTM container, go to Tags > New, and choose "Custom HTML" as the tag type.
  2. Paste the Orbit script as the HTMLPaste the full <script defer src="https://orbitanalytics.app/script.js" data-website-id="{id}"></script> tag into the Custom HTML field.
  3. Set the trigger to All PagesUnder Triggering, choose the built-in "All Pages" trigger so the tag fires on every page load across the site.
  4. Preview and verifyUse GTM's Preview mode to confirm the tag fires without errors, then confirm a visit appears in the Orbit dashboard.
  5. Submit and publish the containerPublish the GTM container version — changes in GTM don't go live until published, separately from any deploy of the site itself.

Frequently asked questions

Does GTM's tag firing order matter for Orbit?

Not especially — Orbit's script only needs to load and execute once per page, so as long as the Custom HTML tag fires on All Pages, its order relative to other tags doesn't affect tracking accuracy.

Do I still need to add anything to my site's code if I use GTM?

No — that's the point of this route. Once the GTM container snippet itself is installed on your site (typically already true if you use GTM for other tags), you manage the Orbit tag entirely from the GTM interface.

Will GTM's own loading delay affect Orbit's real-time visitor count?

There's a small delay, since GTM has to load its own container script before firing the Custom HTML tag, but it's generally well under the window a real-time count needs.

Does this work with a GTM Server Container setup?

No — Orbit's script needs to execute in the visitor's browser to detect them, so it has to be deployed through a standard web container's Custom HTML tag, not routed through a server-side container.

See it on your own site

Free for 1 website, no card required.