1. Home
  2. Nudge Types
  3. Low Stock Nudge

Low Stock Nudge

A Low Stock Nudge shows how many items of a product are left in stock. By showing that a product is scarce, you can create FOMO with Low Stock Nudges, encouraging online shoppers to buy sooner rather than later.

low stock buy sooner

How does the Low Stock Nudge work?

Low Stock Nudges use live data from your stock room and show on your Product pages. Depending on the number of items left in stock, online shoppers see one of the three following messages:

More than 5 in stock

low stock nudge

  • If there are 6 or more items in stock

Only 5 left in stock

low stock fomo

  • If there are exactly 5 items in stock

Hurry up! Only 3 left in stock!

low stock buy sooner

  • If there are fewer than 5 items in stock, for example 2

If there are no items left in stock, the Low Stock Nudge does not show.

The Low Stock Nudge relies on stock management. Therefore it works only for products that have stock management. The Nudge also only shows on pages where stock information like this is available.

Follow the steps below to add the Low Stock Nudge to your store.

Step 1: Add a Low Stock Nudge to your Product pages

  • In the Nudge Library, select eCommerce & Retail, and choose the Low Stock Nudge
  • Select whether you would like to hide the Nudge if more than 5 items are left
  • As the Nudge refers to the product an online shopper is currently viewing, we recommend you add this Nudge to your product pages only.

Step 2: Pass your live stock room data to the Nudge via our API

The Low Stock Nudge uses live information of your stock room and also shows the product image. To enable the Low Stock Nudge, you need to pass the stock information and product image to the Nudge. You can do this with our API.

If you have a WooCommerce website, you can add the API key with our WooCommerce Plugin. For other websites, you can connect your stock data to the API manually.

Option A: Connect your stock data with the WooCommerce Plugin

  • When configuring the Low Stock Nudge, click “WooCommerce” as the data source. You can now see your API Key and Site Key. Copy your API Key.
  • Go to your WordPress dashboard and install the Nudgify WordPress Plugin: visit Plugins > Add new and search for Nudgify. Click Install Now and activate the plugin after installation. If you already installed the plugin to add your Nudgify Pixel, open the plugin via the left side bar.
  • Paste your API Key in the API Key field and click save.

Your stock data is now connected!

  • Go back to Nudgify and click “Continue” to add the Low Stock Nudge.

That’s it! Now you’ve added Low Stock Nudges to create FOMO and encourage your visitors to buy sooner!

Option B: Connect your stock data with JavaScript

On the first line of the Nudgify Pixel, we have reserved a spot for you to specify the values of your product JavaScript variables.

As you can see below, the first line of the Pixel contains the product variables image (= the product image) and stock (= the product’s stock level). The values of these variables are set to “null” by default, but you can change them to pass the product data from your website to the Low Stock Nudge.

window.nudgify = {product: {image: productURL, stock: stockNumber}};

 

  • Replace “null” for the image variable with the value you use on your website for your product images, e.g. “productURL” or however else you have named it.
  • Replace “null” for the stock variable with the value you use on your website for the number of items left in stock, e.g. “stockNumber” or however else you have named it.
  • Go back to Nudgify and click “Continue” to add the Low Stock Nudge.

That’s it! Now you’ve added Low Stock Nudges to create FOMO and encourage your visitors to buy sooner!

Updated on July 24, 2020

Was this article helpful?

Related Articles