How to generate pixel item_id


I am working on generating an item_id to send over for a page view event, Currently, this is how I’m generating the item_id that I’m sending via my pixel:

DigestUtils.sha256Hex(Constants.PIXEL_CATALOG + Constants.SLASH + request.getRequestContext().getResolvedSiteMapItem().getPathInfo()))

However, I want to be sure that the item_id in the pixel matches the item_id that is sent to brSM in the Content Search Integration. Does anyone know how I can ensure that these two item_ids match? How does the Content Search Integration generate the item_id?

Thank you!


The item_id to pass to the pixel is the UUID of the document.

You can get the UUID of the document from the request with:


1 Like

Thanks so much for this response! This is very helpful.