> ## Documentation Index
> Fetch the complete documentation index at: https://tinyanalytics.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bubble Analytics Integration

> Add tinyanalytics to a Bubble app by pasting the tracking snippet into Settings → SEO/metatags → Script/meta tags in header, then deploying to live.

To add tinyanalytics to a **Bubble** app, paste the tracking snippet into the app's header script setting. It applies to every page of your app.

## Before you start

* A tinyanalytics site. If you don't have one yet, follow the [Quickstart](/docs/tinyanalytics-quickstart).
* Your snippet from **Settings → Tracking** in your dashboard.

## Add the snippet to the page header

<Steps>
  <Step title="Open SEO / metatags">
    In the Bubble editor, go to **Settings → SEO / metatags**.
  </Step>

  <Step title="Paste into the header field">
    Paste your tinyanalytics snippet into **Script/meta tags in header**:

    ```html theme={null}
    <script defer src="https://dash.tinyanalytics.io/script.js"
      data-site-id="YOUR_SITE_ID"></script>
    ```
  </Step>

  <Step title="Deploy to live">
    Save, then **deploy to live** for the change to reach your published app.
  </Step>
</Steps>

<Tip>
  Replace `YOUR_SITE_ID` with your real site ID, and copy the full snippet from **Settings → Tracking** if you've toggled any options.
</Tip>

## Single-page navigation is tracked automatically

A Bubble app renders as a single-page app, and tinyanalytics records page changes as pageviews by default (`data-track-spa`). See [Track single-page apps](/docs/configure-tinyanalytics-tracking-script#track-single-page-apps) to change this.

## Verify

Open your deployed Bubble app in a browser, then check **Realtime** in your dashboard for your visit. See [Verify your setup](/docs/verify-tinyanalytics-installation) for the full check.

<Check>
  Your install is working when your own visit appears in **Realtime** in your dashboard.
</Check>

## Related

<Columns cols={2}>
  <Card title="Install on any platform" icon="puzzle-piece" href="/docs/integrations/install-website-analytics">
    The universal method and other platforms.
  </Card>

  <Card title="Configure the tracking script" icon="sliders" href="/docs/configure-tinyanalytics-tracking-script">
    Every `data-*` option you can set.
  </Card>

  <Card title="Track custom events" icon="hand-pointer" href="/docs/custom-event-tracking">
    Measure signups and clicks.
  </Card>

  <Card title="Verify your setup" icon="circle-check" href="/docs/verify-tinyanalytics-installation">
    Confirm tracking works.
  </Card>
</Columns>


## Related topics

- [Angular Analytics Integration](/docs/integrations/angular-analytics.md)
- [Gatsby Analytics Integration](/docs/integrations/gatsby-analytics.md)
- [Astro Analytics Integration](/docs/integrations/astro-analytics.md)
