Guides · Plausible

Get a Mac notification for every Plausible goal, from the code that fires it

Plausible has no outgoing webhooks and its goals are counted inside Plausible, so there is nothing in its settings to point at a URL. What works is to POST to EventBar from the same place your backend records the goal, and you get the notification and the count without waiting for a dashboard refresh.

Needs: the free EventBar app on your Mac, an EventBar account, and a Plausible account with permission to add webhooks. About five minutes. Generic JSON.

Steps

  1. Create the webhook URL. In the EventBar dashboard, open the Webhooks tab, pick the group this belongs to (one group per site or app is the usual shape), choose the provider Generic JSON, name it, and press Create. Copy the URL; it stays visible and can be rotated any time.
  2. Paste it into Plausible. There is no webhook screen in Plausible. If you send goals server-side with Plausible's Events API (POST /api/event), add a second POST right next to it: {"goal":"Signup","page":"/pricing"} to your hook URL. If your goals are only tracked in the browser, move the ones you care about to the backend first; the browser can't be trusted with the hook URL. Create the EventBar hook as Generic JSON with type field goal.
  3. Trigger one. Most services offer a test delivery; otherwise do the real thing once. It shows up in the dashboard's Events tab within a second and in the menu bar, as an undefined type named after the event. That first one is your proof the wiring works.
  4. Make it read well. Press Define on the new type and give it a title and a body template. Fields come from the payload, nested ones with dots. The table below is a starting point.

What you'll see

TypeTitleBody template
signupSignup{page} · {plan}
purchasePurchase{page} · {amount}
newsletterNewsletter{page}

Every type has its own switch in the menu bar, so a noisy one can be quiet on this Mac and still counted. Counts cover the last hour, 24 hours, 7 days, 30 days and all time.

Worth knowing

The full contract, including how each preset reads a payload and what the answers mean, is in the API docs. Something about Plausible's payload changed? Tell us and we'll fix the guide.