> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Bubble web analytics installation Canonical URL: https://posthog.com/docs/web-analytics/installation/bubble > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.i.posthog.com` instead of `https://us.i.posthog.com` (ingestion host). ## On this page - [Copy the web snippet](#copy-the-web-snippet) - [Add to Bubble](#add-to-bubble) - [Send events](#send-events) - [Next steps](#next-steps) 1. 1 ## Copy the web snippet Required First, copy your PostHog web snippet: HTML ```html ``` 2. 2 ## Add to Bubble Required Go to your Bubble site settings by clicking on the icon in the left-hand menu. If you haven't already, sign up for at least the **Starter** site plan. This enables you to add custom code. Then: 1. Go to the **SEO / metatags** tab in site settings. 2. Paste your PostHog snippet in the **Script/meta tags in header** section. 3. Deploy your site to live. 3. 3 ## Send events Click around and view a couple pages to generate some events. PostHog automatically captures pageviews, clicks, and other interactions for you. If you'd like, you can also manually capture custom events: JavaScript ```javascript posthog.capture('my_custom_event', { property: 'value' }) ``` 4. 4 ## Next steps Recommended After installing PostHog and ensuring [autocapture](https://posthog.com/docs/product-analytics/autocapture.md) is enabled, head to your [web analytics dashboard](https://posthog.com/docs/web-analytics/dashboard.md) to see your data. And then check out our [start here](https://posthog.com/docs/web-analytics/start-here.md) guide. > **PostHog tip:** Web analytics works with [anonymous events](https://posthog.com/docs/data/anonymous-vs-identified-events.md). This means if you are primarily using PostHog for web analytics, it can be significantly cheaper for you.