Skip to content

Set a custom id on your customer

If your customers log in to use your shop or you have some other way of identifying your customers across devices and cookies being cleared you can give that id to Hello Retail and the activity tracked on the current tracking cookie will be associated with that customer id.

When a tracking cookie has a customer id associated with it, the personalization in all of the Hello Retail products will be based on all activity of the customer instead of just the activity of one tracking user.

To set the customer id for a visitor you must use the setCustomerId sdk method

hrq = window.hrq || [];
hrq.push([
    "setCustomerId", 
    "{customer id}"
]);