Email and Digital Marketing
How can we help you?
Search our help articles, video tutorials, and quickstart guides

You've got this. You've got us. Search our Knowledge Base to quickly find answers to your questions.

Using variable tags in Constant Contact email, landing page, and SMS editors

Article: 000048289
Updated: January 2, 2026

Using the correct syntax for variable tags throughout the content of your emails, or the body content of your SMS messages and landing pages

Exclamation Point IconImportant: 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. 

 

Light Bulb IconDesign 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

Contact properties are pulled from your contact records and show information unique to each individual contact. When inserting variable tags in the subject line of an email, be sure to include the fallback text statements. Otherwise, you'll receive a "Make sure you are not missing a part of your subject line personalization" error message.

When you preview your email or send a test, the contact detail displays the personal information you provided for your own account, giving you an idea of what your contacts will see.

While variables can be used within your SMS messages, they cannot be used within a URL. For example, creating an SMS with the message "Visit our website at www.mycompany.com/[[City]]" will result in an error and prevent the SMS from being sent.

 

Contact detail nameVariable 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]]

 

Light Bulb IconDid 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

Account properties are unique to your organization.

Account detail nameVariable 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]]
View as Webpage link[[ViewAsWebPage]]

 

Light Bulb IconDid you know? To make changes to your account properties, update the information under the Account Details tab in My Account.

 

Partner account properties

Constant Contact Partners can use all of the contact and account details, and can also use this additional account detail:

Account detail nameVariable tag code (not case-sensitive)
Partner company name

[[Partner.CompanyName]]

(Your company name is automatically included.)

 
 

Compliance properties

Compliance detail nameVariable 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]]

 

Light Bulb IconDid 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. 

 

Edit this block Icon
 

 

Conditional statements

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.

 

Fallback text statements

If you add a contact detail field, you can also add fallback text or a URL to display if the contact is missing the contact detail field in their contact record. Use any of the following variations:

[[FIELD OR ""]]
[[FIELD OR "Fallback text"]]
[[FIELD or https://google.com]]
[[FIELD OR https://google.com]]

 

If/else statements

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 statement 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]]

 


Questions?

Ask the Community

Did this article answer your question?


Constant Contact Logo

Copyright © 2026 · All Rights Reserved · Constant Contact · Privacy Center