Skip to main content

Display Product Recommendations on Your Pages

Written by Harneet Kaur

Plans: Premium, Enterprise
​Platforms: All platforms, Commerce API
​Applies to: Tracking pages (order lookup page and tracking result pages)

Overview

Product recommendations show shoppers relevant products on your tracking pages, based on their order and browsing behavior. Learn how to display product recommendations using AfterShip Tracking. This guide walks you through choosing a recommendation engine, configuring the AfterShip recommendation engine or Nosto, and measuring performance. Once live, personalized recommendations re-engage shoppers after purchase, encourage repeat visits, and drive additional revenue directly from the tracking experience.

Product recommendations on a tracking page

Supported Recommendation Engines

AfterShip supports 2 recommendation engines for tracking pages. Enable and set up the one that suits you best:

  • AfterShip recommendation engine

  • Nosto recommendation engine

Tracking templates include the Product recommendations section by default. Nosto is a separate section that you add from Add section. You can have 1 of each per page. Both are available on the Order lookup page and on the tracking result pages.

Configure Product Recommendations

  1. Go to Branded pages and open the tracking page in the editor.

  2. In the Sections panel, select Product recommendations. If it isn't there, click Add section and add it.

  3. Select a recommendation engine.

  4. Click Save.

Product recommendations section settings

1. AfterShip Recommendation Engine

The AfterShip recommendation engine uses AI-driven algorithms to suggest products based on shopper behavior, order data, and product attributes.

Select the Product Source

Select the product source for your recommendations. Product recommendations support only stores connected through the Commerce API or through eCommerce platform integrations, which require an active store connection.

The Product source dropdown in Product recommendations

For Commerce API users

If you use the Commerce API to import your order data, the as-store-id header in your Create a store, Create a product, and Create an order requests determines the product source. To make sure all recommendation types work correctly:

  • Verify that your stores, products, and orders are imported successfully

  • Select the appropriate store as the product source for the tracking page where you want to display recommendations

For eCommerce platform users

If you use an eCommerce platform integration (such as Shopify or another supported platform), the product sources you see are the stores you've already connected. Select the store to use for product recommendations.

Select the Recommendation Type

Next LLM, Best sellers, and Frequently bought together use AfterShip AI algorithms. Choose whether to recommend the next best product, your top-selling products, or products shoppers often buy together.

  • Next LLM: predicts the next best product a shopper is most likely to buy. Next LLM learns in real time from product tagging data and aggregated shopping behavior across all AfterShip-connected stores.

  • Best sellers: identifies your top-selling products from the past 30 days of purchase data and ranks them by sales amount.

  • Frequently bought together (AI powered): recommends complementary products that shoppers commonly buy with the items in the current order. AfterShip analyzes purchase patterns from your store's past 30-day order history and displays the most relevant matches.

  • Custom strategy: lets you build personalized recommendations by selecting from more than 10 pre-made rules with custom if–then logic.

Editing a custom recommendation strategy

Note: If AfterShip can't identify relevant products, AfterShip automatically falls back to Best sellers. This typically happens when a product is new and lacks purchase history, or when the order contains only 1 item.

Customize the Recommendation Content

Select Product recommendations in the left sidebar to open its settings panel. The panel has two tabs, Settings and Style.

Settings tab

Product source

  1. Under Product source, select the store that supplies your products.

  2. Drag the Number of products slider to set how many products to show. You can choose from 1 to 100, or move the slider to the end for Unlimited.

If you don't see your store, click connect your store or provide product info with the AfterShip Commerce API.

Note: The section may show fewer products than you set. Inventory levels and customer behavior can reduce the number shown.

Recommendation strategy

Select how AfterShip picks the products to recommend:

  • Next LLM: AI-powered recommendations. Click Learn more for details.

  • Best sellers

  • Frequently bought together

  • Same product upsell

  • Custom strategy: Choose a saved strategy from Select a strategy. To change that strategy, click Edit.

AfterShip Personalization powers these recommendations.

Content

  1. In Title, enter the section heading (up to 48 characters), for example "Recommended for you".

  2. Under Product info, select the details to show on each product card. Drag the handles to change their order.

    • Product name

    • Price, which contains:

      • Product price

      • Compare-at price

      • Discount value: Enter the discount label. Use Insert merge tag to add a dynamic value, for example Save *|DISCOUNT|*.

    • Product description: Shows the product description from your Shopify store.

    • Product review: Connect Yotpo before you turn this on.

  3. Select Sale badge to show a "Sale" label on discounted products.

Button

  1. Select Show action button to add a button to each product card.

  2. Under Button action, choose what happens when a shopper clicks the button:

    • Go to checkout (Shopify only)

    • Add product to cart (Shopify only)

    • Open product page

  3. In Button text, enter the button label (up to 50 characters), for example "Buy now".

Style tab

To restore a group's default settings, click the Reset style icon next to its heading.

Layout

Set desktop and mobile layouts separately:

  • Desktop: Choose Slider, Grid, or Feed. With Slider, set Products per page (3, 4, or 5) and Pages.

  • Mobile: Choose Slider, Grid, or Feed. With Grid, set Rows and Columns.

Select Make expandable to show 2 rows by default with a Show all button that expands the section.

Spacing

Drag the Section padding slider to adjust the space around the section, in pixels.

Background

Select the section background Color.

Title

Set the title's Font, Font size, Color, and Alignment (left, center, or right).

Product image container

  • Background: Select the container Color.

  • Border: Select the border Color and drag the Width slider.

  • Shape: Set the Corner radius and Aspect ratio, for example 1:1.

Product details

  1. Under Text position, choose left, center, or right alignment for the product text.

  2. Set the Font, Font size, and Color for each text element:

    • Product name

    • Product description

    • Product price

    • Compare-at price

    • Discount value

Advanced style options

  • Highlight product price: Makes the price stand out on the product card.

  • Customize sale badge color: Select a custom Color for the sale badge.

  • Customize discounted price: Changes how the discounted price looks.

  • Customize button: Click Edit to change the button's look.

  • Customize selector: Click Edit to change how the variant selector dropdown looks.

Custom CSS

Enter CSS in the code editor to override the style settings above.

Warning: Custom CSS overrides all other style settings. Use it only for fonts, colors, backgrounds, and section layouts, because other changes can affect how your tracking page works.

Data Variables

Supported product data variables depend on your data source:

Variable

Commerce API

Platform

Tracking API / Tracking CSV / Manually added / Order CSV

Product tag

products.tags

Product/item tags

Not supported

Product category

products.categories

Product/item categories

Not supported

Product collection

Not supported

Product collection

Not supported

2. Nosto Recommendation Engine

Before you use Nosto on the tracking page, set up a recommendation in Nosto.

Adding a Nosto section from the Add section menu

Important: Add your tracking page URL to the Nosto whitelist to enable product recommendations. If you skip this step, Nosto doesn't show product recommendations on your tracking page.

Step 1: Locate Your Nosto Account ID

A Nosto account ID is the unique identifier that connects your website to Nosto. Find your account ID in the top-right corner of the Nosto Admin dashboard, under the shop name and in the URL of the admin.

Nosto account ID

Step 2: Enable Recommendation Visibility

The Recommendation Visibility setting in Nosto controls the global visibility of recommendations. Turn it on to activate any recommendation.

  1. Go to the Nosto admin.

  2. From the top menu, click Product Experience Cloud > Recommendations > Settings.

  3. Turn on Recommendation Visibility.

  4. Save your changes.

Recommendation Visibility

Step 3: Locate the Nosto Recommendation ID

  1. Go to the Nosto admin.

  2. From the top menu, click Product Experience Cloud > Recommendations > Create New Recommendation and enter a title.

  3. For the page type, select Other page type.

  4. Under Placements and segments, select New static placement and the Custom page type.

    Create a new recommendation

  5. Configure the Placement title and ID of static element as you want.

  6. On the next page, select Order Related as the recommendation type.

  7. Configure the remaining recommendation settings based on your requirements, then click Save. For more information on how to set up a recommendation on Nosto, follow the instructions here.

  8. On the Recommendations Overview dashboard, find the recommendation you want to use on the tracking page and click its placement.

  9. Copy the placement's Injected Nosto element. This is the recommendation ID you use on the tracking page.

    Injected Nosto element

Step 4: Enable Nosto Recommendations in AfterShip

  1. Go to Branded pages and open the tracking page in the editor.

  2. Click Add section and add Nosto, or select the Nosto section if it's already on the page.

  3. Paste the Account ID and Recommendation ID.

  4. Click Connect.

Nosto section settings

Troubleshoot Nosto Recommendations

If Nosto recommendations don't appear on your tracking page, a configuration setting is usually the cause. Check the following:

Problem

Cause

Solution

Nosto recommendations don't appear on your tracking page

Your tracking page uses an AfterShip domain that Nosto doesn't recognize

Add the AfterShip domain under Other hosts used by the site in your Nosto account settings

Recommendation Visibility is off

Turn on Recommendation Visibility in your Nosto dashboard

The recommendation or placement is disabled

Enable both the recommendation status and the placement status

Alt Text on Product Images

AfterShip product recommendations and shipment items on the tracking page have no option to add alt text manually. AfterShip automatically fills the alt text for these product images with the product name it gets from your connected store or API integration.

Alt text isn't supported for Nosto product recommendations, the favicon image, or Instagram feed-generated images.

For images you upload yourself (logos, marketing assets, backgrounds), add alt text in the editor:

  1. Click Edit alt text on the corner of the image.

  2. Enter the alt text in the pop-up or take help of the in-built AI.

  3. Add translations for the Alt text in different language to cater people from different regions.

  4. Click Save.

Alt text helps screen readers describe the image and helps search engines crawl and rank your pages.

Availability

Supported Recommendation Types by Platform

Engine

Recommendation type

Shopify

Other eCommerce platforms

Commerce API

Order CSV

Tracking API

Tracking CSV

AfterShip

Next LLM

Yes

Yes

Yes

Yes

Yes

Yes

Best sellers

Yes

Yes

Yes

Yes

Yes

Yes

Frequently bought together (AI)

Yes

Yes

Yes

Yes

Yes

Yes

Recently viewed (AI)

Yes

No

No

No

No

No

Custom strategy (pre-made rules)

Yes

Yes

Yes

Yes

Yes

Yes

Nosto

Yes

Yes

Yes

Yes

Yes

Yes

Supported Product Conditions by Platform

Product condition

Supported platforms

Product tags

Shopify, WooCommerce, BigCommerce, Cafe24, PrestaShop, SFCC, Shoplazza, Shopline, Walmart-US

Product types

Shopify, WooCommerce, BigCommerce, Magento 2, Amazon, Cafe24, Commercetools, Marketplacer, PrestaShop, SFCC, Walmart-US, Wix

Product created date

Shopify, WooCommerce, BigCommerce, Magento 2, Cafe24, Commercetools, Marketplacer, PrestaShop, SFCC, Shoplazza, Shopline, Walmart-US, Wix

Product vendors

Shopify, Cafe24, Shoplazza, Shopline

Product collection

Shopify

Others

Shopify

Measure Performance

The Page clicks figure on the Branded pages list counts clicks on product recommendations, social media assets, marketing assets, and images over the last 30 days. The figure refreshes every 6 hours. Revenue on the same card shows the revenue the page generated.

Views, Page clicks, and Revenue metrics on a Tracking page card

Key Takeaways

  • Choose the AfterShip recommendation engine or Nosto; the AfterShip engine needs an active Commerce API or platform connection

  • Next LLM, Best sellers, and Frequently bought together fall back to Best sellers when data is limited

  • Custom strategy lets you build recommendations from pre-made rules with if–then logic

  • Data availability and recommendation behavior vary by plan, connected platform, and data source

  • Nosto recommendations display only after you complete the setup and whitelist your tracking page domain

Did this answer your question?