Using custom HTML

Building your own HTML - Click Tracking Client Side Helper

If you operate on the client side, for example, with a PWA or SPA, we have also provided a helper to submit the click-tracking data. This requires you to have the Fresh Relevance script on your site. As with the manual option, you must pass the full meta object you receive in the personalization response to the function.

$TB.trackCLick(meta, url, oid, vid)

The helper automatically includes the user's cookie ID.

The oid must be the _id value of the item, not the product ID (prid) value. It should look similar to "DtqoVDld2Xcj1sYBySy2xw==".

If present, the vid (variant ID) value should be passed, otherwise omitted.