Personalizing campaigns (adding first name)

When you're sending a campaign (in-app or email), you may want to send a personalized message that mentions a contact's first name, their company name, their plan, or some other custom attribute.

While there's no interface to do this just yet, we do have this feature built into Drift.

Here's how it works...

When composing your campaign, in the subject or body, you'll want to add the following syntax to your message...

{{ user.attribute }}

The only thing you need to change is attribute to an all-lowercase version of your attribute.

So, for example, you could do {{ user.firstname }}, like in the example below:

If you want to set a default, all you need to do is follow this syntax:

{{ user.firstname|d("there") }}

So you want to add the "pipe" character and then 

d("DEFAULT") |d(“there”)

So, in this example, if the contact doesn't have a first name set, it will send "Hey there," as the opening to the message in the body of the campaign.

If you're technical and want to look into this a little bit more, here's the library we use for these tags.


Was this article helpful?

Can’t find what you’re looking for?

Talk To Us