-
Notifications
You must be signed in to change notification settings - Fork 76
docs: Document Company Segments for Account-Based Marketing #809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 7.2
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| ABM | ||
| AJAX | ||
| allowlist | ||
| Amazon SES | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,224 @@ | ||
| .. vale off | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added Company Segments documentation based on the feature implementation in PR #16025 which introduces Account-Based Marketing (ABM) functionality with Company Segment management, filters, Campaign integration, and CLI commands. Source: mautic/mautic#16025 |
||
|
|
||
| Company Segments | ||
|
Check warning on line 3 in docs/companies/company_segments.rst
|
||
| ################ | ||
|
|
||
| .. vale on | ||
|
|
||
| Company Segments group Companies based on shared attributes or criteria, enabling targeted Account-Based Marketing - ABM - strategies. Use Company Segments to organize Companies for Campaign targeting, reporting, and bulk operations. | ||
|
adiati98 marked this conversation as resolved.
|
||
|
|
||
| .. note:: | ||
|
|
||
| Company Segments are distinct from Contact Segments. While Contact Segments group individual Contacts, Company Segments group entire Companies. This lets you target organizations rather than individuals in your marketing automation. | ||
|
|
||
| .. vale off | ||
|
|
||
| Creating a Company Segment | ||
| ************************** | ||
|
|
||
| .. vale on | ||
|
|
||
| #. Navigate to **Companies > Company Segments** in the menu. | ||
| #. Click the **New** button to create a new Company Segment. | ||
| #. In the **Details** tab, configure the following: | ||
|
|
||
| * **Name** - The internal name for your Company Segment. | ||
| * **Public name** - An optional alternate name visible in certain interfaces. | ||
| * **Description** - A description of the Segment's purpose. | ||
| * **Active** - Toggle to make the Segment available for use. Inactive Segments aren't available as Campaign sources or in other areas of Mautic. | ||
|
adiati98 marked this conversation as resolved.
|
||
|
|
||
| .. vale off | ||
|
|
||
| Company Segment filters | ||
| *********************** | ||
|
|
||
| .. vale on | ||
|
|
||
| Use filters to create dynamic Company Segments that automatically include or exclude Companies based on field values. Mautic evaluates Companies against these filters during Segment rebuilds and updates membership accordingly. | ||
|
|
||
| Configuring filters | ||
| =================== | ||
|
|
||
| #. In the Company Segment editor, click the **Filters** tab. | ||
| #. Select a Company field from the dropdown to filter by. | ||
| #. Choose an operator and specify the filter value. | ||
| #. Add additional filters using **And** or **Or** logic: | ||
|
|
||
| * **And** - Companies must match all connected filters. | ||
| * **Or** - Creates a new filter group that includes Companies matching any group. | ||
|
|
||
| #. Click **Save and close** to save the Segment. | ||
|
|
||
| Available filter operators | ||
| ========================== | ||
|
|
||
| The available operators depend on the field type: | ||
|
|
||
| * **Equals / Not equal** - Exact match or exclusion of a value. | ||
| * **Empty / Not empty** - Whether the field has a value. | ||
| * **Like / Not like** - Partial string matching with wildcards. | ||
| * **Contains / Starts with / Ends with** - String position matching. | ||
| * **Greater than / Less than** - Numeric or date comparisons. | ||
| * **Regexp / Not regexp** - Regular expression pattern matching. | ||
|
|
||
| .. note:: | ||
|
|
||
| Companies automatically move into or out of dynamic Segments when their field values change and the Segment Cron job runs. See :ref:`Company Segment Cron job<Company Segment Cron job>` for configuration details. | ||
|
|
||
| .. vale off | ||
|
|
||
| Static Company Segments | ||
| *********************** | ||
|
|
||
| .. vale on | ||
|
|
||
| Static Company Segments don't use filters. Instead, you manually manage membership through the methods below. | ||
|
|
||
| .. vale off | ||
|
|
||
| Adding Companies manually | ||
| ========================= | ||
|
|
||
| From the Company record | ||
| ----------------------- | ||
|
|
||
| .. vale on | ||
|
|
||
| #. Open the Company you want to add to a Segment. | ||
| #. Click the dropdown arrow next to **Edit** and select **Segments**. | ||
| #. Select the Company Segments to add the Company to. | ||
| #. Click **Save**. | ||
|
|
||
| From the Company list view | ||
| -------------------------- | ||
|
|
||
| #. In the Company list, select the checkboxes next to the Companies you want to modify. | ||
| #. Click the green arrow that appears at the top of the column. | ||
| #. Select **Change Segments**. | ||
| #. Choose the Segments to add or remove Companies from. | ||
| #. Click **Save**. | ||
|
|
||
| .. vale off | ||
|
|
||
| Using Campaign actions | ||
| ====================== | ||
|
|
||
| You can add or remove Companies from Company Segments as part of a Campaign workflow using the **Modify Company's Segments** action. For more information, see :ref:`Campaign Company Segment actions<campaign company segment actions>`. | ||
|
|
||
| .. vale on | ||
|
|
||
| .. vale off | ||
|
|
||
| Viewing Company Segment membership | ||
| ********************************** | ||
|
|
||
| .. vale on | ||
|
|
||
| When viewing all Company Segments, the **# Companies** column displays the number of Companies in each Segment. During rebuilds, this column shows **Building** until the process completes. | ||
|
|
||
| To view Companies in a Segment: | ||
|
|
||
| #. Navigate to **Companies > Company Segments**. | ||
| #. Click the Company count link for the Segment you want to view. | ||
|
|
||
| This opens the Company list filtered to show only Companies in that Segment. | ||
|
|
||
| .. vale off | ||
|
|
||
| Searching Companies by Segment | ||
| ****************************** | ||
|
|
||
| .. vale on | ||
|
|
||
| Filter the Company list by Segment membership using the search syntax: | ||
|
|
||
| .. code-block:: | ||
|
|
||
| segment:{segment-alias} | ||
|
|
||
| Replace ``{segment-alias}`` with the alias of your Company Segment. Mautic generates the alias automatically from the Segment name, but you can also set it manually. | ||
|
|
||
| .. vale off | ||
|
|
||
| Managing Company Segments | ||
| ************************* | ||
|
|
||
| Editing a Company Segment | ||
| ========================= | ||
|
|
||
| .. vale on | ||
|
|
||
| #. Navigate to **Companies > Company Segments**. | ||
| #. Click the Segment name or select **Edit** from the dropdown menu. | ||
| #. Make your changes and click **Save and close**. | ||
|
|
||
| .. vale off | ||
|
|
||
| Cloning a Company Segment | ||
| ========================= | ||
|
adiati98 marked this conversation as resolved.
|
||
|
|
||
| .. vale on | ||
|
|
||
| #. Navigate to **Companies > Company Segments**. | ||
| #. Click the dropdown arrow next to the Segment. | ||
| #. Select **Clone**. | ||
|
|
||
| Mautic creates a copy of the Segment with the same filters and settings. | ||
|
|
||
| Activating and deactivating | ||
| =========================== | ||
|
|
||
| Make a Segment active or inactive to control whether it's available for use: | ||
|
|
||
| #. In the Company Segment list, click the colored status indicator - green when active, red when inactive. | ||
| #. You can also edit the Segment and toggle the **Active** setting. | ||
|
|
||
| Inactive Segments aren't available in Campaigns or other features. | ||
|
|
||
| .. vale off | ||
|
|
||
| Deleting Company Segments | ||
| ========================= | ||
|
adiati98 marked this conversation as resolved.
|
||
|
|
||
| .. vale on | ||
|
|
||
| #. Navigate to **Companies > Company Segments**. | ||
| #. Select the checkbox next to the Segment or Segments to delete. | ||
| #. Click the dropdown arrow and select **Delete**. | ||
| #. Confirm the deletion. | ||
|
|
||
| .. warning:: | ||
|
|
||
| Mautic prevents deletion of Company Segments that filters in other Segments reference. Remove the dependency before deleting. | ||
|
|
||
| .. _company Segment Cron job: | ||
|
|
||
| .. vale off | ||
|
|
||
| Company Segment Cron job | ||
| ************************ | ||
|
|
||
| .. vale on | ||
|
|
||
| To keep Company Segments current, configure a Cron job to run the rebuild command: | ||
|
|
||
| .. code-block:: php | ||
|
|
||
| php /path/to/mautic/bin/console mautic:company-segments:update | ||
|
|
||
| This command evaluates all Companies against Company Segment filters and updates membership accordingly. | ||
|
|
||
| **Available options:** | ||
|
|
||
| * ``--batch-limit=X`` - Number of Companies to process per batch. Default is 300. | ||
| * ``--max-companies=X`` - Maximum number of Companies to process per execution. | ||
| * ``--segment-id=X`` - Process only a specific Company Segment. | ||
|
adiati98 marked this conversation as resolved.
|
||
|
|
||
| Run this command regularly, for example every 15 minutes, staggered with other Cron jobs to distribute server load. | ||
|
|
||
| .. code-block:: | ||
|
|
||
| 0,15,30,45 * * * * php /path/to/mautic/bin/console mautic:segments:update | ||
| 2,17,32,47 * * * * php /path/to/mautic/bin/console mautic:company-segments:update | ||
| 5,20,35,50 * * * * php /path/to/mautic/bin/console mautic:campaigns:update | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,9 +22,10 @@ When setting up cron jobs, you must choose how often you want the cron jobs to r | |
|
|
||
| For instance: | ||
|
|
||
| .. code-block:: | ||
| .. code-block:: | ||
|
|
||
| - 0,15,30,45 <— mautic:segments:update | ||
| - 2,17,32,47 <— mautic:company-segments:update | ||
| - 5,20,35,50 <— mautic:campaigns:update | ||
| - 10,25,40,55 <— mautic:campaigns:trigger | ||
|
|
||
|
|
@@ -48,6 +49,25 @@ You can also limit the number of Contacts to process per script execution using | |
|
|
||
| .. vale off | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added Source: mautic/mautic#16025 |
||
|
|
||
| Company Segment Cron jobs | ||
| ========================= | ||
|
|
||
| .. vale on | ||
|
|
||
| **To keep Company Segments current:** | ||
|
|
||
| .. code-block:: php | ||
|
|
||
| php /path/to/mautic/bin/console mautic:company-segments:update | ||
|
|
||
| By default, the script processes Companies in batches of 300. If this is too many for your server's resources, use the option ``--batch-limit=X`` replacing X with the number of Companies to process each batch. | ||
|
|
||
| You can also limit the number of Companies to process per script execution using ``--max-companies`` to further limit resources used. | ||
|
|
||
| To update a specific Company Segment, use the ``--segment-id=X`` option. | ||
|
|
||
| .. vale off | ||
|
|
||
| Campaign cron jobs | ||
| ================== | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Modify Company's SegmentsCampaign action andCompany SegmentsCampaign condition based on PR #16025 which adds Campaign integration for Company Segments.Source: mautic/mautic#16025