Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making only the link destination editable in MailChimp

Is there a way to only allow a user to edit a link's destination, and not the link itself, using MailChimp's template language? There doesn't seem to be anything about this specific situation in their documentation.

For example:

<a href="link.html" target="_blank">
    <img src="button.gif" alt="Button Name" />
</a>

So I want to allow the user to ONLY edit "link.html" to point somewhere else, as the link button never changes.

Unfortunately, to make matters more complicated, there's an unknown number of links in the template (thanks to the use of mc:repeatable), so the solution cannot be hard-coded to a specific link.

Is this possible?

like image 565
Chuck Le Butt Avatar asked Apr 02 '13 12:04

Chuck Le Butt


People also ask

Can you edit a link in MailChimp campaigns?

The campaign page for a sent campaign cannot be edited or updated in any way, but you can edit the URL for a sent campaign up to two times. If you need to share a link to the campaign page, we recommend you replicate your campaign, make your edits, and send it to yourself via a segment.

What is an anchor link in MailChimp?

Anchor links allow you to build your own table of contents with custom wording, link style, and formatting. In this article, you'll learn about the two ways you can add a table of contents to your campaign.

How do I edit a link in MailChimp?

Insert the text you want to link and highlight it. Click the link icon in the toolbar. In the Insert or Edit Link pop-up modal, click the drop-down menu and choose Web address. Enter the click-through link in the Web address (URL) field.


2 Answers

I ran into exactly the same issue today. It seems the individual href attribute cannot currently be made dynamic using merge tags in Mailchimp.

The best workaround I've found is to create an editable field (span) within the repeatable section that contains the link and button image.

<tr mc:repeatable>  
    <td width="600px">                      
        <span mc:edit="offer_link">       
             <a href="http://www.mywebsite.com" target="_blank">
                <img src="http://www.mywebsite.com/images/button.png" width="100" height="30" alt="view offer button">
            </a>
        </span>
    </td>
</tr>

When the sender creates the email from the template, they can click the '<>' icon in the editor to edit the html for the link. They'll need some very basic HTML knowledge but it'll do the trick.

like image 116
nfrost21 Avatar answered Sep 18 '22 14:09

nfrost21


In your MailChimp template, instead of using <a href="link.html" target="_blank">, use a Merge Tag instead. So for example:

<a href="*|CUSTOM_URL|*" target="_blank">

Follow these steps to complete the set up:

  1. Go to Lists > Create Forms and add a new input field.
  2. With the field selected, click on Field Settings.
  3. Label the field Custom Url.
  4. Set the Field Tag to CUSTOM_URL
  5. Uncheck Required Field.
  6. Set Field Visibility to Hidden.
  7. Set the Default Merge Tag Value to http://www.example.com/new-link.html (in other words, this is where the SENDER would input the absolute URL that you want your link.html changed to before sending each Campaign.

When the Campaign is sent, it will automatically fill in this default link (new-link.html) for the href attribute on the link without the SENDER actually modifying the campaign.

Just be sure that no one actually enters a value into this field when adding subscribers or it will override the default value set by the SENDER.

like image 24
adamdehaven Avatar answered Sep 17 '22 14:09

adamdehaven