Variables
Tip
Default Value
The default value - sometimes called Fallback Text - is specified after the | character. Consider this Email salutation:
Hi {contactfield=firstname|there},
Token modifiers
Label modifier for select and boolean fields
For select and boolean type fields, you can use the |label modifier to display the human-readable label instead of the stored value. It’s beneficial when your select fields store values like codes or IDs, but you want to display friendly labels to your Contacts.
Syntax:
{contactfield=field_alias|label}
Examples:
For a select field with alias
country_selectthat has options, such asusforUnited StatesorukforUnited Kingdom:{contactfield=country_select}displays the valueus{contactfield=country_select|label}displays the labelUnited States
For a boolean field with alias
is_subscriber:{contactfield=is_subscriber}displays the value1or0{contactfield=is_subscriber|label}displays the labelYesorNo
For both Contact fields and Company fields:
{contactfield=company_type|label}displays the label of a Company select field{contactfield=company_active|label}displays the label of a Company boolean field
Note
The |label modifier only works with select and boolean field types. For other field types, it displays the regular value.
Contact fields
See managing custom fields for more information.
Variable name |
Variable syntax |
|---|---|
Attribution |
|
Attribution Date |
|
Address Line 1 |
|
Address Line 2 |
|
Country |
|
City |
|
Company |
|
Contact ID |
|
|
|
|
|
Fax |
|
First Name |
|
Foursquare |
|
Google+ |
|
|
|
IP Address |
|
Last Name |
|
|
|
Mobile Number |
|
Phone Number |
|
Position |
|
Skype |
|
State |
|
|
|
Title |
|
Website |
|
Zip Code |
|
Contact Owner fields
Variable name |
Variable syntax |
|---|---|
First Name |
|
Last Name |
|
|
|
Position |
|
Signature |
|
Company Contact fields
See Companies for more information.
Variable name |
Variable syntax |
|---|---|
Address Line 1 (Company) |
|
Address Line 2 (Company) |
|
Annual Revenue (Company) |
|
City (Company) |
|
Country (Company) |
|
Description (Company) |
|
Email (Company) |
|
Fax (Company) |
|
Industry (Company) |
|
Name |
|
Number of Employees (Company) |
|
Phone Number (Company) |
|
State (Company) |
|
Website (Company) |
|
Zip Code (Company) |
|
Tip
Custom Company fields
The syntax for custom Company fields differs from core Company field syntax. You must not add the word ‘Company’ in the variable and instead treat it as a contactfield.
Mautic Component tokens
See Components and Manage Pages for more information.
Variable name |
Variable syntax |
|---|---|
Asset link for Asset id# |
|
Focus Item id# |
|
Form id# |
|
Landing Page link for page id# |
|
Email specific tokens
See Manage Emails for more information.
Variable name |
Variable syntax |
|---|---|
Signature |
|
Subject |
|
Tracking pixel |
|
Unsubscribe Text |
|
Unsubscribe URL |
|
Resubscribe URL |
|
Web View Text |
|
Web View URL |
|
Landing Page tokens
See Landing Pages for more information.
Variable name |
Variable syntax |
|---|---|
Meta Description |
|
Title |
|
Language bar |
|
Share Buttons |
|
Success Message |
|
Preference Center Landing Page tokens
See customizing preference center for more information.
Variable name |
Variable syntax |
|---|---|
Lead Identifier |
|
Category List |
|
Segment List |
|
Preferred Channel |
|
Channel Frequency |
|
Save Preferences |
|
Dynamic Web Content tokens
Variable name |
Variable syntax |
|---|---|
[Dynamic Content 1] | for example User-defined variable name |
|
Contact Monitoring
See Contact Monitoring for more information.
Variable name |
Variable syntax |
|---|---|
Language |
|
Title |
|
Landing Page Title |
|
URL |
|
Landing Page URL |
|
Referrer |
|
Tracking pixel |
|
UTM Campaign |
|
UTM Content |
|
UTM Medium |
|
UTM Source |
|
UTM Term |
|
Search filters
See the Search page for more information.
Alphabetical list
Variable name |
Variable syntax |
|---|---|
Address Line 1 |
|
Address Line 1 (Company) |
|
Address Line 2 |
|
Address Line 2 (Company) |
|
Annual Revenue (Company) |
|
Asset link for Asset id# |
|
Attribution |
|
Attribution Date |
|
Category List (Preference Center) |
|
Channel Frequency (Preference Center) |
|
City |
|
City (Company) |
|
Country |
|
Country (Company) |
|
Company |
|
Contact ID |
|
Description (Company) |
|
[Dynamic Content 1]for example: user-defined variable name |
|
|
|
Email (Company) |
|
|
|
Fax |
|
Focus Item id# |
|
Form id# |
|
Fax (Company) |
|
First Name |
|
Foursquare |
|
Google+ |
|
|
|
IP Address |
|
Landing Page link for page id# |
|
Language bar |
|
Last Name |
|
Contact Identifier (Preference Center) |
|
|
|
Meta Description (Landing Page) |
|
Mobile Number |
|
Name (Company) |
|
Number of Employees (Company) |
|
Phone Number |
|
Phone Number (Company) |
|
Position |
|
Save Preferences (Preference Center) |
|
Segment List (Preference Center) |
|
Signature |
|
Skype |
|
State |
|
State (Company) |
|
Subject |
|
|
|
Preferred Channel (Preference Center) |
|
Resubscribe URL |
|
Share Buttons |
|
Success Message |
|
Title |
|
Title (Landing Page) |
|
Unsubscribe Text |
|
Unsubscribe URL |
|
Website |
|
Website (Company) |
|
Web View Text |
|
Web View URL |
|
Zip Code |
|
Zip Code (Company) |
|