Integration Guides

Hostinger Website Builder

Add Rybbit analytics to your Hostinger Website Builder site

Hostinger Website Builder has a Custom code integration in the website settings that adds code to every page. Script tags are placed at the end of <body> by default; a data-render-head attribute moves them into <head>.

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 Hostinger Website Builder

  1. Open your site in the builder and click (More) at the top to open the website settings, then choose Integrations.
  2. Select Custom code.
  3. Paste the snippet with data-render-head added so it loads from <head>:
<script src="https://app.rybbit.io/api/script.js?siteId=YOUR_SITE_ID" defer data-render-head></script>
  1. Save the changes, then click Update website to publish. Custom code runs on the live site and in preview, not inside the editor.

Without data-render-head the builder moves <script> tags to the end of <body>. The tracker still works there; the attribute only makes it load earlier.

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

  • No requests to script.js in the editor: expected. Integrations are injected into the published site only, so check the live URL or the preview.
  • Snippet saved but not in the page source: the site was not updated after saving. Click Update website.
  • Site breaks after adding several snippets: paste snippets one after another, never nested inside each other. If the page still fails, remove all custom code, update, and add the snippets back one at a time.

Next steps

On this page