# Can you insert Member ID's into newsletters

**URL:** https://forum.ghost.org/t/can-you-insert-member-ids-into-newsletters/59597
**Category:** Themes
**Created:** [August 15, 2025, 12:42am UTC](https://forum.ghost.org/t/can-you-insert-member-ids-into-newsletters/59597 "2025-08-15T00:42:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Brambster](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/brambster/32/25026_2.png) [@Brambster](https://forum.ghost.org/u/Brambster)
#### Post date: [August 15, 2025, 12:42am UTC](https://forum.ghost.org/t/can-you-insert-member-ids-into-newsletters/59597/1 "2025-08-15T00:42:04Z")

</div>

We have a need to send out a combination of static content and then per-member customized content. We know how to do this on the website using some JS and cookies and modifying themes but we don’t know how to make this work in the newsletters themselves due to a seeming lack of ability to insert system variables.

Note that we’re hosted currently with Ghost Pro and would like to avoid moving the site so that we could hack it to make it do what we need for it to do. That’s just more work for now and I prefer not to fork code if we can help it.

We can deliver this custom content in images using the member ID (or other identifier such as member email address) as a script argument where a different server will generate the graphic on the fly based on preferences we also store elsewhere. So all we need is to be able to insert a variable representing the member as plain text wherever we want to in a post.

The bottom line is that I need to figure out some way to insert an identifier variable for the member into a path and I’m wondering if there is a way to do this by modifying themes or newsletter templates.

Does anyone have a suggestion for how to go about doing this?

---

<div class="post-metadata">

### Author: ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)
#### Post date: [August 15, 2025, 12:47pm UTC](https://forum.ghost.org/t/can-you-insert-member-ids-into-newsletters/59597/2 "2025-08-15T12:47:30Z")

</div>

I tested this this morning and ended up writing about it, since it was quite insightful. It includes a list of all email personalization tags that are available in Ghost:

> **[Email Personalization in Ghost](https://www.magicpages.co/email-personalization-in-ghost/)**
>
> Today I woke up to a post on the Ghost forum that piqued my interest:
> 
> Can you insert Member ID’s into newslettersWe have a need to send out a combination of static content and then per-member customized content. We know how to do this on the website...

However, achieving what you want to do is still tricky.

The personalizations only work inside email cards. That is problematic in the sense that email cards cannot render HTML or images. The only thing you could do is add a link there (or try to display what you want to show as static text with the personalization options available).

This would get you a clickable link in most email clients:

```auto
Your personalized content:
https://example.com/content?key={key}

```

But that’s about everything that’s possible.

I tried putting an `<img>` tag into the email card, but the email rendering logic treats that as static content. While the personalization gets processed, it won’t render as an image.

---

<div class="post-metadata">

### Author: ![Brambster](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/brambster/32/25026_2.png) [@Brambster](https://forum.ghost.org/u/Brambster)
#### Post date: [August 16, 2025, 3:09am UTC](https://forum.ghost.org/t/can-you-insert-member-ids-into-newsletters/59597/3 "2025-08-16T03:09:07Z")

</div>

Well damn Jannis, that was succinct and also much appreciated even though you were unable to find a solution, but at least you documented that black hole of email cards.

I think we have three options:

1. Lobby for changes to how these variables can be used, though we would still have to generate images instead of HTML which is a good amount of work, though Ghost should absolutely support user variables in both HTML and text, and on the website as well as in newsletters.

2. Set up a sidecar application that looks for certain types of posts (we need this for a particular daily email) and uses the API to get user info and the content of the post, generating our own emails, and then sending them to a separate MailGun account (could be anything of course but bulk mail is notoriously difficult for non-bulk mail organizations).

3. Move to self-hosting and fork the editor code or newsletter generation code, though we would still be in the position of needing to generate the per-user content using graphics unless we hacked it a lot.

I’m heavily leaning to #2. Ghost actually has competitive pricing when you factor in MailGun for largish email lists. We have about 5,000 and counting, and will be emailing on average twice a day for about 5 months of the year or 300,000/month for 5 months (minimal for the other 7).

---

<div class="post-metadata">

### Author: ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)
#### Post date: [August 16, 2025, 9:17am UTC](https://forum.ghost.org/t/can-you-insert-member-ids-into-newsletters/59597/4 "2025-08-16T09:17:51Z")

</div>

I would heavily lobby for option 2, as well.

Forking is possible, but with bigger changes to the editor/rendering I would not want to merge and test every single future update (which usually happen on a weekly basis).

I know there are huge publications that have forked Ghost and made it something truly unique, but they are also years behind in updates. Wouldn’t recommend 😃

---

<div class="post-metadata">

### Author: ![Brambster](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/brambster/32/25026_2.png) [@Brambster](https://forum.ghost.org/u/Brambster)
#### Post date: [August 16, 2025, 5:32pm UTC](https://forum.ghost.org/t/can-you-insert-member-ids-into-newsletters/59597/5 "2025-08-16T17:32:24Z")

</div>

I settled on the sidecar approach last night after a little more thought. It shouldn’t be too terribly difficult to do and I think we can pull some tricks like track unsubscribes by setting up a dummy newsletter to match in Ghost and keeping track there so that newsletter management is in one place.

---

<div class="post-metadata">

### Author: ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)
#### Post date: [May 14, 2026, 12:48pm UTC](https://forum.ghost.org/t/can-you-insert-member-ids-into-newsletters/59597/6 "2026-05-14T12:48:58Z")

</div>

It may be time to revisit this discussion, in light of [Added support for member uuid substitution in emails (#25946) · TryGhost/Ghost@fe79e4f · GitHub](https://github.com/TryGhost/Ghost/commit/fe79e4f17c835b03f106030b258a732ad7813c53)

I’m not sure if it’s usable for what I wanted it for, but it’s worth another look, perhaps.

Yes. Yes it is.

I constructed a link in the editor, like this:

```auto
https://example.tld/?user=%%{uuid}%% 

```

And that came through fine on email preview!

So… that opens up some opportunities to do links with uuid tagging.

I also tried an html card with an image. That also appears to substitute, so there are perhaps some tracking pixel possibilities here.
