Merge tags are placeholders that are replaced with real values for each contact. Use them in email subjects and content, popup and banner text, and in any action setting marked “Merge tags allowed”. In the builder and designers, the { } button next to a field opens a picker with every tag available for that workflow.
Syntax
| Write | Result |
|---|---|
{{contact.first_name}} | The contact’s first name, or nothing if it’s empty. |
{{contact.first_name|there}} | The first name, or “there” if it’s empty: “Hi {{contact.first_name|there}}” never reads “Hi ,”. |
{{order.total}} | The formatted order total, when the workflow has an order. |
{{trigger.minutes_idle}} | Any value the trigger provides. |
{{coupon.code}} | A value added by an earlier action (here: Create personal coupon). |
- Unknown tags, or tags with no data in this workflow, are replaced by the fallback or by nothing. They are never shown raw.
- Values are escaped for where they go: HTML in emails and popups, JSON in webhook bodies. Tags that produce lists (
{{order.items}},{{cart.items}}) output a formatted list in rich text and plain text elsewhere. - Custom contact fields work like built-in ones: a field with the key
companyis{{contact.company}}. - Popup and banner text is personalised for known visitors when it is shown; for anonymous visitors the fallback is used.
Passing data between steps
Some actions add data for later steps. Create personal coupon adds {{coupon.code}}, so the email after it can include the code. Custom actions can do the same (see Developers).
Abandoned cart email
Hi {{contact.first_name|there}},
You left {{cart.item_count}} items in your cart ({{cart.total}}).
Here's 10% off to finish your order: {{coupon.code}} (valid until {{coupon.expires}}).
{{cart.recovery_url}}All merge tags
Note
Order, product, cart, coupon and customer tags need WooCommerce; EDD order tags need Easy Digital Downloads. They are filled in when the workflow’s trigger (or an earlier step) provides that data.
Contact
| Tag | Inserts |
|---|---|
{{contact.email}} | |
{{contact.first_name}} | First name |
{{contact.last_name}} | Last name |
{{contact.full_name}} | Full name |
{{contact.name}} | Name (or email) |
User
| Tag | Inserts |
|---|---|
{{user.display_name}} | Display name |
{{user.login}} | Username |
{{user.role}} | Role |
{{user.registered}} | Registration date |
Trigger data
Any value the trigger provides (listed under “Provides” on the Triggers page), or added by an earlier action: {{trigger.order_id}}.
Order
| Tag | Inserts |
|---|---|
{{order.number}} | Order number |
{{order.total}} | Total |
{{order.subtotal}} | Subtotal |
{{order.status}} | Status |
{{order.date}} | Order date |
{{order.items}} | Items (list) |
{{order.payment_method}} | Payment method |
{{order.shipping_method}} | Shipping method |
{{order.billing_address}} | Billing address |
{{order.shipping_address}} | Shipping address |
{{order.view_url}} | View order link |
{{order.payment_url}} | Pay for order link |
{{order.refund_amount}} | Refund amount |
Product
| Tag | Inserts |
|---|---|
{{product.name}} | Name |
{{product.url}} | Link |
{{product.price}} | Price |
{{product.image}} | Image |
{{product.image_url}} | Image URL |
{{product.sku}} | SKU |
{{product.short_description}} | Short description |
Cart
| Tag | Inserts |
|---|---|
{{cart.items}} | Items (list) |
{{cart.total}} | Total |
{{cart.item_count}} | Number of items |
{{cart.recovery_url}} | Link that restores the cart |