Understanding UID metrics
The uid is a key parameter that comes from the data layer. It formally identifies a user through a CRM ID.
The value sent in this parameter matters for collection, because it lets Eulerian merge marketing histories coming from different environments. When this identifier is not available, Using an alternative ID to prepare CRM reconciliation describes the possible fallback values. UID metrics are therefore used to monitor the values sent in this parameter and to check the quality of cross-device, cross-browser or omnichannel collection.
What are UID metrics for?
UID metrics track several situations linked to identifying a user:
| Metric | What it tracks |
|---|---|
| UID presence | Page views that contain a populated uid parameter |
| Different cookie UID | Cases where a uid value sent differs from the one usually associated |
| New UID | The creation of a new user identifier |
| Merge UID | The merging of two marketing histories through the uid parameter |
| UID split | The case where the same device or cookie is reassigned to a different identifier |
UID presence
Definition
The UID presence metric is incremented on every page view that contains a populated uid parameter.
Put simply, if a visit contains 10 pages and the visitor logs in from the 8th page onwards, the uid parameter is added from that page on.
Example
Take a visit by a single visitor who identifies themselves from the third page:
| Page | uid parameter present | Result | Explanation |
|---|---|---|---|
| 1 | no | +0 uid presence | The visitor is not identified |
| 2 | no | +0 uid presence | |
| 3 | yes | +1 uid presence | The visitor identifies themselves |
| 4 | yes | +1 uid presence | |
| 5 | yes | +1 uid presence | |
| 6 | no | +0 uid presence | The visitor logs out |
Different cookie UID
Definition
The Different cookie UID metric is incremented when a value is sent in the uid parameter, from the data layer or from a tracking URL, but that value is not the one usually sent.
Put simply, if a visitor identifies themselves several times with different accounts during the same visit, this metric is incremented for each different uid.
Important point
Unlike the UID presence metric, which can only be incremented by a collector call, the Different cookie UID metric is also affected by clicks.
Example
Take a series of actions, pages or clicks, by the same visitor:
| Action | uid parameter value | Result | Explanation |
|---|---|---|---|
| click | A | +0 different cookie uid | The visitor is associated with uid A |
| page | null | +0 different cookie uid | The visitor is still associated with the same uid |
| page | B | +1 different cookie uid | The visitor identifies themselves with another value |
| click | A | +1 different cookie uid | The visitor is associated with B, but clicking the link again switches them back to A |
New UID
Definition
A new access is counted when a new user identifier is created.
Put simply, every time a new unique identifier is passed in the uid parameter, the system counts one more new access type.
Example
Take a single visitor browsing on several devices:
| Action | uid parameter value | Result | Explanation |
|---|---|---|---|
| Mailing click | null | +0 new | A first cookie is created for this visitor |
| page | null | +0 new | The visitor is not logged in |
| login | A | +1 new | The history tied to the cookie is associated with a uid parameter A for the first time |
| login | A | +0 new | The history is already tied to this uid |
Merge UID
Definition
A merge is the merging of two separate marketing histories through the uid parameter, which acts as the matching key.
In this case, a merge access type is counted, with the result +1 merge.
When is a merge counted?
A merge is only counted if the unique uid already exists.
If the case is a creation or a first identification, the new metric is incremented instead.
Merging two separate UID parameters
You can also merge the history of two separate uid parameters.
In that case, the second one takes over:
- the marketing history associated with the first, including the channels;
- the first one’s user parameters, if those parameters are not set on the second.
For example, if the first uid has a user parameter codepromo that is not set on the second, the second inherits it.
Example
Take a single visitor browsing on several devices:
| Action | Device | uid parameter value | Result | Explanation |
|---|---|---|---|---|
| Mailing click | Mobile | null | +0 merge | A first cookie is created on the visitor’s mobile |
| page | Mobile | A | +0 merge | The visitor and their cookie are associated with uid A |
| Epub click | Desktop | null | +0 merge | For now, there is no way to link the previous cookie with this one |
| page | Desktop | A | +1 merge | Both cookies are now associated with uid A |
In this example, the visitor now has two marketing channels associated: Mailing and Epub.
UID split
Definition
A split is a special case that happens when, on the same device or cookie, the visitor logs in with a different identifier never recorded before, that is, with a different uid parameter.
In this case, the histories and user parameters are merged before the cookie is pointed at the new identifier.
Example
Take the following history, on the same device:
| Action | uid parameter value | Result | Explanation |
|---|---|---|---|
| Epub click | null | +0 merge | Cookie created |
| page | A | +0 split | Cookie associated with uid A |
| Mailing click | B | +1 split | The cookie now points to uid B |
| page | B | +0 merge | The cookie is associated with uid B |
| page | A | +1 split | The cookie is reassociated with uid A |
Effect on attribution
In this example, if the visitor makes a sale, it will be attributed to the Epub channel and not to the Mailing channel.
This is because:
- the Epub channel is associated with history A;
- the Mailing channel is associated with history B;
- on the last page viewed, the cookie points to identifier A.
So it is the history associated with identifier A that is valid at the time of the sale.
Diagnostic checklist
| What to check | Why it matters |
|---|---|
Is the uid parameter populated on the pages where the user is identified? | The UID presence metric depends on page views containing a populated uid. |
| Does the same visitor use several accounts during the same visit? | This can increment the Different cookie UID metric. |
Is the uid sent new to the system? | If so, the New UID metric may be incremented. |
Does the uid already exist, and does it link several histories? | If so, a merge may be counted. |
Does the same cookie point to several different uid values in turn? | This may be a UID split. |
| Are clicks taken into account in the analysis? | The Different cookie UID metric can be affected by clicks. |
Key points
- The
uidparameter formally identifies a user through a CRM ID. - It is used to merge marketing histories from different environments.
- The UID presence metric counts page views that contain a populated
uid. - The Different cookie UID metric can be incremented when a visitor uses several
uidvalues, including through clicks. - The New UID metric is the creation of a new user identifier.
- The Merge UID metric is the merging of two marketing histories through an existing
uid. - A UID split is a special case where the same device or cookie is associated with a different identifier.
- In a split, the history that is valid at the time of the sale depends on the identifier the cookie points to on the last page viewed.