Skip to content

Help centre

Sending your app's events

Barista needs to know what happens after someone clicks an ad: did they sign up, start a trial, pay? Each app sends that through a small package, and Stripe confirms the payments.

Set it up (Owners and Admins)

  1. Open the business's Tracking page and choose Create app key. Copy the three lines it shows into the app's environment. The secret is shown once; if it's lost, replace the key.
  2. A developer installs the cafe/barista-client package in the app, adds its middleware, and calls it when someone signs up, starts a trial, pays, or reaches a milestone (for apps sold by demo, such as a booked demo). The package's README has the details.
  3. Choose Set up Stripe webhook, add the URL it shows as a webhook in the app's Stripe account (subscription events), and paste Stripe's signing secret back into Barista.

Events appear under Latest events within a minute or two.

What Barista keeps about your customers

  • The app's own user ID, how they first arrived (ad click IDs and UTM tags), and their sign-up, trial and subscription events.
  • Their email and phone, encrypted. These are sent to Google and Meta only in scrambled (hashed) form, to match conversions to ad clicks.
  • When someone deletes their account in your app, the app tells Barista and their email and phone are wiped. Contact details of anyone inactive for 25 months are wiped automatically. The scrambled versions stay so past results still add up.

Only the app user ID is shown in Barista; never emails or phone numbers.

Confirm your privacy policy covers it

Sharing hashed contact details with Google and Meta is personal-data sharing under Canada's privacy law (PIPEDA), and Quebec's Law 25 is stricter. Once a business starts sending events, Owners and Admins see a reminder until an Owner confirms, on the Tracking page, that the privacy policy tells customers about it. The confirmation (who, when and which policy) is recorded and can be withdrawn.

Stripe Connect

If an app takes payments for its own customers through Stripe Connect (for example YardRunner), those payments are ignored. Only the app's own subscriptions count.