Products
On this pageShowHide

Products

HTML
<script>
  SP.init("WEBSITE_ID", function () {
    var seen = SP.getLastSeenProducts();
  });
</script>

Trustisto remembers in the browser which products the visitor has seen and bought, e.g. to show them a “recently viewed” list.

Methods

  • SP.getLastSeenProducts() - up to 10 products the visitor has seen on Product Page, newest first, as { product, timestamp }
  • SP.getLastPurchaseProducts() - the visitor’s recent purchases, newest first, as { products, timestamp }