![]() | Important: If you’re not comfortable using HTML code, our email, landing page, and SMS editors have drop-down "Personalize" menus to help you insert variable tags with just a few clicks. |
Variable tags can be used in the subject line, preheader, or body of an email or custom code email or in the body content of an SMS message or landing page.
![]() | Design tip: Not all properties are available in our SMS editor or landing page editor drop-down menus. SMS messages are only compatible with select contact property variable tags, and Landing pages are only compatible with the account property variable tags. |
Contact properties are pulled from your contact records and show information that is unique to each individual contact.
Note: When you preview your email or send a test, the contact detail displays the personal information you provided for your own account to give you an idea of what your contacts will see.
Contact detail name | Variable tag code (not case-sensitive) |
---|---|
First name | [[FirstName]] |
Last name | [[LastName]] |
Middle name | [[MiddleName]] |
Prefix | [[Prefix]] |
Company | [[CompanyName]] |
Department | [[Department]] |
Job title | [[JobTitle]] |
Address line 1 | [[AddressLine1]] |
Address line 2 | [[AddressLine2]] |
Address line 3 | [[AddressLine3]] |
City | [[City]] |
State name | [[StateName]] |
Postal code | [[PostalCode]] |
Postal code sub zone | [[SubPostalCode]] |
Country name | [[CountryName]] |
Country code | [[CountryCode]] |
Alternate Address line 1 | [[AltAddressLine1]] |
Alternate Address line 2 | [[AltAddressLine2]] |
Alternate Address line 3 | [[AltAddressLine3]] |
Alternate city | [[AltCity]] |
Alternate state name | [[AltStateName]] |
Alternate state code | [[AltStateCode]] |
Alternate postal code | [[AltPostalCode]] |
Alternate postal code sub zone | [[AltSubPostalCode]] |
Alternate country name | [[AltCountryName]] |
Alternate country code | [[AltCountryCode]] |
Cell phone | [[CellPhone]] |
Home phone | [[HomePhone]] |
Work phone | [[WorkPhone]] |
Fax number | [[FaxPhone]] |
Birthday | [[Birthday]] |
Birthday month | [[BirthdayMonth]] |
Birthday day | [[BirthdayDay]] |
Anniversary | [[Anniversary]] |
Email address | [[EmailAddress]] |
Website | [[Website]] |
Note | [[Note]] |
Custom field | [[Custom.Field_Name]] (Replace the text in red with your custom field name. If there are spaces in your custom field name, substitute them with underscores.) |
Custom Text 1 through 15 | [[CustomText1]] through [[CustomText15]] |
![]() | Did you know? If you need to make changes to a contact's information, you can edit their contact record, and if you need to make bulk updates to multiple contacts, you can import a file with the new information and it's added to the existing contact records. |
Account properties are unique to your organization.
Account detail name | Variable tag code (not case-sensitive) |
---|---|
Organization name | [[account.OrganizationName]] |
Email address | [[account.contactEmail]] |
Phone number | [[account.organizationPhone]] |
Website address | [[account.SiteURL]] |
Logo URL | [[account.LogoURL]] |
Address line 1 | [[account.AddressLine1]] |
Address line 2 | [[account.AddressLine2]] |
Address line 3 | [[account.AddressLine3]] |
City | [[account.City]] |
State name | [[account.State]] |
Two-letter state abbreviation | [[account.usState]] |
Country | [[account.Country]] |
Country code | [[account.CountryCode]] |
Postal code | [[account.PostalCode]] |
Signature name | [[account.signaturename]] |
Signature email | [[account.signatureemail]] |
Signature image URL | [[account.signatureImageURL]] |
Facebook URL | [[account.social.facebookURL]] |
Instagram URL | [[account.social.instagramURL]] |
LinkedIn URL | [[account.social.linkedinURL]] |
Pinterest URL | [[account.social.pinterestURL]] |
Twitter URL | [[account.social.twitterURL]] |
YouTube URL | [[account.social.youtubeURL]] |
Constant Contact link | [[ctctLink]] |
![]() | Did you know? If you need to make changes to your account properties, you have to update the information under the Account details tab in My Account. |
Constant Contact Partners can use all of the contact and account details and can also use this additional account detail:
Account detail name | Variable tag code (not case-sensitive) |
---|---|
Partner company name |
[[Partner.CompanyName]] (Your company name is automatically included.) |
Compliance detail name | Variable tag code (not case-sensitive) |
---|---|
Unsubscribe link | [[unsubscribe]] |
Partner unsubscribe link | [[partner.unsubscribe]] |
Update profile link | [[updateLink]] |
Privacy policy link | [[customprivacypolicyURL]] |
Constant Contact Data Notice link | [[aboutctctlink]] |
![]() | Did you know? You can link an image in your email to your Update Profile, Unsubscribe, Privacy Policy URL, or any other link property by pasting the variable tag in the Link URL field. |
Variable tags can be used to specify fallback options if a contact is missing the tag information, or to give more granular instructions for a tag through if/else conditional statements.
If you add a contact detail field, you can add a fallback contact detail or URL to display in the event your contact is missing the contact detail field in their contact record. Use any of the following variations:
[[FIELD]] [[FIELD OR "Fallback value"]] [[FIELD or https://google.com]] [[FIELD OR https://google.com]]
You can apply conditional logic to a variable tag to create branching. The IF statement is executed if the statement inside the condition is true; otherwise the ELSE statements is executed:
IS statement syntax
[[IF FIELD IS somevalue]] [[IF FIELD IS EMPTY]] [[IF FIELD IS NOTEMPTY]] [[ELSE]] [[ENDIF]]
ISNOT statement syntax
[[IF COUNTRYNAME ISNOT "USA"]]...[[ENDIF]] [[IF COUNTRYNAME ISNOT "USA"]] ... [[ELSE]] ... [[ENDIF]]
Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center