Join us today to capture potential customers and manage your contacts @ 2 PM ET

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

SOLVED
Go to solution
user9640528
Campaign Collaborator
0 Votes

How can I keep a full dynamic variable field within a custom field on a contact that contains special characters such as &. Seems when it pulls through, and it hits the first & in the string, it stops. I am using this variable field to finalize a web page link on a campaign.

1 ACCEPTED SOLUTION
user9640528
Campaign Collaborator
0 Votes

Hi William, thank you for providing that recommendation. I was able to modify my link to pull through the other variable fields to build back up the link and this was successful. I would only add that in building the url, in lieu of %26, I used the ampersand, and it was accepted in this format. It only has issues with the ampersand when the ampersand is part of the variable field. 

View solution in original post

Top Answer
William_A
Administrator

Hello @user9640528 ,

 

After speaking with the higher level technical team, they're recommending encoding the ampersand instead, so you'd set the URL up to look more like this:

 

https://www.webpage.com/123456%26firstname=[[firstName]]%26lastname=[[lastName]]%26weblink=[[custom.webpage]]

 

They're looking further into the issues you were experiencing with just using the ampersand, and will make note to address the experience and workarounds if needed.


4 REPLIES 4
William_A
Administrator

Hello @user9640528 ,

 

Are you using the ampersand to include multiple variables in your link? Or is the ampersand purely an element of the field?

 

If it's the latter, then your contacts' custom field data will need to be changed to the actual word "and," as including a symbol like an ampersand is going to treat it like actual coding for multiple variables. 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William A
Community & Social Media Support
user9640528
Campaign Collaborator
0 Votes

Hi William, the ampersand is part of multiple variables in the link. i.e., webpage = www.webpage.com/123456&firstname=Danny&lastname=Smith&weblink=www.website.com the variable part in the contact would be 123456&firstname=Danny&lastname=Smith&weblink=www.website.com 

William_A
Administrator

Hello @user9640528 ,

 

After speaking with the higher level technical team, they're recommending encoding the ampersand instead, so you'd set the URL up to look more like this:

 

https://www.webpage.com/123456%26firstname=[[firstName]]%26lastname=[[lastName]]%26weblink=[[custom.webpage]]

 

They're looking further into the issues you were experiencing with just using the ampersand, and will make note to address the experience and workarounds if needed.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William A
Community & Social Media Support
user9640528
Campaign Collaborator
0 Votes

Hi William, thank you for providing that recommendation. I was able to modify my link to pull through the other variable fields to build back up the link and this was successful. I would only add that in building the url, in lieu of %26, I used the ampersand, and it was accepted in this format. It only has issues with the ampersand when the ampersand is part of the variable field. 

  • Avatar

    Featured Article

    The Power of Direct Subscriber Feedback: Measuring Customer Satisfaction

    Today, understanding customer satisfaction is crucial. How can you know if customers are happy with your products or services?

    See Article
  • Avatar

    Featured Thread

    The Unintentional Humor of Spam Emails

    Have you ever wondered who or what is on the other side of a spam email? Take 10 minutes out of your day and watch this lighthearted video!

    View thread
  • Avatar

    Featured Thread

    How to Create Images of Multi-Page PDFs

    Discover the process of transforming PDFs with multiple pages into image files directly on Constant Contact.

    See Article
Updates
Just Getting Started?

We’re here to help you grow. With how-to tutorials, courses, getting-started guides, videos and step-by-step instructions to start and succeed with Constant Contact.

Start Here

73% of SMBs express doubt that their marketing strategy is effective. Does this sound familiar? Read our Small Business Now Report to learn how you can tweak your strategy to see better results.

Go read our article
Upcoming Webinars
FEB 04
Quick Simple Tips to Improve Your Results in Constant Contact
1PM - 2PM EST