Access your interface

Enter your email address to access your personal interface.

Why is history merging based on UID not working?

Updated 25 June 2026

Short answer

History merging based on the uid can fail if the identifier passed is not unique, not persistent, inconsistent between calls or does not match the expected format.

The uid parameter must contain the user’s unique identifier in your system or CRM. It acts as the matching key for merging the data associated with several devices.

What is the uid parameter for?

The uid parameter passed to the collector tags links the ad-centric and user-centric data collected on different devices.

An example of the expected case: a user has a mobile phone and a desktop computer, and logs in with their credentials on both devices. If the same unique identifier is passed, the histories can be merged.

So it matters to pass a value that is:

  • unique;
  • persistent;
  • consistent over time;
  • consistent across devices.

If it is not, cross-device matching can fail, or wrongly merge histories that should not be merged.

When should you run the checks?

Run the checks in the following cases:

  1. Some conversion paths in the Datamining sales / quotes list are inconsistent.
  2. The uid parameter is passed, but user data is not consolidated from one device to another.
  3. The %UID différent/présent metric reaches or exceeds 5%.

Case 1 · The uid is a session identifier

The value passed in the uid parameter must be persistent.

Examples of expected values:

  • encrypted email;
  • internal identifier.

It must not be a session identifier.

If a session identifier is passed, each new visit can generate a new uid. This can lead to:

  • inconsistent histories;
  • distorted sales attribution.

The %UID différent/présent metric lets you detect this kind of case.

Case 2 · The customer uid format does not comply

If data is not always correctly consolidated between two devices, check that the values passed in the uid parameter follow this rule:

^[a-zA-Z0-9+#@_!=:.-]{4,64}$

This rule is checked every time the uid parameter is present in the collector call.

A uid is ignored if:

  • it contains a character the rule does not allow;
  • it is shorter than 4 characters.

Case 3 · A fixed value is sent for users who are not logged in

Some implementation errors consist of passing a fixed value when the user is not logged in.

Examples of problem values: null, or a single -.

This kind of value can cause the marketing histories of every user for whom that same value is passed to be merged.