Integration Guides

Instapage

Add Rybbit analytics to your Instapage landing pages

Instapage takes custom scripts at two levels: Workspace scripts (under Assets > Scripts) apply to every page in a workspace, and each page also has its own JavaScript and HTML/CSS settings with a Head section. Custom HTML, CSS and JavaScript are included on all Instapage plans; Workspace scripts are limited to some subscriptions and show an upgrade prompt otherwise.

Get your tracking snippet

In your Rybbit dashboard, open Site Settings → Tracking Script and copy your snippet. It looks like this:

<script src="https://app.rybbit.io/api/script.js?siteId=YOUR_SITE_ID" defer></script>

YOUR_SITE_ID is the numeric ID of your site. If you self-host Rybbit, app.rybbit.io is the domain of your own instance.

Add the snippet to Instapage

  1. In the left menu, open Assets, then Scripts.
  2. Paste the snippet into the Head section.
  3. Above the editor, choose how it applies: option A adds it to every past and future page in the workspace; B leaves it off until you switch it on per page under Scripts & Privacy; B + C turns it on for all pages but lets you disable it per page.
  4. Click Apply.

Workspace scripts load on the live URL before any page-level script, so the snippet is in place before other code on the page runs.

  1. Open the page in the builder and click Settings in the right sidebar.
  2. Open the HTML/CSS tab and paste the snippet into Head. (The JavaScript tab has the same three sections and wraps your code in <script> tags automatically; the snippet already has its own tag, so HTML/CSS is the simpler choice.)
  3. Publish the page. Custom code runs only on the live, published page, not in the editor or preview.

If you use Instapage's privacy compliance banner, put the snippet in the page's Scripts & Privacy section instead so it fires only after the visitor accepts.

Verify installation

Open your live site in a new tab and click through a few pages. Within a few seconds the pageviews appear in the Rybbit dashboard.

If nothing shows up:

  • View the page source and search for script.js?siteId= to confirm the snippet is on the page.
  • Open the browser Network tab and check that script.js returns 200 and that POST requests go to /api/track.
  • Disable ad blockers, or set up a proxy so the script loads from your own domain.
  • See the script troubleshooting guide for other common causes.

Troubleshooting

  • Snippet not in the page source: the page was saved but not republished. Custom code only reaches the live URL on publish.
  • Assets > Scripts shows an upgrade prompt: Workspace scripts are not on your subscription. Add the snippet per page instead.
  • Duplicate pageviews: the snippet is both a workspace script and a page-level script. Keep one copy.
  • Old version still served: clear your browser cache after publishing; Instapage notes cached copies can outlive an update.

Next steps

On this page