Skip to content

Commit 173678a

Browse files
committed
feat: Add documentation for new segment building status
1 parent 8cd948a commit 173678a

File tree

2 files changed

+31
-27
lines changed

2 files changed

+31
-27
lines changed
Loading

docs/segments/manage_segments.rst

+31-27
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ Segments in Mautic are lists or groups of Contacts. Use Segments to send Emails,
99

1010
Segments provide ways to easily organize your Contacts. There are a variety of fields available for configuring these Segments.
1111

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.
1313

1414
.. image:: images/contact-segment.png
1515
:width: 700
1616
:alt: Screenshot showing Contacts matching that particular Segment.
1717

18+
.. image:: images/contact-segment-building.png
19+
:width: 700
20+
:alt: Screenshot showing Contacts matching that particular Segment.
21+
1822
.. note::
1923
Mautic renamed ``lead lists`` to ``Segments`` in Mautic :xref:`1.4.0 release`.
2024

@@ -26,7 +30,7 @@ Creating a Segment
2630
.. vale on
2731
2832
1. To create a new Segment, navigate to Segments in the menu, and click the **+New** button.
29-
33+
3034
2. In the **Details** tab, add a **Name**, **Public name** and **Description** to your Segment.
3135

3236
.. image:: images/create-segment.png
@@ -113,7 +117,7 @@ Adding individual Contacts
113117
.. vale on
114118
115119
1. Navigate to the Contact record you want to change.
116-
120+
117121
2. Click the arrow in the top right, next to **Edit/Send Email/Close**.
118122

119123
3. Select **Preference**.
@@ -148,7 +152,7 @@ Inside a :ref:`Campaign<campaigns overview>`, you can add or remove Contacts fro
148152
:alt: Screenshot Campaign builder connector.
149153

150154
2. Select **Action**.
151-
155+
152156
3. In the list of actions, select **Modify Contact's Segments**.
153157

154158
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
202206

203207
5. Decide if you'd like to add all Contacts with at least that number of Points to the Segment:
204208

205-
.. tip::
206-
209+
.. tip::
210+
207211
* If you only want to add new Contacts who reach the threshold to this Segment, select **No** - default.
208-
212+
209213
* To add all existing Contacts with at least a certain number of Points to the Segment, toggle the switch to **Yes**.
210214

211215
1. Click **Events**.
@@ -270,29 +274,29 @@ Configuring Segment filters
270274

271275
3. Click the **Filters** tab to add filters.
272276

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.
274278

275-
.. attention::
279+
.. attention::
276280

277281
Listed below are three types of fields:
278282

279283
* Contact fields
280-
284+
281285
* Set Fields to **Available for Segments = Yes** in your Custom Field manager to display here.
282286

283287
* Contact behavior and actions
284288
* Primary Company fields
285-
289+
286290
* Set Fields to **Available for Segments = Yes** in your Custom Field manager to appear here.
287-
291+
288292
* Contacts associates with multiple Companies, but Mautic adds them to Segments based on fields for the primary Company.
289293

290294
5. Add more filters, using the **And** and **Or** operators. An **Or** operator creates a new group of filters which can include And operators.
291295

292296
6. Click **Save and close**.
293297

294-
.. note::
295-
298+
.. note::
299+
296300
Segments are rebuilt according to how frequently you fire your :ref:`cron jobs<segment cron jobs>`.
297301

298302
* 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
307311
308312
You can create dynamic Segments by using date filters.
309313

310-
.. note::
311-
314+
.. note::
315+
312316
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.
313317

314318
.. vale off
@@ -357,14 +361,14 @@ Once you've selected a date field as your filter, such as the default **Date las
357361

358362
*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.*
359363

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.
361365

362366
.. image:: images/operators-2.png
363367
:alt: Screenshot showing Operators.
364368

365369
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.
366370

367-
.. vale off
371+
.. vale off
368372
369373
Matching part of a string
370374
=========================
@@ -385,18 +389,18 @@ First three filters match strings as you enter it. ``like`` filter is for advanc
385389
A few notes for text filters:
386390

387391
* You should use ``starts with``, ``ends with``, ``contains`` rather than ``like`` as they're more specific, and therefore can be more effective.
388-
392+
389393
* 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.
390394

391395
* Mautic searches for the ``%`` character in a value for the ``like`` filter, if finding at least one ``%`` Mautic doesn't perform any modification.
392396

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.
394398

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.
396400

397-
Learn more about :xref:`Regex`.
401+
Learn more about :xref:`Regex`.
398402

399-
.. note::
403+
.. note::
400404

401405
MySQL (and Mautic) uses ``POSIX`` regular expressions, which could behave differently from other types of regular expressions.
402406

@@ -427,7 +431,7 @@ Example - Consider that today is ``2022-03-05``:
427431
* ``Date identified equals -1 months`` returns all Contacts identified on 2022-02-05.
428432
* ``Date identified greater or equal -1`` year returns all Contacts identified 2021-03-05 and after.
429433
* ``Date identified greater than -1`` year returns all Contacts identified after 2021-03-05.
430-
434+
431435
Beside this you can specify your date with text. These formulas are **translatable**, so make sure you use them in correct format.
432436

433437
* ``birthday`` / ``anniversary``
@@ -487,11 +491,11 @@ Deleting thousands of Contacts this way in one Segment becomes a tedious task. L
487491

488492
2. Use the :ref:`Delete contact action<using the campaign builder>`.
489493

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.
491495
It's all done automatically in the background.
492496
It's necessary to configure the :ref:`cron jobs<segment cron jobs>`.
493497

494-
.. danger::
498+
.. danger::
495499

496500
You can't recover deleted Contacts unless you restore your entire Mautic database backup. **Use with extreme caution**.
497501

@@ -511,4 +515,4 @@ Since :xref:`Mautic 4` there is a step when deleting or deactivating a Segment t
511515
:width: 300
512516
:alt: Screenshot deleting or deactivating a Segment
513517

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

Comments
 (0)