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:

If there are 6 or more items in stock, the Nudge says:low stock nudge
If there are exactly 5 items in stock, the Nudge says:low stock fomo

If there are fewer than 5 items in stock, for example 2, the Nudge says:low stock buy sooner

When the Low Stock Nudge does not show

  • If there are no items left in stock, the Low Stock Nudge does not show.
  • The Low Stock Nudge relies on stock management. Therefore the Nudge only shows on product pages for products that have stock management.
  • Because the Low Stock Nudge only shows on pages where stock information is available, it only shows on product pages and not on, for example, your home page.

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

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

ecommerce

  • Scroll down and select the Low Stock Nudge

low stock nudge

A configuration box now opens, in which you are asked to select a source for your stock room data.

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.

fomo stock data

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 WordPress 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.
  • Click ‘Configure WooCommerce’woocommerce low stock nudges
  • You can now see your Site and API Keys. You will need to copy and paste these keys later.woocommerce nudges fomo
  • First, open a new tab, and go to your WordPress dashboard.wordpress nudges
  • Visit Plugins > Add new and search for Nudgify.
  • Click Install Now and activate the plugin after installation.
  • Open the Plugin via the left side bar.wordpress nudges
  • Go back to the Nudgify app for your Site and API Keys.
  • The Site Key in for installing your Pixel. If you had not done that yet, you may now copy and paste your Site Key into the Site Key field in the WordPress Plugin. Copy your API Key.
  • The API Key is to connect your data, including your stock room data, to Nudgify. Copy and paste the API Key into the API Key field in the WordPress Plugin.connect woocommerce low stock
  • Click save. Your WooCommerce stock data is now connected!
  • Go back to Nudgify, scroll down through the WooCommerce instructions, and click ‘I’ve done it’.connect woocommerce fomo
  • The Nudge configuration screen now shows that WooCommerce is connected, and the continue button is now enabled. Click “Continue”to add the Low Stock Nudge.low stock nudge fomo

That’s it! Now you’ve added Low Stock Nudges to create FOMO and encourage your visitors to buy sooner! Remember: they will only show on your product pages.

Option B: Connect your stock data with JavaScript

If you are a developer or otherwise familiar with JavaScript, you can connect the Nudgify API yourself with code.

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! Remember: they will only show on your product pages.

Updated on September 14, 2020

Was this article helpful?

Related Articles