Tags are a very efficient way to categorize emails you are sending with Critsend. Unlike unique identifiers, they enable the creation of analytics and reports based on each of them. For instance, if you use CritSend to send invoices, password reminders, and newsletters, each type of delivery should be tagged. You can also use tags for segmentation purposes, such as tagging by country, gender, or any other customer feature relevant to you.

A tag itself is simply an ascii alpha–numerical string under 64 characters. The dash (-) character is allowed but no other signs are (including underscore, punctuation marks, and so on). If you do not use any tag for an email, it will automatically get tagged as "default". Examples of tags are: “invoice”, “forgot-password” or “june-newsletter”.

How to tag your emails
There are two ways to tag your CritSend messages:

1) By subject line
A simple solution to add tags to your emails is to put them in your subject line. 

For instance, let's take the following subject line: 
[tag: forgot-password] Reset Your Password

The subject of your email will show up as "Reset Your Password" while the tag "forgot-password" will be created and added to your Critsend analytics. As you can see, in order to avoid any confusion, the word "tag:" must be used explicitly straight after the opening bracket. Tags won't be visible to your recipients.

Creating multiple tags is easy. You can add as many tags as you want by simply listing them. Each tag must be separated by a comma.

For instance, the following message will create two tags, "forgot-password" and "UK": 
[tag: forgot-password, UK] Reset Your Password


2) By adding an "X-Tag" field to the message header
Each email has one header. It contains data such as "From", "Date", "MessageId", and many other useful pieces of information about your message. You can add a field to the header to tag your message using: "X-Tag" as a name and your tag name as a value (ascii alpha–numerical string under 64 characters).


For instance, adding the following field to your header will tag your message with "forgot-password":

X-Tag: forgot-password 


To create multiple tags, simply list them in the X-Tag with a comma separation:

X-Tag: forgot-password, UK


Every email delivery software should have an option to add fields into a message's header. Check the documentation of the tool you are using to find out how to add one. In case of doubt, you can always try asking our community in the forum for help.