Custom Field – {{ .Subscriber.Attribs }}
The custom field merge tag allows you to insert unique subscriber-specific data, such as gender, location, age, payment amount or other custom fields, into your email and SMS campaigns. These additional fields must exist as column headers in your uploaded contact list CSV file for the system to dynamically populate personalized content.
What It Does:
This merge tag dynamically pulls values from the additional fields in your contact list (e.g., Gender, Location, Age) and replaces the placeholder with subscriber-specific data. These fields are fully customizable but must be included as column headers in the uploaded CSV file.
For example:
- If your contact list includes a “Gender” column, the system will use the value under that column for each subscriber.
- You can use multiple custom fields to create highly tailored messages.
Important Note:
- These fields are not predefined attributes but must be uploaded as columns in the CSV contact list.
- Ensure correct mapping of column headers and subscriber details during the upload process.
Example Usage:
Dear {{ .Subscriber.FirstName }}, your subscription renewal of {{ .Subscriber.Attribs.amount }} naira is due on {{ .Subscriber.Attribs.date }}. Renew now to continue enjoying our services.
Result:
Dear John, your subscription renewal of 50,000 naira is due on 15th March 2025. Renew now to continue enjoying our services.
Example Code :
In this example, the API fetches and inserts the subscriber’s name, location, and discount amount from the contact list to personalize communication.