You can send emails with unique links by using Custom Tags to store personalized data for each user and then inserting those tags as placeholders into the URL of your email template. This is ideal for sending personalized promo codes, magic links, or unique gift URLs.
Here is the step-by-step process:
1. Create a Custom Tag and Prepare Your Data
First, you need a Custom Tag to store the unique part of your link. For example, if your link is https://your-app.com/gift?code=UNIQUE_CODE, you'll need a Tag to hold the UNIQUE_CODE value.
- Go to the Tags section in your control panel and create a new Tag (e.g.,
secret_code, type: String). - Prepare a CSV file containing user identifiers (like UserID) and the corresponding unique values for the Tag you just created. The file should have at least two columns, for example:
UserID,secret_code.
2. Import User Data and Create a Segment
Next, you'll upload your user data and group these users for targeting.
- Navigate to Audience -> Import CSV.
- Upload your CSV file and select the Update Tag values option. Map the columns from your file to the corresponding UserID and the
secret_codeCustom Tag. This will assign the unique code to each user's profile. - Using the same CSV file, create a Segment of these users by navigating to Audience -> Segments -> Create segment -> Import segment. This will allow you to easily target this specific group.
3. Create an Email with a Dynamic Link
Now, you can build the email template that will include the personalized link.
- Create a new email template or edit an existing one.
Add a button or a text link. In the URL field, construct your link using the Custom Tag placeholder syntax
{{tagName}}.For example:
https://your-app.com/gift?uid={{secret_code}}- When the email is sent, the
{{secret_code}}placeholder will be automatically replaced with the unique value stored for each recipient.
4. Launch Your Campaign
- Create a Customer Journey or a standard campaign.
- In the audience settings, target the Segment you created in step 2.
- Select the email template containing the dynamic link and launch the campaign.
Each user in the segment will now receive an email with their own personalized link.
Note on Click Tracking: To track clicks, your link will be wrapped by our system. This should not affect the functionality of your dynamic URL, but we always recommend sending a test campaign to confirm everything works as expected.
Comments
0 comments
Please sign in to leave a comment.