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
+34-39Lines changed: 34 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,19 @@
1
-
.. vale off
2
-
3
1
Managing Segments
4
2
#################
5
3
6
-
.. vale on
7
-
8
-
Segments in Mautic are lists or groups of Contacts. Use Segments to send Emails, trigger Campaigns, or for analysis. You can add and remove Contacts into *static* and *dynamic* Segment types.
4
+
Segments in Mautic are lists or groups of Contacts. Use Segments to send Emails, trigger Campaigns, or for analysis. You can add and remove Contacts from **static** and **dynamic** Segment types.
9
5
10
6
Segments provide ways to easily organize your Contacts. There are a variety of fields available for configuring these Segments.
11
7
12
-
When viewing all Segments, the **# contacts** column on the right shows the number of Contacts included in that particular Segment.
8
+
.. vale off
13
9
14
-
.. image:: images/contact-segment.png
15
-
:width:700
16
-
:alt:Screenshot showing Contacts matching that particular Segment.
10
+
When viewing all Segments, the **# contacts** column shows the number of Contacts included in each specific Segment. The **Building** or **Building (X Contacts)** label appears during the creation of a new Segment or when modifying an existing Segment's filter and remains visible until the building process completes.
17
11
18
-
.. note::
19
-
Mautic renamed ``lead lists`` to ``Segments`` in Mautic :xref:`1.4.0 release`.
12
+
.. vale on
13
+
14
+
.. image:: images/contact_segments.png
15
+
:width:700
16
+
:alt:Highlight Segments' Contacts column that consists of Contacts count and building labels
20
17
21
18
.. vale off
22
19
@@ -26,7 +23,7 @@ Creating a Segment
26
23
.. vale on
27
24
28
25
1. To create a new Segment, navigate to Segments in the menu, and click the **+New** button.
29
-
26
+
30
27
2. In the **Details** tab, add a **Name**, **Public name** and **Description** to your Segment.
31
28
32
29
.. image:: images/create-segment.png
@@ -43,8 +40,6 @@ On the Details tab, static, and dynamic Segments also have the option to display
43
40
44
41
* **Public name** - Users can set a different name for the Segment, which is visible to Contacts in Preference Center options.
45
42
46
-
Since :xref:`Mautic 3.2` it has been possible to provide a public name, in addition to an internal name, for a Segment.
47
-
48
43
.. vale off
49
44
50
45
Viewing and exporting Contacts in a Segment
@@ -113,7 +108,7 @@ Adding individual Contacts
113
108
.. vale on
114
109
115
110
1. Navigate to the Contact record you want to change.
116
-
111
+
117
112
2. Click the arrow in the top right, next to **Edit/Send Email/Close**.
118
113
119
114
3. Select **Preference**.
@@ -148,7 +143,7 @@ Inside a :ref:`Campaign<campaigns overview>`, you can add or remove Contacts fro
148
143
:alt:Screenshot Campaign builder connector.
149
144
150
145
2. Select **Action**.
151
-
146
+
152
147
3. In the list of actions, select **Modify Contact's Segments**.
153
148
154
149
4. Choose from the list of existing Segments you want to add or remove your Contact from.
@@ -202,10 +197,10 @@ Once a Contact has accrued an assigned number of Points, the system can add them
202
197
203
198
5. Decide if you'd like to add all Contacts with at least that number of Points to the Segment:
204
199
205
-
.. tip::
206
-
200
+
.. tip::
201
+
207
202
* If you only want to add new Contacts who reach the threshold to this Segment, select **No** - default.
208
-
203
+
209
204
* To add all existing Contacts with at least a certain number of Points to the Segment, toggle the switch to **Yes**.
210
205
211
206
1. Click **Events**.
@@ -270,29 +265,29 @@ Configuring Segment filters
270
265
271
266
3. Click the **Filters** tab to add filters.
272
267
273
-
4. Click the **Choose one**… menu and search for the field you'd like to Segment by.
268
+
4. Click the **Choose one**… menu and search for the field you'd like to Segment by.
274
269
275
-
.. attention::
270
+
.. attention::
276
271
277
272
Listed below are three types of fields:
278
273
279
274
* Contact fields
280
-
275
+
281
276
* Set Fields to **Available for Segments = Yes** in your Custom Field manager to display here.
282
277
283
278
* Contact behavior and actions
284
279
* Primary Company fields
285
-
280
+
286
281
* Set Fields to **Available for Segments = Yes** in your Custom Field manager to appear here.
287
-
282
+
288
283
* Contacts associates with multiple Companies, but Mautic adds them to Segments based on fields for the primary Company.
289
284
290
285
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
286
292
287
6. Click **Save and close**.
293
288
294
-
.. note::
295
-
289
+
.. note::
290
+
296
291
Segments are rebuilt according to how frequently you fire your :ref:`cron jobs<segment cron jobs>`.
297
292
298
293
* 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 +302,8 @@ Using Date Filters
307
302
308
303
You can create dynamic Segments by using date filters.
309
304
310
-
.. note::
311
-
305
+
.. note::
306
+
312
307
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
308
314
309
.. vale off
@@ -357,14 +352,14 @@ Once you've selected a date field as your filter, such as the default **Date las
357
352
358
353
*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
354
360
-
* **Contains** - Segment includes Contacts with the specified filter value anywhere in the field value.
355
+
* **Contains** - Segment includes Contacts with the specified filter value anywhere in the field value.
361
356
362
357
.. image:: images/operators-2.png
363
358
:alt:Screenshot showing Operators.
364
359
365
360
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
361
367
-
.. vale off
362
+
.. vale off
368
363
369
364
Matching part of a string
370
365
=========================
@@ -385,18 +380,18 @@ First three filters match strings as you enter it. ``like`` filter is for advanc
385
380
A few notes for text filters:
386
381
387
382
* You should use ``starts with``, ``ends with``, ``contains`` rather than ``like`` as they're more specific, and therefore can be more effective.
388
-
383
+
389
384
* 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
385
391
386
* Mautic searches for the ``%`` character in a value for the ``like`` filter, if finding at least one ``%`` Mautic doesn't perform any modification.
392
387
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.
388
+
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
389
395
-
You have to escape special characters with ``\`` if you want to use them as matching character.
390
+
You have to escape special characters with ``\`` if you want to use them as matching character.
396
391
397
-
Learn more about :xref:`Regex`.
392
+
Learn more about :xref:`Regex`.
398
393
399
-
.. note::
394
+
.. note::
400
395
401
396
MySQL (and Mautic) uses ``POSIX`` regular expressions, which could behave differently from other types of regular expressions.
402
397
@@ -427,7 +422,7 @@ Example - Consider that today is ``2022-03-05``:
427
422
* ``Date identified equals -1 months`` returns all Contacts identified on 2022-02-05.
428
423
* ``Date identified greater or equal -1`` year returns all Contacts identified 2021-03-05 and after.
429
424
* ``Date identified greater than -1`` year returns all Contacts identified after 2021-03-05.
430
-
425
+
431
426
Beside this you can specify your date with text. These formulas are **translatable**, so make sure you use them in correct format.
432
427
433
428
* ``birthday`` / ``anniversary``
@@ -487,11 +482,11 @@ Deleting thousands of Contacts this way in one Segment becomes a tedious task. L
487
482
488
483
2. Use the :ref:`Delete contact action<using the campaign builder>`.
489
484
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.
485
+
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
486
It's all done automatically in the background.
492
487
It's necessary to configure the :ref:`cron jobs<segment cron jobs>`.
493
488
494
-
.. danger::
489
+
.. danger::
495
490
496
491
You can't recover deleted Contacts unless you restore your entire Mautic database backup. **Use with extreme caution**.
497
492
@@ -511,4 +506,4 @@ Since :xref:`Mautic 4` there is a step when deleting or deactivating a Segment t
511
506
:width:300
512
507
:alt:Screenshot deleting or deactivating a Segment
513
508
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.
509
+
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