Data fields

You can pass any additional information you collect about your contacts, either on your own or through enKod tracking, into data fields. You can build segments based on data from the fields, and you can personalise content for users using personalisation tags.

Creating a data field

Data fields are located in the enKod menu. In this tab you can find, edit or delete a field from the list of existing fields or create a new one.

When creating a field, you need to specify:

  • name - how the field will be displayed in the service;
  • system name - used in API requests, personalisation tags, dynamic content. It should be filled in in Latin, without spaces;
  • description - here you can leave a hint about how this field is used;
  • data type:
    • number - integers, from minus 18 to plus 18 digits;
    • fractional number - from 9 characters before and after the dot, including negative values;
    • text - any characters, not more than 1024 characters;
    • logical - a logical value with the values true or false;
    • date - in the format 1982-12-23, from 1900-01-01 to 2050-12-31;
    • date and time - in the format 1982-12-23 12:23, from 1900-01-01 00:00 to 2050-12-31 23:59.

Personalisation tags

Personalisation tags allow you to use different data in your email:

  • specified in the main fields (first name, last name, email, etc.);
  • specified in the data fields (gender, middle name, name of personal manager and any other data you store);
  • subscription details (date, time, IP address);
  • system links (unsubscribe manager, unsubscribe link, link to view the web version of the email, confirmation link);
  • information about the mailing group;
  • information about the current message;
  • information about the sender.

The personalisation tag is formed from the system name of the field enclosed in double curly braces

{{user_guide:datafields:fieldname_example}}

The following personalisation tags are available in enKod:

Basic fields

Tag Description Example
{{user_guide:datafields:subscriber_email}} contact email [email protected]
{{user_guide:datafields:subscriber_phone}} contact phone number +71234567899
{{user_guide:datafields:subscriber_firstname}} contact's name (as it is written in the field) Vasily
{{user_guide:datafields:subscriber_firstname_capitalized}} contact name, brought to the standard form - the first capital, the rest lowercase Ekaterina (even if the value in the field is ekaterina)
{{user_guide:datafields:subscriber_lastname}} contact's surname (as it is written in the field) Turkin
{{user_guide:datafields:subscriber_lastname_capitalized}} contact's surname reduced to standard form - first capitalised, the rest lowercase Ivanova (even if in the field is Ivanova)
{{user_guide:datafields:subscriber_name}} contact's first and last name (combines subscriber_firstname and subscriber_lastname) Vasily Turkin
{{user_guide:datafields:subscriber_email_md5}} email in MD5 hash format b58996c504c5638798eb6b511e6f49af
{{user_guide:datafields:subscriber_email_sha256}} SHA256 hash of email 0xC1059ED8
{{user_guide:datafields:subscriber_id}} unique contact ID 123
{{user_guide:datafields:subscriber_vendor}} traffic source landing_1
Tag Description
{{user_guide:datafields:link_unsubscribe}} unsubscribe from all mailing groups at once
{{user_guide:datafields:link_unsubscribe_manager}} unsubscribe manager

Date the letter was sent

Tag Description Example
{{user_guide:datafields:message_day}} number of message sending 11
{{user_guide:datafields:message_dayofweek}} day of the week of sending the message Friday
{{user_guide:datafields:message_shortdate}} summary date of sending the communication 11.05.2020
{{user_guide:datafields:message_longdate}} full date of sending the message 11 May 2020.
{{user_guide:datafields:message_month}} month of sending the message may
{{user_guide:datafields:message_monthnumber}} message sending month number 05
{{user_guide:datafields:message_year}} year of sending the message 2020

Information about the message

Tag Description Example
{{user_guide:datafields:message_id}} Message ID 11
{{user_guide:datafields:message_guid}} unique GUID of the message being sent 6F9619FF-8B86-D011-B42D-00CF4FC964FF
{{user_guide:datafields:message_subject}} subject New promotion only until the end of the week!

Sender information

Tag Description Example
{{user_guide:datafields:sender_fromemail}} sender email [email protected]
{{user_guide:datafields:sender_fromname}} sender name Some Brand
{{user_guide:datafields:sender_replytoemail}} reply email [email protected]
{{user_guide:datafields:sender_replytoname}} reply name Vasily Turkin
Last modified: 2023.12.13 10:27 by Anastasia Aniskova