Email campaigns, variables, and HTML

  • 8 November 2023
  • 3 replies

Userlevel 1

Hi folks.

I’m wondering if there is any way to add a URL to an automated email that includes a unique link for that user. Maybe insert the user ID in there, like myURL/page?userid=[userId]. That sort of thing.

I’m aware of the inSidedData object, but I suspect that won’t work in an email. So would the way be to link to a custom page on the community and do a redirect from there?

Basically, I’d like to have a call to action in the email, that sends a notification to our support team, and obviously they need to know who the notification came from.

Any thoughts or suggestions welcomed,



3 replies

Userlevel 1

So, in case it would help anyone else, my workaround here is:

  • In the email, point the user to a custom page on the community
  • The custom page has a hidden HTML widget to use the data object and get user ID
  • The hidden HTML widget pings the link and passes the user ID
  • If I need, the HTML can also forward us to a proper landing page

It’s a two-step process, instead of one, but I think it works fine.

Userlevel 3

@Seb - do you have any thoughts on this?

Userlevel 5
Badge +1

Thanks for looping me in @arminfpop. We currently don’t have any plans to add variables to the HTML of Email Campaigns, but I’ll add this topic to the list of use cases for variables for when we do plan an iteration on this part of Email Campaigns!