Placements
A placement is a named spot inside your app or website - home_hero, cart_upsell, account_banner - that Joryio fills for each person. An in-app message pops up over the screen; a placement sits inside the page, where your developers put it.
1. Define the placement
Settings -> Personalization -> Placements -> New placement. The placement opens on its own page (a click on a placement in the list opens it the same way), with the Settings, Code and Report tabs. Give it a name and a key - the name your app asks for. Then choose:
| Setting | What it does |
|---|---|
| Apps | The apps it lives in, or every app of the workspace |
| Data fields | What the app reads from each item - a headline, an image, a link, a badge. Campaigns fill them in |
| Content campaigns may use | Fields (data only), Card (drawn by the SDK), HTML |
| Items shown | 1, or up to 10 for a carousel or a list |
| When nothing is eligible | Collapse the space, or keep it so the page does not move |
| Replace a shown item | Only by a higher priority (default), by the best item at each refresh, or never while it is still eligible |
| Limit how often one person sees this placement | Views per session, day, week or ever, across every item in the placement. This is the only display cap a placement campaign has; workspace touching rules never limit placements and their views never count toward them |
| After a person closes an item | Never show it to them here again (default), again after some days, or again at the next refresh. Remembered by Joryio, so it holds on every device |
| Placement holdout | Off by default. On, a share of people (1-50%) sees nothing here from any campaign, so each campaign is also measured against showing nothing. Each campaign is also measured by its own control group - see below |
The Code tab has the line your developers add for each SDK (web, iOS, Android, React Native, Unity). For a developer who draws the item from its data (Fields), it also shows, per SDK and for a server, how to read each of this placement's data fields by its key and type, and how to report the view and the tap; it follows the Settings tab as you add or rename fields. Once a campaign or journey using the placement has gone live, its key is fixed. Placements are archived, never deleted; a placement that live campaigns or journeys use cannot be archived.
2. Create a placement campaign
Campaigns -> New -> Placement. Pick the placement at the top of the content step, then for each variant fill the placement's fields - Liquid such as {{ user.first_name }} works in text; an image field has Choose image (your asset library, or upload a new image) beside the address - or use a card or HTML when the placement allows it. The preview shows the item inside a page, at the placement's shape. Audience, schedule, priority and A/B variants work as for any in-app campaign. The campaign has no display cap of its own: how often one person sees it is set on the placement (Limit how often one person sees this placement, above). It is measured by its control group, set in Audience Allocation like any campaign's: people in the control group see the next campaign in this placement instead (nothing, when there is none), and the control group chip reads Control - next campaign. The report's Lift vs next campaign compares the campaign's viewers with them.
Launch Review stops a launch when the placement is missing or archived, when a variant uses content the placement does not allow, or when a required field is empty. A colour field must be a hex colour such as #1a2b3c, and a link or image field a link such as https://example.com/page, an app link or a /path (Liquid is always fine): the field shows the problem as you type, and saving refuses it. This applies to values you enter or change - a value saved before this check keeps the campaign running and launching, and Launch Review suggests fixing it.
3. Or add it to a journey
In a journey, add a Message step and pick Placement. Choose the placement and fill its fields. When a person reaches the step, the item waits for them in that placement, and their app is asked to refresh. The step has no holdout of its own - split or hold out people in the journey itself.
What people see
Each placement ranks its own items for each person: priority first, then a journey step before a campaign, then the newest. A view counts when at least half of the item is on screen for one second. A person in a campaign's control group is not shown that campaign: the next eligible item takes the spot (nothing, when nothing else is eligible), and Joryio records that they were held out once the spot was in view. A person in the placement holdout, when it is on, sees nothing there; Joryio records the campaign they would have seen. Who is held out is a stable draw per person, the same on every device of a known contact. Visitors who refused tracking see only campaigns that target everyone.
Show when
Show when sets the moment a placement campaign's item appears in its spot. The app or website fetches the content as usual and holds it; until the moment comes, the spot keeps what it showed before (its default, or nothing). Choose one:
| Show when | The item appears | Where |
|---|---|---|
| Page or screen loads (default) | As soon as the content arrives, as before | Web and apps |
| After N seconds on the page or screen | After 1-3600 seconds on the page or screen. On a website only the time the page is visible counts; in an app only the time in the foreground | Web and apps |
| After scrolling N% | Once the visitor has scrolled 1-100% of the page | Web only |
| When leaving the page (exit intent) | On a desktop, when the mouse leaves the window through the top. On phones and tablets, when the visitor scrolls up quickly | Web only |
| After an event in this visit | Once an event you name has been tracked in this visit, before or after the page opened | Web and apps |
When leaving the page on phones and tablets: there is no mouse, so it fires when the visitor, having scrolled down at least a quarter of the page (or 400 pixels), scrolls back up quickly - 120 pixels within 0.3 seconds, the gesture of someone reaching for the address bar or the tabs. It never fires in the first 3 seconds on a page, and at most once per page view, as on a desktop. A laptop with a touch screen, or a tablet with a mouse or trackpad, keeps the desktop rule.
Once shown, the item stays for that page view or screen. A route change in a single-page app, or a new screen in an app, starts the moment again; an event already tracked in this visit still counts, so an After an event item shows again at once.
After an event re-checks at once: when the event is tracked, the SDK asks for the placement again and sends the event with that request, so an audience condition such as "did Add to cart" counts straight away, even before the event is stored - the person who has just added to the cart sees the item without waiting for the next refresh.
Apps (iOS, Android, React Native, Unity) support Page or screen loads, After N seconds and After an event. A campaign set to scroll or exit intent is never sent to an app; the spot in the app gets the next eligible campaign.
Stats count what people saw. A view is counted only when the item is actually shown - at its moment, and in view as always - never while it is held. A person in the campaign's control group is counted as held out at the same moment the item would have appeared, so both sides of the comparison are measured alike.
SDK versions. Every SDK gets the campaign's Show when. The web SDK and the app SDKs 1.4.0-beta.9 or later honour it; an earlier 1.4.0 beta shows the item as soon as it arrives, as if Page or screen loads were chosen. A page your own server draws through POST /v1/placements/decide (see From your server) gets only campaigns set to Page or screen loads, because there is no SDK there to hold the item until its moment. A server that does the timing itself can opt in with includeShowWhen (see From your server).
Launch Review warns when the event of After an event has never been tracked in your workspace, and when After scrolling or When leaving the page is set for a placement that lives only in apps, where it would never show.
Recommended products
A placement item can show products picked for each person - a "You may also like" strip on the home page, "Bought together" on a product page. In the campaign's content, tick Add recommended products, choose the recommendation model (its type - popular, similar, bought together, personalized and the rest - and its merchandising rules apply) and how many products, and whether they relate to the product on the page. For that, the app sends the product it shows (context.productId) when it asks for the placement.
Each person gets their own products when the placement is filled; when the model has nothing for them, the item is not shown and the next eligible one is. Views and clicks of the products teach the recommendation model what works on your site, as they do in email. The products arrive with the item (products: name, price, image, link); your app draws them as cards.
A Drag & drop item can carry its own product cards instead: add the Products block in its editor. Its products are picked for each person when the item is served and arrive inside the item's HTML, so the app needs nothing extra to draw them.
AI ranking
When several items are eligible for a person, a placement shows them in priority order by default. Set Order of eligible items to AI and Joryio ranks them for each person with your workspace's AI model - the same model the Next Best Message step uses - and now and then tries another item, so it keeps learning what works. If there is no trained model yet, or it does not answer in time, the placement simply uses priority, so nothing is ever left empty because of AI.
To show what AI ranking adds, a share of people (default 20%) keeps priority order. The placement's Report compares the two groups - how many clicked and how many reached the conversion goal (see Reports) - and marks the difference as significant once it is unlikely to be chance. Each decision is recorded, so the model learns from what people do in your placements.
Offers
An offer is a piece of content or a coupon you reuse across placement campaigns - "Free shipping this week", "10% off with SAVE10". Create offers at the bottom of Settings -> Personalization -> Placements: the fields it fills, the coupon code, who may get it (everyone, or people in a segment), when (from - until), and what to show instead when someone cannot get it. In a placement campaign, pick the offer at the top of the content; anything you fill in the campaign wins over the offer's own fields. When the person cannot get the offer or its fallback, the next campaign of the placement is shown. The coupon code reaches the app as the coupon_code field.
For placement(s). Each offer names the placements it is for. Its content is then those placements' Data fields, each with the control for its type - text and long text (Liquid allowed), a link, an image (pick from Assets or upload one), a number, a yes/no switch and a colour - with the field's key shown under it. With several placements, the fields they all have come first and the fields only some have are grouped with the placements that use them. A field marked * is required by a placement; the offer must fill it only when every chosen placement has it - a field only some have can be filled by the campaigns on those placements. Every offer is for at least one placement - the editor does not save one without - and its content is exactly the fields of its placements: a value whose key no chosen placement has is listed as removed and is dropped when you save. A placement campaign's Offer list shows the offers made for its placement; Launch Review warns (never blocks) when a campaign uses an offer made for other placements. An offer with no placements (only one saved before offers had placements can have none) is never shown: the offers list marks it None - not shown, Launch Review blocks a campaign that uses it, and it is shown again once you open it and choose its placements - values whose key matches a field of those placements are kept in that field. When a placement is archived, offers keep it and the editor marks it archived; when a placement's fields change, the editor shows the values that no longer fit, and the offer keeps serving the keys it has until it is saved again. In a campaign, a required field the chosen offer fills counts as filled - when the offer has an Instead, show offer, that one must fill it too, because people who cannot get the first offer get it (with Nothing, they get no item from this campaign).
A code per person. A coupon offer can also take its codes from the Coupons feature instead of one static code: set Code to A code per person, from a coupon program and pick the program (a code bank, an uploaded list, personal codes created in your store, or a shared code). Each signed-in contact gets their own code the first time they see the offer and the same code every time after; no two people get the same code, and an order that uses it is credited to the placement campaign in the coupon report and revenue, like a code sent by email. When the program cannot give a code - the codes ran out, the program is paused, or the visitor is not an identified contact - the program's fallback decides: its fallback code, the offer without a code, or (the default, skip) the offer's Instead, show offer, else nothing and the next campaign. Launch Review shows which of these applies, and blocks the campaign while the program is missing, not active, or its code bank is empty. The code reaches the app as coupon_code, with coupon_expires_at and coupon_apply_url when the code has them. A first personal code created in a Shopify store can take a moment: if it is not ready within 1.5 seconds the offer waits for the next view - prefer a code bank for busy placements. Only verified people get their own code: the app must use SDK Authentication (the signed token names the contact), or the visitor carries a verified storefront identity from a connected store, or your server asks through POST /v1/placements/decide. A contact named only by an external id with SDK Authentication off is a claim anyone can make, so they get the program's fallback, and no code is used up.
On your store's pages
On a store with the Joryio WordPress plugin (1.6.48 or later), Magento extension (1.4.36) or PrestaShop module (1.2.30), a placement whose content is the same for every visitor is filled by your store's server: the content is already in the page's HTML when it is sent, so it shows with the page - no empty spot that fills a moment later - and a page cache keeps it. This works for the placement slots of your theme (<div data-joryio-placement="home_hero">) and for the slots a Web personalization campaign adds.
A slot is filled on the server only when everything that decides it is the same for every visitor:
- the campaign that wins the slot targets everyone, has no frequency cap of its own, no URL parameter or UTM rule (rules on the page address are fine), no schedule in the visitor's time zone, and shows when the page loads;
- it has one version - no A/B test and no control group - and no campaign of higher priority for the same slot targets only some people;
- nothing in it is personal: no personalization (
{{ user.firstName }}), no offer, no cart or last order products, and product cards only from a Selection, picked products or a recommendation model that reads nobody's history (top sellers, trending, new arrivals, biggest discounts, best sellers of a named category, or products related to one fixed product); - the placement has no holdout, no frequency cap and no AI ranking, shows one item, and no journey fills it;
- its content is HTML or drag & drop content, product cards, or both. App-style content stays in the browser, and so does HTML that needs scripts, a form or buttons that call Joryio. HTML content is written only when the store lets in-app messages use HTML (Allow HTML in-app messages), as the browser would.
Everything else stays in the browser, as before: the web SDK fills the slot for each visitor. When the server did fill a slot, the web SDK still asks for that visitor's own answer. If it is the same campaign, version and products, the content stays as it is and the view is counted for that visitor once the slot is on screen (nothing is recorded for a visitor who refused tracking). If it is not - the visitor is suppressed, the campaign was paused or changed, a limit was reached - the SDK replaces the content, or removes it as the placement's empty behaviour says. Joryio's answer for a page is kept for at most one minute, so a "trending products" strip is never more than a minute old. The store's setting Don't apply web personalization on the server turns this off too. It needs web SDK 1.4.0-beta.9 or later.
From your server
A page your own server draws - a headless store, a kiosk, a server-rendered page - can ask for placements too. Its developers call POST /v1/placements/decide with a secret API key that has the users:read scope (Settings -> API Keys), naming the customer by your customer id. The answer is decided exactly as in the app: the same priority or AI ranking, limits, control group and recommended products. The placement's Code tab has the call ready to copy. Never put the secret key in an app or a browser - the SDK key is the one for those.
Placement campaigns whose Show when is not Page or screen loads are left out of this answer by default, because no SDK is on the page to hold the item until its moment. Developers who do the timing on their page can ask for them with includeShowWhen: each item then names its moment, and the page reports a view only when it really shows the item (see Show when from a server).
Reports
Open a placement in Settings -> Personalization -> Placements and choose Report. For the dates you pick it shows how often the placement was asked for and filled (the fill rate leaves the placement holdout out), viewable impressions, clicks and CTR, dismissals, conversions, and the revenue of people who saw it. Below, each campaign and journey step has its own row with its own goal and lift. Lift vs next campaign compares the people who saw it with the people in its control group, who saw what they would otherwise have seen here - the next campaign, or nothing - so it measures the campaign against the alternative, not against an empty spot. With the placement holdout on, Lift vs nothing compares them with the placement holdout people who would have seen it, and Placement uplift vs nothing at the top compares everyone who saw an item with everyone held out of the placement. A lift is marked significant when the difference is unlikely to be chance; until enough people are held out it says so instead of showing a number. Views a campaign got only because a person was in the control group of a campaign above it are counted on its row and named there.
To follow your slots on a dashboard, add a Placement slot widget: views, conversions, conversion rate, the top campaign and the lift vs the slot holdout, per slot.
The conversion goal
The lift counts the same conversion goal you set for any campaign or journey. For a placement campaign, open its Conversion step and pick the goal - a purchase, a session, or any event you track, with optional property conditions - and its attribution window. A journey Placement step counts its journey's goal (the journey's Conversion step). When no goal is set, the report counts purchases within 7 days. Revenue is the order value of the goal, so a goal such as Sign Up shows no revenue. The attribution model and secondary goals do not change the lift: it compares people who saw the placement with people who did not.
The report names the goal it counted above the numbers. When the campaigns and journey steps in one placement count different goals, there is no single placement uplift: each campaign's row shows its lift on its own goal, and AI ranking compares clicks only.
A placement campaign's own report has a By placement table with the same numbers for each placement it appeared in.