Introduction to abandoned browse and search

Learn about abandoned browse and search, as well as the schema and script that powers them.


The product a contact last browsed is identified in Engagement Cloud because we extended our web behavior tracking script. Because of the extended script and its support of custom values, you can target your contacts with email campaigns that highlight what they last browsed.


Please talk to your account manager or customer service manager to enable the abandoned browse and search features.

Understanding the variables

When you create a segment that contains a WebInsight data block, variables appear that are related to last browsed. The variables are:

Variable * Type Example
product_name (✔️) Text "Nitro Fate Women's Hybrid Camber Snowboard 147cm 2018"
product_sku (✔️) Text "NITRO-203492"
product_price (✔️) Numeric "290.99"
product_url (✔️) Text
product_image_path (✔️) Text
product_specialPrice Numeric "259.99"
product_status Text "In stock"
product_categories Text "New Styles, Sale, Snowboards"
product_description Text "..."
product_currency Text "GBP"
product_brand Text "Nitro"

✔️ - The variable is required because it's used to power the default content in the Last browsed product block.

Setting up the script

The script below extends the web behavior tracking code by including the last browsed product variables described above. Here’s an example:

/* -------------------------------------------------------

The code below requires a developer to install and setup.

Please do not simply copy/paste this onto your website.
----------------------------------------------------------- */

// Initiate Web Behaviour Tracking (this section MUST come prior any other dmPt calls)
})(window, document, '//', 'script', 'dmPt');

// Replace DM-000000000-00 with your web behaviour profile's Unique ID
// Resplace with the domain of your store
window.dmPt('create', 'DM-000000000-00', '');

// Setup the last browsed product
var viewed_product = {
product_name: "Name of Product",
product_url: "",
product_image_path: "",
product_description: "The description of the product",
product_sku: "ABC123",
product_price: "99.99",
product_status: "In stock",
product_currency: "GBP",
product_specialPrice: "89.99",
product_categories: "Category1, Category 2, Category 3",
product_brand: "Brandname"

// Initiate the tracking script, pass the product object
window.dmPt('track', viewed_product);

// Replace with the email address of the identified contact
window.dmPt("identify", "");



The script requires the following edits so it works properly:
  • The web behavior tracking profile ID and the domain to be tracked must be set (see blue code).
  • Variables in the viewed_product object (see red code) to be populated by the ecommerce store.
  • The identification event (see green code) should be populated by the ecommerce platform with the email address of the identified contact.

This is a simplified script version. The script’s configuration might also include abandoned cart, guest abandoned cart, etc.

Using abandoned search

With our abandoned search feature, you can gain insight into what your contacts searched for in the past. It’s similar to abandoned browse because it’s also based on web behavior tracking data. To see this:

  1. Go to Contact > Segments.
  2. Select a segment.
  3. Select a contact’s email address.
  4. Select WebInsight from the drop-down menu.

You can see page views (page_viewed X), and under the page view, there are custom_page_values > searched_term variables; this is where you can see what your contacts searched for.


Using abandoned browse and search for Magento

For abandoned browse and abandoned search to work properly, we’ve already integrated the extension into Magento. To find this, go to Stores > Configuration > Engagement Cloud. Under the Tracking area, you can find the Web Behavior Tracking Profile Id. This is what we use to enable the abandoned browse and search functionalities.

See also

Did you find this article helpful?

Can we help?

Thanks for using Engagement Cloud. If you need more help or support, then contact our support team.