Skip to main content

Website personalization

Three things work together on your website (they need the Joryio web SDK on the site):

  • Page targeting - show an in-app message, a placement campaign or a web personalization campaign only on some pages.
  • Page triggers - show an in-app message when a visitor arrives on a page, is about to leave, has scrolled far, or has spent some time.
  • Web personalization campaigns - change text, images and links on your own page, hide something, or add a placement next to it - per visitor, without a code release.

Page targeting​

In the campaign's Delivery step (and in a journey's In-App or Placement step), Pages lists:

  • Show on pages that match any of - for example matches /products/* or contains /sale. * stands for one part of the path, ** for anything.
  • Never on pages that match - for example contains gift.
  • Page variable rules, all of which must hold - for example pageType is product, or a dataLayer value such as ecommerce.value is more than 50. Your developers decide which variables the site reports.
  • UTM rules - the source UTM (this visit) is the campaign the visitor arrived with in this session (it stays for every page of the session), UTM (first visit) the first campaign this browser ever arrived with. Pick the field (utm_source, utm_medium, utm_campaign, utm_term, utm_content) and a rule, for example UTM (this visit) utm_source is newsletter. The web SDK sends what it recorded when the visitor arrived; the page address itself is still never read.
  • URL parameter rules - a parameter of the address of the page the visitor is on now, for example URL parameter jr_test is 1. See URL parameter rules.

URL rules look at the page address without its query string (the part after ? counts only for URL parameter rules). With no rules the campaign shows on every page. Page rules apply on websites only: in the iOS and Android apps (React Native and Unity included) they are ignored, and the campaign shows there by its other triggers. An app or website SDK too old to know page rules never receives a page-targeted campaign.

URL parameter rules​

The source URL parameter reads the address of the page the visitor is on now. Name the parameter and pick a rule: jr_test is 1, ref contains spring, preview is set. A test link such as https://shop.example/sale?jr_test=1 then shows the campaign only on pages opened with that parameter - from the very first page, and not on the next page without it, because the parameter is not remembered.

  • Parameter names are case-sensitive (jr_test is not JR_TEST); values are compared ignoring case, as in the other rules, after decoding (%20 and + are spaces).
  • A parameter given more than once (?tag=a&tag=b) matches when any of its values does; is not holds when none of them is equal.
  • Works for in-app messages, placements and web personalization campaigns, and for the journey In-App and Placement steps.
  • The web SDK sends the page's query string with each request that decides what to show on that page. Joryio uses it for that decision only: it is not stored, not logged and not added to any event. (Page view events keep recording the page address as before.) A query string longer than 2,048 characters is not sent, and no URL parameter rule matches on that page.
  • It needs the web SDK 1.4.0-beta.14 or later. An older web SDK never shows a campaign with a URL parameter rule, and apps ignore page rules.

Page triggers​

Next to Event and the other triggers, the Delivery step offers Page view, Exit intent (on a desktop the mouse leaves the window through the top; on phones and tablets the visitor scrolls up quickly), Scroll depth (a percent of the page) and Time on page (seconds the page was visible). Each fires at most once per page, and only on pages the campaign's page rules allow. In a single-page app every route change is a new page. Time on page / screen saves the same seconds for websites and for apps, so one campaign covers both (see In-app campaigns).

Web personalization campaigns​

New -> Web personalization creates a campaign that changes your page instead of drawing a message. Each variant is a list of edits:

changewhat it does
Change textthe element's text (always plain text; personalization such as {{ user.firstName }} works)
Change linka link's address (https:// only)
Change imagean image's address (https:// only). Choose image picks one from your asset library or uploads a new one, or paste an address
Hide ithides the element for this campaign's audience
Add placementadds a placement above the element, below it, or instead of it (the element is hidden and the placement takes its place)

Availability​

Web personalization is part of placements, which Joryio switches on for your organization. Until it is, Web personalization is not offered under Campaigns -> New, a web personalization campaign cannot be saved or launched, and the web SDK applies no edits on your site. Contact Joryio support to have placements switched on.

Pick elements on your site​

Enter a page of your site in Page and press Open visual editor. Your page opens in a new tab with the Joryio editor on it. Every change shows on the page while you make it and appears in the variant you are editing. The editor described here comes with web SDK 1.4.0-beta.6 or later on your site (field pills, More… and Liquid code with 1.4.0-beta.7).

  • Point at an element - it gets a dashed outline and a label saying what it is, for example Heading - click to edit. Click to select it; the click never reaches your site.

  • Not the right box? ↑ selects the section around it, ↓ the first element inside it - with the arrow keys, the two buttons at the top of the side panel, or the path beside them (Page › Main › Heading).

  • The side panel names the element and how many elements on the page will change (1 match on page, Matches 3 - all will change, or Not found), and asks What do you want to do?:

    • Change text - the New text, with Was: the text on the page now.
    • Change link - a new link address (offered for links only).
    • Change image - a new image address (offered for images only).
    • Hide it - the element is removed for people in the campaign's audience; everyone else still sees it.
    • Add content slot - a slot name and Where: Above it, Below it, Instead of it (the element is hidden and the slot takes its place), Inside, at the start or Inside, at the end - see below.

    Addresses start with https:// (or http://). Applies to sets the device (see Mobile and desktop), and CSS selector, folded away, is for developers. Save adds the edit; Cancel (or Esc) puts the element back as it was.

  • An element that already has an edit opens that edit - its value, its fallbacks and Was: the page's original text - and Save updates it instead of adding a second edit. When the element has several edits, the latest one opens; a dot on another action opens that edit.

  • The bar at the bottom shows the campaign, the variant and the page, the Desktop / Mobile switch, N edits (click it to list the edits and jump to one), Undo last edit (the arrow button; it works while the Joryio tab that opened the editor is still open) and Save & return to Joryio, which finishes and takes you back to the campaign. Esc with nothing open finishes too.

Edit on site on an edit's card opens the editor on that edit. Joryio finds the element with a stable selector (its id or test attribute when it has one); developers can see and edit it under CSS on the edit's card. Nothing secret is put in the page address: the editor is unlocked by a short-lived token the dashboard hands to that tab only.

Add content slot in the visual editor puts a placement on the page: type a slot name (it becomes the placement key) or pick one of your placements, and choose where it goes. Once the slot is saved - and whenever you open a saved slot again - the panel shows what fills it: Create content for this slot → when no campaign fills that placement yet, otherwise In this slot: with each campaign and its status, and + Add another campaign. They open in a new Joryio tab, so the campaign you are composing stays as it is: a campaign opens itself (a draft in its editor); Create content for this slot and + Add another campaign start a new Placement campaign with this placement already chosen. For a slot name that is not a placement yet, the new-placement page opens with the key, a name and the page you added it on filled in - nothing is created until you save it, and then the new Placement campaign opens. If your browser blocks the new tab, the dashboard shows a link to open it. This needs web SDK 1.4.0-beta.7 or later on your site.

In the visual editor, each field in the New text is a pill with the field's name (for example firstName), and the page shows the Preview as contact's value in its place, or the fallback. The chips under the field insert the common fields - first name, last name, email, city - where the cursor is; More… opens a searchable list of every field you can insert, by group (↑ / ↓ and Enter pick one, Esc closes it). A pill is one piece: Backspace removes all of it and the arrow keys step over it. Click a pill (or press Enter on it) to set what visitors we do not know yet see in its place - If firstName is missing - for that field only, so two fields can have two different fallbacks; a pill with a fallback shows it after its name. A fallback is plain text, not Liquid.

Liquid code, folded away under the field, shows and edits the text as Liquid, for example Hi {{ user.firstName | default: "there" }}. Text with Liquid a pill cannot show - {% if %}, or a filter other than default - stays as code with a short note, so nothing is lost. Visitors never see pills, only the values.

Next to the address, Joryio SDK found means a Joryio web SDK of this workspace reported to Joryio in the last 24 hours. For a store connected through a Joryio plugin or app the check is about that store's own site; for a website app it is about the workspace (or the campaign's app), not this exact page. SDK not found links to the install guide. Joryio never reads your page to decide this.

Edit cards​

Each edit is a numbered card: what it does and to which element (for example Change text · Heading), whether the preview found the element on the page (Found on page / Not found), what it was (Before, struck through) and what it becomes (After), and Edit, Edit on site, CSS and Remove. Edit opens the fields of the edit's action - each action has its own: the new text, the new link address, the new image address, nothing for Hide it, and for Add placement the placement and where (Above it, Below it or Instead of it). An edit saved earlier inside the element (at its start or end) keeps that position. Pick more on the page opens the visual editor again; Add an edit by hand adds an empty card.

For Change text, Insert adds a field of your contacts (from your workspace's attributes) to the text, and If a value is missing sets what visitors we do not know yet see instead of each field - it is the Liquid default of the fields in the text. A field with no fallback renders empty for an unknown visitor, and then the edit is not shown to them at all; the Launch Review recommends a fallback.

The fields you can insert - under More fields on the card and in Insert in the visual editor - are the ones the email and in-app personalization picker offers that work in a page edit: every default attribute, your custom attributes, the cart checkout link and your coupon codes. Lists (cart items, last order, recommendations, catalog selections), content blocks, subscription links and journey-only fields are left out, because a page edit shows one plain value.

Mobile and desktop​

Each edit applies to All devices (the default), Mobile only or Desktop only. Mobile means a screen narrower than 768 pixels - a phone, or a narrow browser window; anything wider is desktop. Use it to show a shorter headline on phones, hide a large banner on mobile, or give each layout its own button text: two edits of the same element, one Mobile only and one Desktop only, never get in each other's way.

  • On a card, Applies to (under Edit) sets it, and a card for one device shows Mobile only or Desktop only next to its title.
  • In the visual editor, the Desktop / Mobile switch in the bar at the bottom shows your page at phone width (390 pixels) in the same tab, with your site's own layout, and you point and click there as on the desktop page. Each edit has Applies to in the side panel (in the Mobile view it comes first), the edit list marks the edits for one device, and the page shows only the edits of the view you are in. If your site does not allow itself to be shown in a frame, the Mobile view says so - make the editor's window narrower than 768 pixels instead.
  • In the preview, Desktop and Mobile show only the edits for that device; a card for the other device says Not on this device.
  • On your site, the web SDK applies an edit only on its device, and switches when the window is resized or a phone is turned. Edits for one device need web SDK 1.4.0-beta.8 or later on the site; an earlier 1.4.0 beta applies them on every device. The store plugins that write page edits into the page's HTML leave edits for one device to the browser.

Show when​

Show when sets the moment a web personalization campaign's edits are applied in a page view. The web SDK fetches the edits as usual and holds them; until the moment comes, visitors see the page as your site draws it. Choose one:

  • Page loads (default) - the edits are applied as the page loads, as before.
  • After N seconds on the page - after 1-3600 seconds during which the page was visible; time in a hidden tab does not count.
  • After scrolling N% - once the visitor has scrolled 1-100% of the page.
  • 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 after reading down the page.
  • After an event in this visit - once an event you name has been tracked in this visit, before or after the page opened. When the event is tracked, the web SDK asks for the page's edits again and sends the event with that request, so an audience condition such as "did Add to cart" counts at once, even before the event is stored.

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 applied, the edits stay for that page view. In a single-page app a route change starts the moment again; an event already tracked in this visit still counts, so After an event edits come back at once. Web personalization is for websites only, so it has no app version. A campaign that is waiting for its moment is not held back by No flicker: its elements show the original page until then.

  • Stats - an edit counts as displayed only when it lands on the page after its moment. A visitor in the control group counts as exposed at the same moment (and, as always, only when the element is on their page), so the A/B comparison stays fair.
  • Store plugins - the WordPress, Magento and PrestaShop plugins that write page edits into the page's HTML never write such a campaign: the web SDK applies it in the browser at its moment.
  • SDK version - web SDK 1.4.0-beta.9 or later honours Show when. An earlier 1.4.0 beta applies the edits as the page loads, as if Page loads were chosen.
  • Launch Review - warns when the event of After an event has never been tracked in your workspace.

Preview​

Beside the cards, the live preview shows the variant's edits applied to the page you entered, with markers numbered like the cards. Preview as shows the page for a Known visitor (a random, searched or made-up contact, as in the email preview) or an Unknown visitor (each field shows its fallback, and an edit with nothing to show is left out). Desktop and Mobile lay the page out at that width. Joryio reads the page once, removes its scripts, applies the edits exactly as the web SDK does and shows the result in a locked frame.

Preview as is the same picker as in the email and in-app previews - Random user (the default), Select existing user or Custom user - and it is chosen once for the whole step: every variant's preview, the After of each card and the visual editor on your site all show the edits with that contact's values instead of the field names. Changing it while the visual editor is open updates the editor's page too, without losing the edits or a change you have open there. Fields your workspace marks as personal data stay masked for team members who may not see them. When the workspace has no contacts yet, Random user uses your own name.

Why a copy and not your live page: most sites do not allow being shown inside another site (X-Frame-Options or a frame-ancestors policy), and the dashboard could not change a page from another site even if they did. Because scripts do not run in the copy, anything your site draws with JavaScript is missing from it - an edit of such an element shows as Not found and can still work on the live page; check it with Open visual editor. When the page cannot be read at all (it blocks automated reads, does not answer in time, or is not a web page) the preview says why, and each card still shows its Before and After.

The Launch Review checks every web personalization campaign before it goes live.

No flicker​

While the page loads, only the elements edited last time are held back - for at most 300 ms, never the whole page. Edits that are the same for everyone are applied as soon as each element appears; personalized edits are applied when Joryio answers.

Store plugins​

The WordPress plugin, the Magento extension and the PrestaShop module write the page edits that are the same for every visitor into the page's HTML before it is sent, so there is no flicker and a page cache keeps the edited page. A/B tests, control groups, personalized edits, edits for one device and campaigns with a later Show when are always left to the browser.

The same plugins also fill placement slots whose content is the same for every visitor - in your theme and in the slots a campaign adds - so they show with the page.

What is done on the server, and what in the browser. On the server: the page edits and the placement slot content that are the same for every visitor of a page, written into its HTML. In the browser, by the web SDK for each visitor: A/B tests and control groups, anything personalized, edits for one device, campaigns with a later Show when, app-style placement content, and every check that depends on the visitor - their audience, frequency limits, consent and whether they are suppressed. The browser has the last word: it undoes a server edit, and replaces server-filled content, that the visitor's own answer no longer carries.

If a page cache or another add-on clashes with these server-side changes, turn on Don't apply web personalization on the server in the plugin's settings (WordPress plugin 1.6.48, Magento extension 1.4.36, PrestaShop module 1.2.30; off by default). The plugin then never asks Joryio for a page's edits or slot content and never touches the HTML, and the web SDK applies every edit and fills every slot in the browser, with the same No flicker as on any other site. Shopify has no server-side step: the web SDK always applies the edits.

Page caches are cleared for you. When a change in Joryio affects what the plugins write into your pages (a campaign launched, paused, edited or ended, a schedule boundary, a placement or a switch), Joryio tells the store about a minute later and the plugin clears the affected pages from its page cache - only those pages where the cache supports it, otherwise the whole cache. A check every 15 minutes catches anything missed. WordPress plugin 1.6.48, Magento extension 1.4.36, PrestaShop module 1.2.30 or later; see Page cache clearing for WordPress, Magento and PrestaShop.

Turn web personalization off for a website​

Settings -> Personalization -> Web personalization:

  • Allow web personalization on this website (on by default). Off: the web SDK applies no edit and holds nothing back, and the picker cannot open. Placements and in-app messages are not affected. A change reaches every visitor within about two minutes.
  • Editor domains - the sites the picker may open on, one per line (shop.example.com, or *.example.com for every subdomain). Empty: any site that uses this workspace's web SDK key.

The Compose step of a Web personalization campaign links here - Site settings, next to the page address - and says so there when web personalization is off for the website.

In a journey​

A journey can apply a web personalization campaign to each person from a point in the journey on. In the journey, add a message step and choose Web personalization (under Show when they visit), then:

  • Web personalization campaign - a live (launched) web personalization campaign of this workspace - so its edits have been through Launch Review and, if your workspace requires it, approval. A draft, scheduled, paused or awaiting-approval campaign cannot be used. The step uses the campaign's edits, not its audience or schedule; if the campaign is paused or archived later, the step stops applying it.
  • Variant - when the campaign has several, which one the step applies (default: the first). The step never draws the campaign's control group - split or hold out people in the journey itself.
  • Apply the edits for - 1 to 365 days (default 30). After that the person's pages are back to what your site draws.

When a person reaches the step, their website pages show the campaign's edits on every visit, on the pages the campaign's own page rules allow. The step refers to the campaign rather than copying it: if you change the campaign's edits, people already in the step see the new edits on their next page view. A person who also gets the campaign directly sees its edits once.

Each display and click is counted for the journey step (journey analytics), not for the campaign. The step needs placements switched on for your organization, and the journey's Launch Review blocks a step whose campaign is missing, not live, or has no ready edits.

How often it shows​

A web personalization campaign shows on every visit by default. In the Delivery step, turn on Limit how often one person sees it to set Max impressions, Time window and Min delay. Workspace touching rules never limit it, and its displays never count toward them, so the Touching Rules Override switches are not shown. The Delivery step also leaves out the trigger picker, Evaluation Mode and Watch mode, which apply only to in-app messages.

Before launch, the Summary step and Review & launch read Everyone who visits for an all-users audience, or for example 78 people match - they see it on their next visit, and the button is Go live - see Going live.

Experiments​

Add variants and a control group to a web personalization campaign (or to any placement or in-app campaign) as in any A/B test. The control group of a web personalization campaign sees the page without the edits; its chip reads Control - original page. A visitor counts as exposed when their variant's edit landed on the page; a control visitor counts when the element that would have changed was on their page. The campaign's experiment report shows the winner with the probability to be best, and the multi-armed bandit and the automatic winner work as for other campaigns.