Adding metadata
In this example, we will track the eventproject-created
and attach the name of the project to the contact.
Metadata keys are case-sensitive!
Using metadata in templates
You will often want to use metadata in your templates. Personalizing your messages is a great way to increase engagement and conversion rates. When you are creating a new template, you can use the{{data}}
syntax to access the metadata. For example, if you wanted to use the name of the project in your template, you could use {{project}}
.
Using metadata in transactional emails
You can also use metadata in your transactional emails. Use the{{data}}
syntax to access the metadata. For example, if you wanted to use the name of the project in your email, you could use {{project}}
.
Default values
You can also set default values for metadata keys. If a key does not exist on a contact, the default value will be used instead. Extend the template with a default value using??
Reserved keys
There are a few reserved keys that you cannot use as metadata keys. Plunk will ignore these keys and automatically set them for you.plunk_id
: The ID of the contact.plunk_email
: The email of the contact.