# Ghost new member notifications on your phone > Get a push notification when someone signs up as a member of your Ghost site, louder when they sign up as a paying member. - Company: Ghost (https://www.justpush.io/recipes/ghost) - Event: `member.added` (Member added) - Tags: Websites & CMS, Newsletters, Sign-ups & users - Install: https://studio.justpush.io/recipes/ghost/new-member - Web page: https://www.justpush.io/recipes/ghost/new-member ## Setup 1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL. 2. In Ghost Admin, go to Settings > Advanced > Integrations and click Add custom integration (name it JustPush). 3. Click Add webhook, pick Member added as the event and paste your webhook URL (shown in Studio after install) as the target URL. 4. Leave the secret empty (JustPush doesn't check it yet) and save. 5. To get a **View member** button that opens the member in Ghost Admin, add your site's address to the target URL: 6. ``` 7. your webhook URL (shown in Studio after install)?site=https://yoursite.com 8. ``` 9. Ghost can sign webhooks with a secret (`X-Ghost-Signature`), but JustPush doesn't check that signature yet, so leave the secret empty and keep your endpoint URL private. 10. On Ghost(Pro), custom integrations need a plan that includes them; self-hosted Ghost always has them. ## Code Studio calls `handleRequest(request)` with the incoming webhook (`{ method, headers, body, query, raw }`) and sends the message object it returns. Returning `null` sends nothing. ```js // Ghost โ†’ member.added (new member) // Fires when someone signs up as a member of your Ghost site, free or paid, or when // you add or import one in Ghost Admin. // Docs: https://docs.ghost.org/webhooks // Member statuses, and how to title the push for each. const TITLES = { free: "๐Ÿ‘‹ New member", paid: "๐Ÿ’ฐ New paid member", comped: "๐ŸŽ New complimentary member", gift: "๐ŸŽ New gift member", } // Ghost sends plain strings; treat blanks as missing. function text(value) { return typeof value === "string" && value.trim() ? value.trim() : null } function pick(table, key, fallback) { return Object.prototype.hasOwnProperty.call(table, key) ? table[key] : fallback } // Only link to real http(s) URLs. function link(url, cta) { return typeof url === "string" && /^https?:\/\//.test(url) ? [{ cta, url }] : [] } function handleRequest(request) { const body = request.body && typeof request.body === "object" ? request.body : {} const member = body.member?.current const previous = body.member?.previous // Guard: only new members. Newer Ghost versions name the event in the body; older ones // don't, and a new member is the only member payload with an empty "previous". const added = body.event ? body.event === "member.added" : previous && typeof previous === "object" && Object.keys(previous).length === 0 if (!added || !member || typeof member !== "object" || !member.email) { console.log(`Ignoring Ghost "${body.event ?? "unknown"}" event`) return null } const name = text(member.name) const email = text(member.email) const who = name && email ? `${name} (${email})` : name || email const paid = member.status === "paid" const tier = Array.isArray(member.tiers) ? text(member.tiers[0]?.name) : null // Attribution isn't documented for webhooks; use it when it's there. const source = text(member.attribution?.referrer_source) // ?site=https://yoursite.com adds a button to the member in Ghost Admin. const site = text(request.query?.site)?.replace(/\/+$/, "") return { title: pick(TITLES, member.status, TITLES.free), message: `${who} signed up` + (tier && member.status !== "free" ? ` ยท ${tier}` : "") + (source ? ` ยท via ${source}` : ""), topic: "Ghost", priority: paid ? 0 : -1, // Normal for a paying member, Low for a free signup ...(paid ? { sound: "cashregister" } : {}), buttons: site && member.id ? link(`${site}/ghost/#/members/${member.id}`, "View member") : [], } } ``` ## Ghost member.added webhook payload (sample) ```json { "event": "member.added", "member": { "current": { "id": "623199bfe8bc4d3097caefe0", "name": "Jamie", "note": null, "uuid": "4fa3e4df-85d5-44bd-b0bf-d504bbe22060", "email": "jamie@example.com", "tiers": [], "comped": false, "labels": [], "status": "free", "created_at": "2026-09-29T08:03:11.000Z", "subscribed": true, "updated_at": "2026-09-29T08:03:11.000Z", "email_count": 0, "geolocation": null, "newsletters": [ { "id": "62750bff2b868a34f814af08", "name": "My Ghost Site", "status": "active", "description": null } ], "avatar_image": null, "last_seen_at": null, "subscriptions": [], "email_open_rate": null, "email_opened_count": 0 }, "previous": [] } } ``` ## FAQ ### Does this work on iPhone and Android? Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification. ### Do I need to write code? No. Install the recipe in Studio, paste your webhook URL into Ghost and you are done. The code is there if you want to change the text, the sound or the buttons. ### Can I change what the notification says? Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save. ### What does it cost? JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.