Skip to content

Commit cb976c3

Browse files
authored
Merge pull request #616 from adiati98/cherry-pick-349-b71
Cherry-pick: "feat: Add documentation for new segment building status " to 7.1
2 parents 6385a13 + b2c413a commit cb976c3

File tree

2 files changed

+34
-39
lines changed

2 files changed

+34
-39
lines changed
211 KB
Loading

docs/segments/manage_segments.rst

Lines changed: 34 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
.. vale off
2-
31
Managing Segments
42
#################
53

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

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

12-
When viewing all Segments, the **# contacts** column on the right shows the number of Contacts included in that particular Segment.
8+
.. vale off
139
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.
1711

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
2017

2118
.. vale off
2219
@@ -26,7 +23,7 @@ Creating a Segment
2623
.. vale on
2724
2825
1. To create a new Segment, navigate to Segments in the menu, and click the **+New** button.
29-
26+
3027
2. In the **Details** tab, add a **Name**, **Public name** and **Description** to your Segment.
3128

3229
.. image:: images/create-segment.png
@@ -43,8 +40,6 @@ On the Details tab, static, and dynamic Segments also have the option to display
4340

4441
* **Public name** - Users can set a different name for the Segment, which is visible to Contacts in Preference Center options.
4542

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-
4843
.. vale off
4944
5045
Viewing and exporting Contacts in a Segment
@@ -113,7 +108,7 @@ Adding individual Contacts
113108
.. vale on
114109
115110
1. Navigate to the Contact record you want to change.
116-
111+
117112
2. Click the arrow in the top right, next to **Edit/Send Email/Close**.
118113

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

150145
2. Select **Action**.
151-
146+
152147
3. In the list of actions, select **Modify Contact's Segments**.
153148

154149
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
202197

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

205-
.. tip::
206-
200+
.. tip::
201+
207202
* If you only want to add new Contacts who reach the threshold to this Segment, select **No** - default.
208-
203+
209204
* To add all existing Contacts with at least a certain number of Points to the Segment, toggle the switch to **Yes**.
210205

211206
1. Click **Events**.
@@ -270,29 +265,29 @@ Configuring Segment filters
270265

271266
3. Click the **Filters** tab to add filters.
272267

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

275-
.. attention::
270+
.. attention::
276271

277272
Listed below are three types of fields:
278273

279274
* Contact fields
280-
275+
281276
* Set Fields to **Available for Segments = Yes** in your Custom Field manager to display here.
282277

283278
* Contact behavior and actions
284279
* Primary Company fields
285-
280+
286281
* Set Fields to **Available for Segments = Yes** in your Custom Field manager to appear here.
287-
282+
288283
* Contacts associates with multiple Companies, but Mautic adds them to Segments based on fields for the primary Company.
289284

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

292287
6. Click **Save and close**.
293288

294-
.. note::
295-
289+
.. note::
290+
296291
Segments are rebuilt according to how frequently you fire your :ref:`cron jobs<segment cron jobs>`.
297292

298293
* 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
307302
308303
You can create dynamic Segments by using date filters.
309304

310-
.. note::
311-
305+
.. note::
306+
312307
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.
313308

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

358353
*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.*
359354

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

362357
.. image:: images/operators-2.png
363358
:alt: Screenshot showing Operators.
364359

365360
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.
366361

367-
.. vale off
362+
.. vale off
368363
369364
Matching part of a string
370365
=========================
@@ -385,18 +380,18 @@ First three filters match strings as you enter it. ``like`` filter is for advanc
385380
A few notes for text filters:
386381

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

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

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

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

397-
Learn more about :xref:`Regex`.
392+
Learn more about :xref:`Regex`.
398393

399-
.. note::
394+
.. note::
400395

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

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

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

488483
2. Use the :ref:`Delete contact action<using the campaign builder>`.
489484

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

494-
.. danger::
489+
.. danger::
495490

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

@@ -511,4 +506,4 @@ Since :xref:`Mautic 4` there is a step when deleting or deactivating a Segment t
511506
:width: 300
512507
:alt: Screenshot deleting or deactivating a Segment
513508

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

Comments
 (0)