Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mailchimp use merge tags in link url

I am building a mailchimp campaign with a link to a custom form. I would like the fields of the form to be filled in with the info I have from my suscribers (first name, last name, company name, email...)

For this, I am generating custom urls with paramters for the link in the email. Those parameters are then filled in the inputs. The URLs should look like this :

http://www.example.com/custom_form.php?
fname=some_name&lname=some_name&[email protected]

The issue I have is in the mailchimp editor. I want to use merge tags to generate the parameter values according to each suscriber so my link looks like this in the editor :

http://www.example.com/custom_form.php?
fname=*|FNAME|*&lname=*|LNAME|*&company=*|COMPANY|*&email=*|EMAIL|*

This works fine except when for example the company name is in two words. The URL is broken and the parameters after the company name don't work.

How can I encode the merge tags for urls?

like image 792
web-tiki Avatar asked Feb 19 '15 14:02

web-tiki


People also ask

Can I use merge tags in MailChimp?

Mailchimp offers merge tags for all kinds of dynamic information. Paste a merge tag into your email campaign to add personalized or dynamic content.

Can you use anchor links in MailChimp?

Use anchor links to create a table of contents in your campaign. Any files uploaded to Mailchimp can be linked to in a campaign to allow subscribers to download them. You can also use merge tags to create a link.


1 Answers

Try *|URL:COMPANY|*. See the merge tag cheat sheet.

like image 78
cpilko Avatar answered Sep 28 '22 02:09

cpilko