Free open-source Magento 2 modules — professional installation & support available
Magendoo
customer-segmentation-magendoo.jpg
Digital

Customer Segmentation for Magento 2

SKU: magendoo-customer-segmentation

Free
Quantity
  • Instant access after order confirmation
  • Open source — MIT licensed
  • Free updates included
  • Professional support available

Need help?

Contact our support team for product questions.

Instant Download

After payment

MIT Licensed

Use in any project

Secure Payment

SSL encrypted

Support Included

With every purchase

Customer Segmentation for Magento 2

Replace expensive Enterprise Edition segmentation with a powerful, MIT-licensed alternative. Define rich rules that automatically group customers into segments — then use those segments to trigger personalised promotions, targeted discounts, and customer group overrides.

Core Capabilities

  • Dynamic Segments — rules evaluated automatically on customer events (login, order placed, cart updated)
  • Manual Segments — static customer lists for campaign targeting
  • Scheduled Refresh — cron-based daily recalculation or on-demand via CLI
  • Real-time Mode — segments updated instantly on every qualifying event

Condition Types

CategoryAvailable Conditions
Customer AttributesEmail, name, date of birth, gender, VAT number, customer group, account creation date, store view
Order HistoryTotal orders, lifetime revenue, average order value, first/last order date, items purchased, coupon codes, payment & shipping methods, shipping countries, order status
Shopping CartCart subtotal, items count, specific SKUs in cart, active cart flag, days since last cart activity
Product InteractionsPurchased SKUs, purchased from categories, wishlist item count

Admin Interface

  • Segment grid with live customer counts and status indicators
  • Visual rule builder — no code required
  • Preview matching customers before saving
  • Matched Customers tab on the edit page
  • One-click segment refresh with progress indicator
  • Mass actions: Delete, Refresh, Export (CSV / XML)

Cart Price Rule Integration

Use any segment as a condition in Marketing → Cart Price Rules. Combine segments with any other Magento condition type for highly targeted promotions.

REST API

  • GET /V1/customer-segments — list all segments
  • POST /V1/customer-segments — create segment
  • PUT /V1/customer-segments/:id — update segment
  • POST /V1/customer-segments/:id/refresh — trigger refresh
  • GET /V1/customers/:customerId/segments — get customer's segments

CLI Commands

bin/magento magendoo:customer-segment:refresh --all
bin/magento magendoo:customer-segment:refresh 1 2 3
bin/magento magendoo:customer-segment:refresh 1 --export --format=csv

Installation

composer require magendoo/module-customer-segment
bin/magento setup:upgrade && bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f && bin/magento cache:flush

Requirements

  • Magento 2.4.x Community Edition
  • PHP 8.1 or higher
  • 106 unit tests, 198 assertions — 100% rule-engine coverage

License: MIT  |  View on GitHub

Compatibility & Installation

  • Magento: Open Source 2.4.x (magento/framework ≥ 103)
  • PHP: 8.1 or higher
  • License: MIT (per the repository's composer.json)

The package is not on Packagist yet; install it from the GitHub repository:

composer config repositories.magendoo-customer-segment vcs \
  https://github.com/florinel-chis/magendoo-m2-customersegment.git
composer require magendoo/module-customer-segment

GitHub repository

Key Features

  • Dynamic and manual segments with three refresh modes: manual, cron (default every 5 minutes), or real-time on customer events
  • Conditions across customer attributes, order history, shopping-cart contents, and purchase / wishlist interactions
  • Visual rule builder with a customer preview before saving and a Matched Customers tab on the edit page
  • Cart Price Rule integration — use any segment as a promotion condition
  • REST API plus CLI (bin/magento magendoo:customer-segment:refresh) with CSV/XML export
  • Segment indexer with mview support
  • MIT licensed; Magento 2.4.x Community Edition, PHP 8.1+

Last updated: July 2026 · v2.0.0

FAQ(5)

Have a question?