We're making it easier to get around Constant Contact with a brand new left navigation. Not all accounts have that change yet, so if your navigation looks different from our articles, that's why–but everything from the top can now be found on the left!

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.

Insert dynamic links in an email

Article: 000038461
Updated: January 26, 2024

Create a dynamic link by customizing the URL so that contacts see more personalized content that's relevant to them when they click on the link

Exclamation Point IconImportant: This is an advanced topic and requires the understanding of web development. 
 

Using dynamic links in an email gives your contacts a personalized experience by creating a custom URL that, when clicked, brings the contact to a webpage containing content specific to them.

If the pages of your website use subdirectories or query parameters (which are the variables attached at the end of a webpage's URL) that match contact detailscustom fields, or account details defined in your Constant Contact account, you can create dynamic links in your email based on that information. For example, if you have the city for each of your contacts stored in your account, and your website has different pages with city-specific information, you can create a dynamic link using the "city" variable.


To add a dynamic link in your email, simply add the proper variable to the end of your URL after the query parameter:

https://www.yourdomainhere.com/exampleaction?exampleparameter=[[variable]]
     

Ways to use dynamic links

How you use dynamic links and where the link directs each of your contacts when they click on the link will vary based on your business and website setup. Here are some examples of how dynamic links can be used:

  • A yoga studio can direct customers to the relevant class schedule pages on its website based on each contact's city or membership level.
  • A realtor can direct potential buyers to the home listings in their area based on the contact's state or zip code.
  • A membership organization that stores member ID numbers as a custom field in Constant Contact can direct contacts to their individual login page or automatically log into their account for them.
  • A tax professional can direct clients to a webpage to schedule an appointment and auto-populate the contact's phone number.
 
Light Bulb IconTip: To ensure all your contacts receive a personalized experience as you intend with your dynamic links, be sure to collect the appropriate details from new subscribers, and ask your existing contacts to update their profiles if the information is missing.
 

 

Insert a dynamic link with one or more variables

You can set up dynamic links in your email by adding the proper variable(s) for the contact or account detail to the end of the URL. Make sure the dynamic link URL follows the same pattern as the URLs for the webpages you'll be sending contacts to. For example:
 

 Webpage URL examples:Dynamic link URL:
Dynamic link with one variable
  • https://www.halfmoonyogastudio.com/locations/search?city=worcester
  • https://www.halfmoonyogastudio.com/locations/search?city=boston
  • https://www.halfmoonyoagastudio.com/locations/search?city=springfield
https://www.halfmoonyogastudio.com/locations/search?city=[[city]]
Dynamic link with multiple variables
  • https://www.sewingstudio.com/stores/search?state=ma&search?city=boston
  • https://www.sewingstudio.com/stores/search?state=ct&search?city=hartford
  • https://www.sewingstudio.com/stores/search?state=ri&search?city=providence
https://www.sewingstudio.com/stores/search?state=[[stateName]]&search?city=[[city]]
 


To insert a dynamic link into your email:

  1. While editing your email, highlight the text you want to link, click the link icon, and select "Web Page" from the drop-down.

    Text Toolbar, Link drop-down, and Web Page option
     
  2. (Optional) Edit the text that appears as the link or button.
  3. Type or paste in the URL with the appropriate variable(s).
  4. Click Insert.

    Insert Link popup, Text and Link URL fields, and Insert button
 

Testing your dynamic links

Dynamic links won’t display when previewing or sending a test email. To check that the dynamic links are working properly, make a copy of the email and send it to your email address. Just make sure that you have information saved in your account for the appropriate variable.

 

Reporting for your dynamic links

After you send your email, any clicks on the dynamic link will be tracked in your reporting for the base URL, or the URL not including the dynamic variable.

 

List of variables

Contact details

Contact detailVariable
Company name[[companyName]]
Email address[[emailAddress]]
First name[[firstName]]
Last name[[lastName]]
Mailing address line 1[[addressLine1]]
Mailing address line 2[[addressLine2]]
Mailing address line 3[[addressLine3]]
Mailing address city[[city]]
State name[[stateName]]
Postal (zip) code[[postalCode]]
Country name[[countryName]]
Home phone number[[homePhone]]
Job title[[jobTitle]]
Custom field[[custom.my_custom_field_name]]
 

Account details

Account detailVariable
Organization name[[account.organizationName]]
First name[[account.firstname]]
Last name[[account.lastname]]
Email[[account.contactemail]]
Phone[[account.organizationPhone]]
Website[[account.siteURL]]
Address line 1[[account.addressLine1]]
Address line 2[[account.addressLine2]]
Address line 3[[account.addressLine3]]
City[[account.city]]
State[[account.state]] (full name)
Or
[[account.usState]] (two letter abbreviation)
Postal[[account.postalCode]]
Country[[account.countryCode]] (abbreviation)
Or
[[account.country]] (full name)
Social - Facebook[[account.social.facebookURL]]
Social - Twitter[[account.social.twitterURL]]
Social - LinkedIn[[account.social.linkedinURL]]
Social - Youtube[[account.social.youtubeURL]]
Social - Instagram[[account.social.instagramURL]]
Social - Pinterest[[account.social.pinterestURL]]
Custom field[[account.custom.<customFieldName>]]
 
Light Bulb IconDid you know? If you need to change your account properties, update the information under the Account details tab within your account settings.
 


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. 
 

Insert Link overlay with custom privacy policy variable in Link field
 

Any links we provide from non-Constant Contact sites or information about non-Constant Contact products or services are provided as a courtesy and should not be construed as an endorsement by Constant Contact.
 

Add People IconIn need of multiple accounts? Our multi-account solution is designed for organizations seeking unique accounts for their various locations, departments, or users. Take advantage of bulk pricing, product features for brand control, customized onboarding, and more!


Questions?

Ask the Community

Did this article answer your question?


Constant Contact Logo

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