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

# Bubble

> Install Trfyx analytics in a Bubble.io application.

# Add Trfyx to your Bubble app

Bubble supports custom code through its SEO and metadata settings. Add the tracker globally so it can load across your application.

## Add the tracking script

1. Open your Bubble app editor.
2. Go to **Settings → SEO / Metatags**.
3. Find the field for scripts or meta tags in the page header.
4. Paste the Trfyx tracking script.
5. Replace the placeholders with the values from your Trfyx project.
6. Save and deploy the application.

```html theme={null}
<script
  defer
  data-website-id="YOUR_TRFYX_PROJECT_ID"
  data-domain="your_domain.com"
  src="https://app.trfyx.com/script.js"
></script>
```

<Warning>
  Replace `YOUR_TRFYX_PROJECT_ID` with the Website ID from your Trfyx project and `your_domain.com` with the domain you want to track. Keep the script URL as `https://app.trfyx.com/script.js`. Do not copy another project's Website ID.
</Warning>

## Verify installation

Open the deployed Bubble application, visit a few pages, and check your Trfyx dashboard for incoming traffic.

If your Bubble plan or configuration restricts custom code, confirm that the feature is available before troubleshooting the tracker itself.

## Troubleshooting

Check that the script is in the global header rather than only one page, the app has been deployed after the change, and browser developer tools show the tracker loading without errors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.