Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Unomi

Security covered Under active development 6 sites

This module integrates your Drupal website with Apache Unomi, an open-source customer data platform. It allows you to connect to the Unomi API to manage customer data and personalize user experiences while respecting privacy regulations. The module supports integrating with content elements like paragraphs and blocks to display content variations based on detected user segments.

Description

This module integrates your Drupal 8 website with Apache Unomi™: The Open Source Customer Data Platform

Apache Unomi™ (pronounced "You know me") is a Java Open Source customer data platform, a Java server designed to manage customers, leads and visitors data and help personalize customers experiences while also offering features to respect visitor privacy rules (such as GDPR)

This module connects your site to the API of Unomi. It allows a pluggable authentication strategy to support local Unomi's or hosted Unomi services like Dropsolid Platform.

Installation

* Install the Drupal 8 module via Composer:

composer require drupal/unomi

* Go to /admin/config/services/unomi and follow instructions to enter
your credentials
* Currently it supports paragraphs, custom blocks and even Layout Builder (with a core patch), if you have that installed it will show a dropdown of all your Unomi segments. Selecting one will listen for a specific variation and render the page with those paragraphs shown or not shown for the segment that was detected by Unomi.

Updating

Updating from 5.x to 6.x should cause no problems unless you depend on the SDK in separate code. In that case, you will need to reintroduce it.

Version 3.x (4.x for D10) includes a breaking change in the module and updating from 2 to 3 is currently not supported (or from 5 to 4). If you do want to do this, you will have to uninstall the unomi_segment_section field that the 2.x branch installed for content block types and migrate any data within that field to block visibility conditions (requires this patch: #2916876: Add visibility control conditions to blocks within Layout Builder)

If you are running any 2.x version, updating to the latest 5.x version will make your module Drupal 10 compatible.

If you are running a 3.x version, updating to "4.0.0-beta2" will make your module Drupal 10 compatible. We've removed the 3.x and 4.x branch from the "supported" list until this patch: #2916876: Add visibility control conditions to blocks within Layout Builder makes it in. Until then, keep using 2.x for Drupal 8/9 support and 5.x for Drupal 10 support if you're not already using these versions.

Common Requirements

Requirements are:

If you do not want to or cannot install your own Unomi server, there are a number of web Unomi hosts which are compatible with the Unomi module.

Quickstart with Dropsolid?

  • Set up an account with Dropsolid Platform and request a hosted Unomi
  • Install the Dropsolid Personalisation module
  • Create your segments in the Dropsolid Platform interface
  • Become super efficient by letting the AI detect patterns in your traffic to segment with.

Usage

To interact with the Unomi API in your custom module, use the
unomi_api service, and call the `getClient()` method on it:

/** @var \Drupal\unomi\UnomiApiInterface $unomi_service */
$unomiService = \Drupal::service('unomi_api');
/** @var \Dropsolid\UnomiSdkPhp\Unomi $unomiClient */
$unomiClient = $unomi_service->getClient();

Please note that you should preferably use dependency injection to load the
service, instead of `\Drupal::service()`.

Now that you have access to the unomi client, you can interact with the
Unomi data objects, e.g. get a list of segments:

/** @var \Dropsolid\UnomiSdkPhp\Repository\SegmentRepository $segmentRepository */
$segments_repository = $unomi_client->segments();
$segments = $segments_repository->listContacts();
Drupal 10–11

Ask your assistant about Unomi

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • options Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
10
Tracked since
Aug 2023
Latest release
8 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
6.0.0 Stable 10–11 Feb 5, 2026
6.x-dev Dev 10–11 Feb 5, 2026
5.0.0-beta4 Pre-release 10 Jan 10, 2025
5.0.0-beta3 Pre-release 10 Jul 9, 2024
4.0.0-beta2 Pre-release 10 Aug 2, 2023
5.0.0-beta2 Pre-release 10 Aug 2, 2023
4.0.0-beta1 Pre-release 9–10 Aug 2, 2023
5.0.0-beta1 Pre-release 9–10 Aug 2, 2023
5.x-dev Dev 10 Aug 2, 2023
4.x-dev Dev 10 Aug 2, 2023