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 personalized promo codes, magic links, or unique gift URLs.
Here is the step-by-step process:
1. Create the Custom Tag
First you need a Custom Tag to store the unique part of the link. For example, if your link is https://your-app.com/gift?code=UNIQUE_CODE, you need a Tag to hold the UNIQUE_CODE value.
- Go to the Tags section of the Control Panel and create the Tag (e.g.,
secret_code, type: String). The Tag must exist before you import values into it.
2. Load the unique values onto your users
Pick whichever of these matches the identifiers you have:
-
CSV import (keyed by HWID). Go to Audience → Import CSV → Update Tag values. The first column of the file must be named
HWIDand contain the hardware IDs of your subscribers' devices; each remaining column must be named exactly as an existing Tag. For example:HWID,secret_code xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,GIFT-4821 -
API (keyed by UserID). If you only have UserIDs, use the
/setTagsDevice API method with theuserIdparameter for each user instead of the CSV import — the CSV flow does not accept UserIDs.
3. Group the recipients
- Go to Audience → Segments, press Create Segment, and build the audience you want — for example a segment of the users you just tagged (you can import a list of User IDs from a CSV, or filter on
secret_codebeing set).
4. Create an Email with a Dynamic Link
- Create a new email template or edit an existing one.
-
Add a button or a text link. In the URL field, build the link using the Tag placeholder syntax:
https://your-app.com/gift?uid={{secret_code}} - When the email is sent, the
{{secret_code}}placeholder is replaced with the value stored for each recipient.
5. Launch Your Campaign
- Create a Customer Journey or a standard campaign.
- In the audience settings, target the segment from step 3.
- Select the email template with the dynamic link and launch.
Note on Click Tracking: to track clicks, your link is wrapped by our system. This should not affect a dynamic URL, but always send a test campaign to confirm.
Comments
0 comments
Please sign in to leave a comment.