In this article, you’ll learn how to set up a new merge tag for PDF links that are tailored to individual subscribers.
Before You Start
This is a multi-step process. You’ll need to complete these tasks in order, in three different sections of your MailChimp account.
- Upload each subscriber’s PDF to MailChimp’s File Manager.
- Copy and paste the PDF URLs from the File Manager into a spreadsheet.
- Add a new field to your MailChimp list to store your subscribers’ PDF links.
- Update the list via import to add PDF links from the spreadsheet to the new field.
- Insert your new list field’s merge tag to your campaign.
- Test your subscribers’ custom PDF links in Preview Mode.
Update Files with File Manager
To begin, you’ll work with MailChimp’s File Manager, along with a spreadsheet application like Excel or Google Sheets. For this part of the process, you’ll upload each subscriber’s individual PDF to MailChimp’s File Manager and paste the PDF links into a spreadsheet file. Later, you’ll import this CSV file to a new field in your list to connect the PDFs to a list field merge tag.
If you have a large number of files to upload and can host the files on your website, skip to step 5 in the section below.
To add PDFs to the File Manager and set up the list update file, follow the steps below.
- Navigate to the Templates page.
- Click File Manager.
- Upload your personalized files into the File Manager and wait until your uploads are complete.
- On the File Manager page, click Copy URL to copy a PDF’s URL.
Repeat steps 4 and 5 until every subscriber email is matched with a PDF link.
- Save the spreadsheet file in CSV format
Now your update file is ready, and you’ll import it to update subscriber information.
Create and Update List Fields
For this part of the process, you’ll work in the Lists section of the account. Now that your CSV file is ready, add a new field to your list and start an auto-update import to add links from the CSV file to the new list field. Later, this new field’s merge tag will be used in the Campaign Builder to insert your subscribers’ custom links.
To add a new list field and import your PDF URLs into it, follow the steps below.
- Navigate to the Lists page.
- Click the drop-down menu next to the list you want to work with, and choose
- On the Settings page, click
List fields and *|MERGE|* tags.
- Click Add A Field, and choose Text.
- Input a field label, like PDF Links.
- Uncheck the Visible box next to the new field so it won’t appear on your signup form.
- In the
Put this tag in your content field, input a merge tag name, like PDF.
- Click Save Changes.
Now your list has a new field to store your PDF links.
In the next step, you’ll add your subscribers’ PDF links to the list field you created. To add all the links in one large batch through a CSV import, follow the steps below.
- Navigate to the Lists page.
- Click the drop-down menu next to the list you want to work with, and choose Import.
Click the radio button next to CSV or tab-delimited text file, and click Next.
- Upload your CSV file, and click Next.
- Match column 1 to the Email Address field and click Save. Match column 2 to your PDF Links field and click Save.
After you match and save both columns, click Next to review the import.
- Check the box next to
Auto-update my existing list.
- Click Import.
Now each subscriber has a file in the PDF Links field.
Insert the Merge Tag in Your Campaign
To complete the process, you’ll work in the Campaigns section of the account.
Now that each subscriber has a file in the new PDF Links list field you created, place that field’s merge tag into your campaign. When the campaign is sent, we’ll replace the merge tag with the personalized PDF link from the list field.
To insert the merge tag in a campaign, follow the steps below.
- Open your campaign, and navigate to the Design step of the Campaign Builder.
- Click the content block where you want the personalized URL to appear.
- Highlight the text you want to link to the personalized file, and click the Link icon.
- In the
Insert or Edit link pop-up modal, input your new field’s merge tag in the
Web Address (URL) field. Type the full merge tag, exactly as it appears in your List Settings.
- Click Insert to add the link.
- Click Save and Close.
To test your merge tags, click Enter Preview Mode to open a preview of the campaign. Click Live Merge Info to test your merge tags.
When you’re satisfied with your campaign, send your campaign or schedule it to go out later.
Can I Use Other File Types?
Yes. Follow the same process to send personalized links to any other supported file type.
About Personalized Images
You can also insert personalized image files (jpg, jpe, jpeg, gif, png, or bmp). This is helpful if you want to include a coupon or small, subscriber-specific image in your campaign, without asking subscribers to click a link.
The process to insert a personalized image file is similar to the steps to insert a PDF link with a merge tag, with one small difference. In the List Settings, you’ll want to add a new image field type, instead of a text field. Use an image field’s merge tag in your campaign, and we’ll replace the merge tag with an image, rather than a link to a file.