---
updatedAt: 2026-07-27T15:11:55.000Z
agentTools:
  siteIndex: https://documentation.bloomreach.com/llms.txt
  projectIndex: https://documentation.bloomreach.com/discovery/llms.txt
---

# Pixel Parameters Recommended Implementation

This guide details how to correctly implement pixel parameters.

## Recommended Implementation of br\_data.user\_id for Web Users

***

### br\_data.user\_id Parameter Overview

[block:parameters]
{
  "data": {
    "h-0": "Parameter Description",
    "h-1": "Parameter Value type with example",
    "0-0": "**If you track users** via a universal customer ID, populate this parameter with that ID. This should be an anonymized string and should not contain the user's email or other personally identifiable information.  \n  \n**This parameter is only required if you track users via a universal customer ID.** Ensure that the tracking of users aligns with your privacy policy and your country's regulations.  \n  \nThis parameter allows Bloomreach to recognize identified users in a way that is aligned with your system for various personalization features. Please note that the correct implementation of this parameter can vary for different user scenarios. Learn what parameter value you can set for each scenario in the next section.  \n  \n**If you do not track users** this way, leave this blank.",
    "0-1": "string, \"947345478564\""
  },
  "cols": 2,
  "rows": 1,
  "align": [
    null,
    null
  ]
}
[/block]

### Recommended Implementation

If you track users, here’s how you can correctly implement the br\_data.user\_id parameter for various web user scenarios:

[block:parameters]
{
  "data": {
    "h-0": "",
    "h-1": "**Web User Scenarios**",
    "h-2": "br_data.user_id Implementation",
    "0-0": "1.",
    "0-1": "User is a Guest (or Anonymous) user",
    "0-2": "Do not set `br_data.user_id` field or value.  \nAlternatively set it to an empty string `br_data.user_id = \"\"`;  \nCommon mistake is to set \"null\" or \"undefined\".",
    "1-0": "2.",
    "1-1": "Guest user logs in i.e. becomes a Logged-in User",
    "1-2": "<ul><li>Always send the universal user ID. For instance:`br_data.user_id = \"61WwurfPU9f9dB5\"`;</li><li>Avoid sending personally identifiable information such as a clear text email address or username. </li></ul>",
    "2-0": "3.",
    "2-1": "User logs out i.e. becomes a Guest user again",
    "2-2": "After logout, do not set br\\_data.user\\_id value, or set it to an empty string `br_data.user_id = \"\"`;"
  },
  "cols": 3,
  "rows": 3,
  "align": [
    "left",
    "left",
    "left"
  ]
}
[/block]

**Note:** When the user logs out, then the visit breaks.