You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/segments/manage_segments.rst
+31-27
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,16 @@ Segments in Mautic are lists or groups of Contacts. Use Segments to send Emails,
9
9
10
10
Segments provide ways to easily organize your Contacts. There are a variety of fields available for configuring these Segments.
11
11
12
-
When viewing all Segments, the **# contacts** column on the right shows the number of Contacts included in that particular Segment.
12
+
When viewing all Segments, the **# contacts** column on the right shows the number of Contacts included in that particular Segment. If the segment is new and has yet to be built, or was recently updated, it will show **Building** until the segment is rebuilt.
13
13
14
14
.. image:: images/contact-segment.png
15
15
:width:700
16
16
:alt:Screenshot showing Contacts matching that particular Segment.
17
17
18
+
.. image:: images/contact-segment-building.png
19
+
:width:700
20
+
:alt:Screenshot showing Contacts matching that particular Segment.
21
+
18
22
.. note::
19
23
Mautic renamed ``lead lists`` to ``Segments`` in Mautic :xref:`1.4.0 release`.
20
24
@@ -26,7 +30,7 @@ Creating a Segment
26
30
.. vale on
27
31
28
32
1. To create a new Segment, navigate to Segments in the menu, and click the **+New** button.
29
-
33
+
30
34
2. In the **Details** tab, add a **Name**, **Public name** and **Description** to your Segment.
31
35
32
36
.. image:: images/create-segment.png
@@ -113,7 +117,7 @@ Adding individual Contacts
113
117
.. vale on
114
118
115
119
1. Navigate to the Contact record you want to change.
116
-
120
+
117
121
2. Click the arrow in the top right, next to **Edit/Send Email/Close**.
118
122
119
123
3. Select **Preference**.
@@ -148,7 +152,7 @@ Inside a :ref:`Campaign<campaigns overview>`, you can add or remove Contacts fro
148
152
:alt:Screenshot Campaign builder connector.
149
153
150
154
2. Select **Action**.
151
-
155
+
152
156
3. In the list of actions, select **Modify Contact's Segments**.
153
157
154
158
4. Choose from the list of existing Segments you want to add or remove your Contact from.
@@ -202,10 +206,10 @@ Once a Contact has accrued an assigned number of Points, the system can add them
202
206
203
207
5. Decide if you'd like to add all Contacts with at least that number of Points to the Segment:
204
208
205
-
.. tip::
206
-
209
+
.. tip::
210
+
207
211
* If you only want to add new Contacts who reach the threshold to this Segment, select **No** - default.
208
-
212
+
209
213
* To add all existing Contacts with at least a certain number of Points to the Segment, toggle the switch to **Yes**.
210
214
211
215
1. Click **Events**.
@@ -270,29 +274,29 @@ Configuring Segment filters
270
274
271
275
3. Click the **Filters** tab to add filters.
272
276
273
-
4. Click the **Choose one**… menu and search for the field you'd like to Segment by.
277
+
4. Click the **Choose one**… menu and search for the field you'd like to Segment by.
274
278
275
-
.. attention::
279
+
.. attention::
276
280
277
281
Listed below are three types of fields:
278
282
279
283
* Contact fields
280
-
284
+
281
285
* Set Fields to **Available for Segments = Yes** in your Custom Field manager to display here.
282
286
283
287
* Contact behavior and actions
284
288
* Primary Company fields
285
-
289
+
286
290
* Set Fields to **Available for Segments = Yes** in your Custom Field manager to appear here.
287
-
291
+
288
292
* Contacts associates with multiple Companies, but Mautic adds them to Segments based on fields for the primary Company.
289
293
290
294
5. Add more filters, using the **And** and **Or** operators. An **Or** operator creates a new group of filters which can include And operators.
291
295
292
296
6. Click **Save and close**.
293
297
294
-
.. note::
295
-
298
+
.. note::
299
+
296
300
Segments are rebuilt according to how frequently you fire your :ref:`cron jobs<segment cron jobs>`.
297
301
298
302
* If a Segment fails to rebuild for a predetermined length of time, Mautic displays a notification alerting you of an error. For information on defining this time period, see :ref:`Segment settings<segment settings>`
@@ -307,8 +311,8 @@ Using Date Filters
307
311
308
312
You can create dynamic Segments by using date filters.
309
313
310
-
.. note::
311
-
314
+
.. note::
315
+
312
316
The date format for values stored in the database is ``YYYY-MM-DD``. For example, December 11, 2020 is stored as 2020-12-11 and November 12, 2020 is stored as 2020-11-12. To update the display format for dates, go to **Settings > Configuration > System Settings > System Defaults**. However, this doesn't alter the storage format in the database.
313
317
314
318
.. vale off
@@ -357,14 +361,14 @@ Once you've selected a date field as your filter, such as the default **Date las
357
361
358
362
*For example, A value of 1 matches anyone whose field value is on the 1^st, 21^st, or 31^st of any month but a value of 01 matches the 1 st of a month. A value of 01-01 finds Contacts whose value is for January 1 of any year.*
359
363
360
-
* **Contains** - Segment includes Contacts with the specified filter value anywhere in the field value.
364
+
* **Contains** - Segment includes Contacts with the specified filter value anywhere in the field value.
361
365
362
366
.. image:: images/operators-2.png
363
367
:alt:Screenshot showing Operators.
364
368
365
369
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.
366
370
367
-
.. vale off
371
+
.. vale off
368
372
369
373
Matching part of a string
370
374
=========================
@@ -385,18 +389,18 @@ First three filters match strings as you enter it. ``like`` filter is for advanc
385
389
A few notes for text filters:
386
390
387
391
* You should use ``starts with``, ``ends with``, ``contains`` rather than ``like`` as they're more specific, and therefore can be more effective.
388
-
392
+
389
393
* A ``%`` character in the middle of the string has no special meaning. A ``contains`` filter with ``my % string`` searches for a string with ``%`` in the middle. The same is TRUE for a ``like`` filter with ``%my % string%`` value. There is no need to escape this character.
390
394
391
395
* Mautic searches for the ``%`` character in a value for the ``like`` filter, if finding at least one ``%`` Mautic doesn't perform any modification.
392
396
393
-
You can use regular expressions in a ``regexp`` filter. Mautic recognises all common operators like ``|`` for OR - for example ``first string|second string``, character sets including ``[0-9]``, ``[a-z0-9]`` and so forth, repetitions (``+``, ``*``, ``?``) and more.
397
+
You can use regular expressions in a ``regexp`` filter. Mautic recognises all common operators like ``|`` for OR - for example ``first string|second string``, character sets including ``[0-9]``, ``[a-z0-9]`` and so forth, repetitions (``+``, ``*``, ``?``) and more.
394
398
395
-
You have to escape special characters with ``\`` if you want to use them as matching character.
399
+
You have to escape special characters with ``\`` if you want to use them as matching character.
396
400
397
-
Learn more about :xref:`Regex`.
401
+
Learn more about :xref:`Regex`.
398
402
399
-
.. note::
403
+
.. note::
400
404
401
405
MySQL (and Mautic) uses ``POSIX`` regular expressions, which could behave differently from other types of regular expressions.
402
406
@@ -427,7 +431,7 @@ Example - Consider that today is ``2022-03-05``:
427
431
* ``Date identified equals -1 months`` returns all Contacts identified on 2022-02-05.
428
432
* ``Date identified greater or equal -1`` year returns all Contacts identified 2021-03-05 and after.
429
433
* ``Date identified greater than -1`` year returns all Contacts identified after 2021-03-05.
430
-
434
+
431
435
Beside this you can specify your date with text. These formulas are **translatable**, so make sure you use them in correct format.
432
436
433
437
* ``birthday`` / ``anniversary``
@@ -487,11 +491,11 @@ Deleting thousands of Contacts this way in one Segment becomes a tedious task. L
487
491
488
492
2. Use the :ref:`Delete contact action<using the campaign builder>`.
489
493
490
-
This way the ``mautic:campaign:update`` and ``mautic:campaign:trigger`` commands delete all the Contacts in the Segment, and all the Contacts added to the Segment in the future.
494
+
This way the ``mautic:campaign:update`` and ``mautic:campaign:trigger`` commands delete all the Contacts in the Segment, and all the Contacts added to the Segment in the future.
491
495
It's all done automatically in the background.
492
496
It's necessary to configure the :ref:`cron jobs<segment cron jobs>`.
493
497
494
-
.. danger::
498
+
.. danger::
495
499
496
500
You can't recover deleted Contacts unless you restore your entire Mautic database backup. **Use with extreme caution**.
497
501
@@ -511,4 +515,4 @@ Since :xref:`Mautic 4` there is a step when deleting or deactivating a Segment t
511
515
:width:300
512
516
:alt:Screenshot deleting or deactivating a Segment
513
517
514
-
If you attempt to delete or deactivate a Segment which is in use by a filter in another Segment, an alert prompts you to edit the other Segment, removing the dependency before you delete the Segment.
518
+
If you attempt to delete or deactivate a Segment which is in use by a filter in another Segment, an alert prompts you to edit the other Segment, removing the dependency before you delete the Segment.
0 commit comments