Install anywhere.
01
One script, any platform.
If your platform lets you add a script to the head of your pages, Orb works there. Find yours below.
Claude Code, Cursor or any coding AIAsk it to install
- Open your website’s project in your coding assistant.
- Paste this in and let it add the script the right way for your framework.
Add this analytics script to every page of my website, in the <head> or using this framework's recommended way to load a third-party script. Keep all of its attributes.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>Shopifytheme.liquid
- In your Shopify admin, go to Online Store, then Themes.
- Next to your current theme, open the … menu and choose Edit code.
- Open layout/theme.liquid and paste the script just before </head>.
- Click Save.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>WordPress and WooCommerceWPCode plugin
- In your WordPress admin, go to Plugins, then Add New, and install WPCode (Insert Headers and Footers).
- Go to Code Snippets, then Header & Footer.
- Paste the script into the Header box and click Save Changes.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>WebflowSite settings, custom code
- Open your site settings in Webflow and go to Custom code.
- Paste the script into Head code and save.
- Publish your site. Custom code only runs on the published site.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>SquarespaceCode injection
- In Squarespace, open Settings, then Developer tools (Advanced on older sites), then Code injection.
- Paste the script into the Header box.
- Click Save.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>WixSettings, custom code
- In your Wix dashboard, go to Settings, then Custom code.
- Click Add Custom Code and paste the script.
- Choose All pages, Load code once, and place it in Head. Click Apply.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>FramerSite settings, custom code
- Open Site settings in Framer and go to General, then Custom code.
- Paste the script into the End of <head> tag box.
- Publish your site.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>GhostCode injection
- In Ghost admin, go to Settings, then Code injection.
- Paste the script into Site header.
- Click Save.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>Next.jsapp/layout.tsx
- Open app/layout.tsx, or pages/_app.tsx if you use the Pages Router.
- Import Script from next/script and add it inside <body>.
- Deploy. Page changes inside the app are tracked automatically.
import Script from "next/script"
// Inside <body> in app/layout.tsx
<Script src="https://orbmcp.com/orb.js" data-site="SITE_ID" strategy="afterInteractive" />React, Vue, Svelte, Astro, Nuxt, RemixShared layout
- Find the file that renders <head> on every page: index.html for Vite, or the root layout for Astro, SvelteKit, Remix and Nuxt.
- Paste the script into <head>.
- Deploy. Client-side navigation is tracked automatically, so there’s nothing else to add.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>Plain HTMLEvery page
- Open the HTML for each page, or the shared header template if your site has one.
- Paste the script just before </head>.
- Upload or deploy the change.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>Google Tag ManagerCustom HTML tag
- In your container, create a new tag and choose Custom HTML.
- Paste the script.
- Set the trigger to All Pages, save, then Submit and Publish.
<script async src="https://orbmcp.com/orb.js" data-site="SITE_ID"></script>