Personalise: suggestions and profiles

Everything your visitors do teaches Enterprise your catalogue and what goes together. Ask it, from a page or from your server, what to show each shopper next, or everything it knows about one customer.

How suggestions are chosen#

  1. Your catalogue is learnt from the products in your events (looked at, put in baskets, bought), with their names, categories, prices, pictures and pages, and rebuilt every hour.
  2. What goes together: products bought in the same order, and products looked at in the same visit.
  3. For each shopper: what they put in baskets, looked at and bought (the more recent, the more it counts) and the product on screen choose products that go with those, then the best of the categories they like, then what is selling now. What they already bought is left out.
Note: Product views come in by themselves on most shops (see Shops). The more items your events carry, the better the suggestions.

On your pages#

import { suggest } from "@optiqstudio/track";

const { suggestions, recentlyViewed } = await suggest({
  product: "SKU-42",        // the product on screen (left out, and suggestions go with it)
  exclude: basket.ids,      // what is already in the basket
  limit: 8,
});

for (const s of suggestions) show(s.name, s.price, s.currency, s.image, s.url, s.reason);

From a page, suggestions are for that browser’s own visitor only. They never fail a page: if anything goes wrong you get empty lists.

Each suggestionTypeDescription
id, name, category, brandstringThe product, as your events named it.
price, currencynumber, stringIts latest price.
url, imagestringIts page and picture, when your events or its page data gave them.
reasonstringbought_together, viewed_together, in_category, popular or recently_viewed.
becausestringThe product it goes with, for bought_together and viewed_together: "Bought with Running shoes".

From your server#

With your secret key you can ask about any customer, by their email or phone, across every device they used: for a personalised email, a WhatsApp message, or a page your server renders.

TypeScript
import { Optiq } from "@optiqstudio/track/server";

const optiq = new Optiq({ secretKey: process.env.OPTIQ_SECRET_KEY! });

const { suggestions } = await optiq.suggest({ email: "ama@example.gm", limit: 4 });
const profile = await optiq.profile({ email: "ama@example.gm" });

profile.segment;          // "Repeat customer", "Lapsed customer", "Close to buying", ...
profile.orders;           // count, revenue, first and last order, average order
profile.firstTouch;       // the post or video that first brought them
profile.products;         // what they looked at, put in baskets and bought
profile.timeline;         // everything they did, newest first

What a profile holds#

  • Who they are to you: a segment (new visitor, engaged, lead, close to buying, customer, repeat customer, lapsed customer), first and last seen, visits, pages, the furthest step reached.
  • Where they came from: the first and last post or video that brought them, the first and last source, and every source with its visits.
  • On what, from where: their devices, systems, browsers and countries.
  • What they wanted: the products and categories they looked at, put in baskets and bought, and what they searched for.
  • What they paid: their orders with items, totals, the first and last order and the average order.
  • How they got in touch: WhatsApp chats, calls and emails begun, forms sent, sign-ups, and their consent.
  • Everything they did, newest first, and the products to offer them next.
Key point: The same profile is on the People page of your dashboard, where you can find a customer by email or phone. The address is hashed on your screen before it is looked up.

Last updated 2026-11-04 UTC. The SDK is open source under the MIT licence. Tell us what is missing.