Integration Guides

Teachable

Add Rybbit analytics to your Teachable site

Teachable adds tracking scripts through Code Snippets in the school admin, where the Head Code Snippets section places code inside the <head> of every page of your school. Code Snippets are available on the Builder plan and above.

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 Teachable

  1. In the school admin, go to Site > Code Snippets.
  2. Paste the snippet into the Head Code Snippets section, which applies to all pages and all users.
  3. Click Save.

The Logged In Snippets and Logged Out Snippets sections restrict code to one audience. Leave them empty for Rybbit so students and prospects are tracked alike; if you only want to measure the public site, use Logged Out Snippets instead of the head section.

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

  • Code Snippets is missing from the Site menu: it needs the Builder plan or higher. Schools on lower plans cannot add custom scripts.
  • Checkout and login pages are not tracked: head code snippets do not apply to SSO-based login or checkout pages served from sso.teachable.com. Pages on your school domain, including the course area, are covered.
  • Snippet pasted into a lesson's Custom HTML block: that block only affects one lesson. Use Code Snippets for site-wide tracking.

Next steps

On this page