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?
Mailchimp offers merge tags for all kinds of dynamic information. Paste a merge tag into your email campaign to add personalized or dynamic content.
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.
Try *|URL:COMPANY|*
. See the merge tag cheat sheet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With