Skip to content
Website builders

Bubble app analytics with Reveata

2 min read · Updated · By the Reveata team

Short answerPaste the Reveata snippet into Bubble's header script setting and deploy to Live. Every page and in-page navigation is counted, and signed-in users you identify with a Run javascript workflow are linked to their visits.

Bubble apps are full web applications built without code: sign-ups, logins, dashboards and payments. That makes signed-in users the natural link between traffic and revenue, and Reveata uses it.

What you get

  • Every page view. Go to page actions load a new page, and in-page changes go through the browser's History API, which the script follows.
  • Stripe plugin payments as revenue, from your own Stripe account, live payments only.
  • Payments credited to visits of users you identify by id and email.
  • Goals from workflows, with the Run javascript action.

How to install it

  1. In the Bubble editor, open Settings → SEO / metatags and paste the snippet into Script/meta tags in header.
  2. Keep data-exclude-paths="/version-test*" on the tag so visits to your development version stay out of your numbers.
  3. Deploy to Live. Header scripts change with the next deployment, and Bubble's free plan ignores them.

Bubble's own documentation is in the Bubble manual (opens in a new tab).

How payments are matched to visits

Bubble's Stripe plugin charges through your own Stripe account, so connect the same account in Reveata (Stripe revenue analytics). Payments made on Live count; test-mode payments from the development version are not imported.

The checkout carries no visitor id, so identify signed-in users. Add a workflow on Page is loaded (only when Current User is logged in), or after Sign the user up and Log the user in, with the Toolbox plugin's Run javascript action calling reveata('identify', …) with the user's unique id and email. A Stripe payment with the same email is then credited to that user's visits, including the one that first brought them. The workflow code is in the Bubble install guide.

Stripe Payment Links opened from a link element are credited with no code (Stripe Payment Links analytics).

Limits and common mistakes

  • Quotes in dynamic values. An email or name with a quote breaks the code. Use Bubble's :formatted as JSON-safe and drop the surrounding quotes.
  • Not deployed. The live app keeps the old header until you deploy.
  • Users who never sign in. Their payments still count, but stay unattributed.

Frequently asked questions

Can I serve the script from my own domain?

Yes, with a custom domain: the managed proxy needs one DNS record. Replace the snippet and deploy again.

How do I count a sign-up as a goal?

Add Run javascript to the sign-up workflow with window.reveata && window.reveata('goal', 'signup'), or give an HTML element's link the attribute data-reveata-goal="signup".

Do payments made before the identify call get linked?

Yes. Unattributed payments are retried every hour for 90 days, so identifying the user later still links them.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
IntegrationStripe revenue analytics by traffic sourceReveata reads your Stripe payments, invoices, subscriptions, refunds and lost disputes through a read-only connection, then credits each payment to the visit that brought the buyer, so revenue sits next to traffic in every report.IntegrationCarrd analytics for one-page sitesAdd the Reveata snippet to your Carrd site as a hidden Embed element placed in the head, then publish. Every visit is counted with its source, so you can see which links and channels bring signups and sales.IntegrationFramer analytics with sales credited to visitsAdd the Reveata snippet in Framer's Custom Code settings at the end of the head, on all pages, and publish. The script follows Framer's page changes, and sales from the checkouts your buttons link to are credited to their visits.IntegrationGhost analytics for posts, newsletters and membersPaste the Reveata snippet into Ghost's Site header code injection to track every page on Ghost(Pro) or self-hosted Ghost, with no theme change. A page only new members see turns each new membership into a goal with no code.IntegrationSquarespace analytics with Commerce orders matched to visitsPaste the Reveata snippet into Squarespace's Code Injection header and add a short call to the Order Confirmation Page field. Each order is then credited to the visitor who just bought.IntegrationWebflow analytics with revenue attributionPaste the Reveata snippet into Webflow's site-wide Head code and publish. Every page is counted, and sales from the checkouts your pages link to are credited to the visits that brought the buyer.