Cookie (_br_uid_2)

The _br_uid_2 cookie is a first-party cookie created by the Bloomreach tracking pixel library (BrTrk). This cookie creates a unique, anonymous identifier for every browser or device. It’s important to include this cookie in all of your API requests because it is used to power several features such as Testing, Targeting and 1:1 User Personalization.

Note that these Organic API requests do not use the _br_uid_2 cookie:

  • Related categories, related items and related products widgets
  • Thematic pages with HTML responses

Parameter value

In your API requests, the _br_uid_2 parameter should use the following value, which is already encoded:

&_br_uid_2=uid%3D7797686432023%3Av%3D11.5%3Ats%3D1428617911187%3Ahc%3D55

Native App and non-JS implementations

For native app and non-Javascript implementations, you must generate your own _br_uid_2 value:

&_br_uid_2=uid={{UUID}}:v=app:ts=0:hc={{hitcount}}.

For UUID, we suggest using the following:

  • iOS devices - use the IDFA
  • Android devices - use the Android Advertising ID
  • Other devices - use the closest equivalent

hitcount should be 1 for a new visitor, or 2 for returning visitors.

&_br_uid_2=uid%3D1e7724c751a3f6e6241018d150144832e7528383%3Av%3Dapp%3Ats%3D0%3Ahc%3D1