Learn how to set up analytics in Bubble with a clear step‑by‑step guide to track user behavior, improve performance, and optimize growth.

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.
To set up analytics in Bubble, the simplest valid approach is to add a tracking script (like Google Analytics or Plausible) in Settings → SEO/metatags and then trigger custom events using Bubble’s built‑in “Run JavaScript” action or native plugin events, so pageviews and actions are tracked automatically.
Bubble doesn’t provide built‑in behavioral analytics. Instead, you connect an external analytics tool. The most common are Google Analytics, Plausible, and Amplitude. These tools track page views and events when their script runs on your page.
Add your GA snippet in Bubble:
<!-- Google tag -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXX'); // Replace with your measurement ID
</script>
For user actions you care about (signup, purchase, clicked CTA), trigger a GA event using Run JavaScript in your workflow.
gtag('event', 'signup_completed'); // Fires a custom event
You add this via: Workflow → Add an action → Plugins → Run JavaScript.
Bubble loads pages dynamically, so GA might not auto-track SPAs. Add a workflow on Page is loaded (entire) and trigger a manual pageview:
gtag('event', 'page_view', { page_path: window.location.pathname });
Plausible or Fathom are similar: paste their script in the header and they auto-track pageviews. Events work the same way—call their JS function in Bubble workflows.
plausible('Signup'); // Example Plausible event
This keeps your Bubble app fast and private without extra configuration.
Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.
Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!
Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.
Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.
Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.
Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.
Fix broken workflows | Optimize logic | Boost performance | Scale with confidence