Segments provide ways to easily organize your contacts. These segments can be configured from a variety of fields.
When viewing all segments you will notice the column on the right which shows the number of contacts matching that particular segment.
To create a new segment navigate to Segments in the menu, and click on 'New'.
Since the 3.2 release it has been possible to provide a public name, in addition to an internal name, for a segment.
This is used if the segment is displayed in the Preference Centre, allowing the contact to choose to remove themselves from it. The Public Name is what will be displayed to the contact in the preference centre.
It is possible to create a segment which is accessible to everybody who uses your MSM instance - a public segment - or just for your own use - a private segment.
There are many approaches that can be taken when it comes to allowing contacts to choose communications they wish to receive from you. If you wish to allow them to subscribe and unsubscribe based on segments, you can select the option to make a segment available in the Preference Centre.
Use this in conjunction with the public name to provide a user-friendly description of the segment.
If a segment is unpublished, it will not be available for use in MSM, and will not show in any dropdown fields.
Filters are used to define the contacts who will be in the segment.
In addition, these filters can be combined to either be inclusive or exclusive depending on your needs.
Once you have selected the field you can then choose the type of operation to perform. These vary depending on the way you wish to filter your contacts.
If you want to divide your segment based on certain criterion, and you wish to avoid sending duplicate emails to the (sub)segments, you can view and alter them through typing the alias name of the contact segments separated by '+' only. You can add n contact segments to show the contacts they have in common, but you will always receive the result as the intersection of the subsets. You can then manipulate the contacts to remove them from either one subset or all, hence avoiding sending duplicate emails to the same leads in the subsets.
There are 5 filters you can use for matching part of a string - starts with, ends with, contains, like and regexp. First three filters match strings as you enter it. like filter is for advanced users - you can specify which type you want to use with % character:
A few notes for text filters:
You can use regular expressions in a regexp filter. MSM recognises all common operators like | for OR (first string|second string), character sets ([0-9], [a-z0-9] etc.), repetitions (+, *, ?) and more. You have to escape special characters with \ if you want to use them as matching character. Learn more about regex at https://dev.mysql.com/doc/refman/5.7/en/regexp.html. Please note that MySQL (and MSM) uses POSIX regex, which could behave differently from other types of Regex.
Date filters allow you to choose a date via DatePicker:
Hovewer you can specify much more here. MSM recognizes relative formats too (these string are not translatable):
Example (Consider that today is 2018-03-02):
Beside this you can specify your date with text. These formulas are translatable, so make sure you use them in correct format.
Example (Consider that today is 2018-03-02):
Once you have created your segment, any applicable contact will be automatically added through the execution of a cron job. This is the essence of segments.
Manual Addition
In addition to segments you can also manually add any contact to a list by clicking the Preferences button at the segments tab, use the dropdown to select a segment and add the contact to it or click on the x next to a segment in the input field to remove the contact.
Filter the contacts in the segment. The batch delete action in the contact table allows deletion of up to 100 contacts at one time. This is a performance precaution since deleting more contacts at one time could cause issues. This feature can be used for hundreds of contacts.
But deleting thousands of contacts this way in one segment will become a tedious task. Luckily, there is a trick how to let the background workers do the job for you.