Skip to content

How to show a website offer with Web Placement

A journey can show an offer right on your website, for example a free-shipping banner in the cart of a user who left items there. You can follow up with a push if the user doesn’t react, and count the orders the offer brings.

This guide builds such a journey from an abandoned cart to an order.

Before you build

Anchor link to

Check that your website, events, and content are ready.

  • Website. Your developers have prepared the website: Web SDK 3.108.1 or later, setUserId for signed-in visitors, and the element the offer goes into, for example <div id="pw-cart-slot"></div> in the cart.
  • Events. Your site or backend sends two events:
    • PW_AbandonedCart: a user leaves items in the cart.
    • PW_OrderCreated: a user places an order.
  • Content. You have web content with the offer and a button or link, for example Free shipping nudge with cart items. Without a button or link, users can’t click the offer, and no user reaches the Clicked branch. Content with a form, for example an email field, isn’t available in Web Placement.

Start the journey when a cart is abandoned

Anchor link to

The journey starts for each user whose cart event your application sends.

  1. Go to Campaigns > Customer Journey Builder.

  2. Click Create campaign.

  3. Click Build a journey from scratch.

  4. Double-click the Trigger-based Entry element, which is already on the canvas.

  5. In Event, select PW_AbandonedCart.

    Trigger-based Entry settings with Event set to PW_AbandonedCart and the Save button
  6. Click Save.

For details, see How to send a triggered campaign.

Show the offer in the cart

Anchor link to

The Web Placement element shows the offer on your website to each user who enters the journey.

  1. Connect a Web Placement element to the entry.

  2. Double-click it and set:

    • Web pop-up content: your offer, for example Free shipping nudge with cart items.

    • Inline instead of Popup, so the offer sits inside the cart page instead of over it.

    • CSS selector of the element: the element in the cart, for example #pw-cart-slot.

      Web Placement settings: Free shipping nudge with cart items, Inline selected, #pw-cart-slot as the CSS selector, 100% width
    • Lifetime: how long the offer waits for the user. Enter 1 and choose days in the second field, which is set to hours by default. If the user doesn’t open your site within this time, the offer isn’t shown.

    • Show: On the next page view, so the offer appears when the user next opens a page with the cart element. It appears on every such page until the user closes it, places an order, or the lifetime ends.

      Show section with On the next page view selected and On event as the other option
    • Hide after an event: turn it on and select PW_OrderCreated, so the offer disappears once the user places an order.

      Hide section with Hide after an event turned on and PW_OrderCreated selected as the event
    • Leave Width, Priority, and The user can close it as they are. The offer has a close button, and an offer the user closed doesn’t come back.

  3. In Preview, select a test device of the application: a browser with your site open.

  4. Click Show on test device.

    Preview section of Web Placement with a test device selected and the Show on test device button
  5. On that device, open or reload the cart page. The offer appears in the cart element.

  6. Click the button in the offer.

    The click sends PW_WebPlacementClick to your application. An event appears in the event list only after the application has received it, so you need this click to select the event in the next section.

  7. Click Save.

For all settings, see Web Placement.

Branch by what the user did

Anchor link to

Add Wait for Trigger to split users by what they did with the offer and send the reminder only to those who did nothing. Each user goes down one branch:

  • Clicked: the user clicked the offer within a day.
  • Ordered: the user placed an order within a day without clicking.
  • Not triggered: neither happened within a day. This includes users who closed the offer, because closing it isn’t a click.

Create both the Clicked and Ordered branches, so that users who already ordered don’t get the reminder. Hide after an event only removes the offer from the site and doesn’t move the user along the journey.

  1. Connect a Wait for Trigger element to Web Placement.

  2. In Waiting period, enter 1 day.

    Waiting period of Wait for Trigger set to 1 day, with the Fixed waiting period switch turned off
  3. In Branch 1, enter Clicked as the branch name and select the PW_WebPlacementClick event.

  4. Click Add branch.

  5. In Branch 2, enter Ordered as the branch name and select the PW_OrderCreated event.

    Wait for Trigger branches: Clicked on PW_WebPlacementClick, Ordered on PW_OrderCreated, and Not triggered
  6. Click Save.

  7. Connect a Push element to the Not triggered branch.

  8. Select or create the reminder content, for example “Free shipping on your cart ends soon”. See Select or create push content.

    Push element settings with a free-shipping reminder selected as the content
  9. Turn on Send to all user devices (from UserID), so the reminder reaches the user’s browser when the cart event comes from Shopify, WooCommerce, or your backend. See Send to all user devices.

Users with no push-enabled device don’t receive the reminder.

A branch with no element after it ends the journey for the user, so users on Clicked and Ordered leave the journey there, and users on Not triggered leave after the push.

Journey canvas: Cart abandoned entry, Web Placement, Wait for Trigger with three branches, and a push on Not triggered, with no Exit elements

Count orders as conversions

Anchor link to

A conversion goal counts the orders the offer brings, including orders placed after the user leaves the journey.

  1. Click Settings, then Conversion goals.

  2. In Conversion period, enter 3 days. Orders placed within this period after the user exits the journey count too.

    Conversion period of the journey set to 3 days
  3. In Event, select PW_OrderCreated.

    Target events of the conversion goal with PW_OrderCreated selected in Event
  4. Click Apply.

To count clicks on the offer instead of orders, select PW_WebPlacementClick.

Launch and check the results

Anchor link to

Launch the journey, then check how the offer performs.

  1. Click Launch campaign.

  2. In the journey statistics, check the counters of the Web Placement element:

    • Shown: how many times the offer was shown.
    • Interactions: how many times the offer was clicked.
    Web Placement element on the canvas of a running journey with the Shown and Interactions counters

    See Placement statistics for details.