How to Add Orbit Analytics to a Bubble App

Bubble apps aren't just marketing pages, so where you add the script depends on whether you want app-wide tracking or just certain pages — Bubble supports both through its SEO settings and page-level HTML elements.

Setup steps

  1. Open your app's SEO / metatags settingsIn the Bubble editor, go to Settings > SEO / metatags, which includes a field for custom header scripts applied across the app.
  2. Paste the Orbit script into the header script fieldAdd the <script defer src="https://orbitanalytics.app/script.js" data-website-id="{id}"></script> tag there so it's injected into the head across your app.
  3. Or use an HTML element on a specific pageIf you only want tracking on certain pages — a public marketing page but not the logged-in app — drag an HTML element onto that page and paste the script there instead.
  4. Deploy to your live versionBubble changes made in the editor apply to your development version first; deploy to the live app version for the script to run for real visitors.
  5. Confirm on the live app URLVisit the deployed app and confirm the visit shows up in Orbit.

Frequently asked questions

Does the app-wide header script apply to logged-in pages too?

Yes, by default it applies app-wide, including pages behind login — if you only want to track public/marketing pages, use a page-level HTML element there instead of the app-wide setting.

Does this track in-app actions or workflows, like event analytics?

No — Orbit's script only reports pageviews and basic engagement metrics, not custom events tied to Bubble workflows. That would need separate event-tracking instrumentation.

Does a header script affect Bubble's workflow or capacity pricing?

No — header scripts are unrelated to Bubble's workflow/capacity-based pricing; it's just a script tag served to the visitor's browser.

Does this differ for a custom domain vs. a bubbleapps.io URL?

No — the header script setting applies at the app level regardless of which domain visitors use to reach it.

See it on your own site

Free for 1 website, no card required.