Integration Guide: Alerts Suite

Learn more about the process of integrating Alerts Suite with Listrak.

Support avatar
Written by Support
Updated over a week ago

Listrak’s Alerts Suite is a marketing strategy designed to recoup lost revenue. Included with the Alerts Suite are Back-in-Stock, Price Drop, and Low Inventory Alerts. Customers are automatically notified when their desired products are back-in-stock or when the price of an item they’ve browsed drops.

⚠️ Please be sure to complete the JavaScript Integration or finish integrating with Listrak using your platform-specific guide (Magento, Shopify) before continuing with the integration. 

Prerequisite: Listrak Data File Review

The Listrak Alert Suite solution relies on the product data being sent as part of your integration. Listrak verification ensures that product data Listrak is currently receiving can power the solution.

Back-in-Stock

Listrak verifies that all product data files are being sent and include the necessary data for the following: In Stock, QOH (quantity on hand), Is Purchasable, Active, and Discontinued. If these are not currently being passed to Listrak, you may be asked to include them in your products file. To learn more about acceptable fields, click here.

Price Drop Alerts

For optimal data setup, Listrak strongly suggests that you include Price, SalePrice, and either an Onsale Flag, or Onsale Beginning and Ending dates. Passing both an Onsale Flag and Sale Beginning and Ending dates can cause system conflicts. 

Back-in-Stock Sign Up Form Integration

Call this code when a customer signs up on your form to be alerted when a product is back in stock.

  1. Replace emailAddress and productSKU below with the entered email address and the SKU that the customer has signed up for.

  2. If you have an SMS program that is provisioned for alerts, you can also replace the phoneNnumber as shown below.

  3. Replace ALERT CODE with the code provided by your Project Manager or Account Manager.

Below is an example form that you can use and modify to set up your own Back-in-Stock form:

<div>
<h1>Product Alert Signup</h1>
Product SKU:
<input id="txtProductSKU" type="text" name="txtProductSKU">
<br />
My Email Address
<input id="txtEmailAddress" type="text" name="txtEmailAddress" >
<br>
<br />
My Phone Number
<input id="txtPhoneNumber" type="text" name="txtPhoneNumber" >
<br>
<input id="hdnAlertCode" type="hidden" value="BIS" name="hdnAlertCode">
<button onclick="SubmitAlert(); return false;" name="SubmitAlert">Notify Me</button>
<script type="text/javascript">
function SubmitAlert () {
var productSKU = document.getElementById ('txtProductSKU') .value;
var emailAddress = document.getElementById ('txtEmailAddress') .value;
var phoneNumber = document.getElementById ('txtPhoneNumber') .value;
var alertCode = document.getElementById ('hdnAlertCode') .value;
_ltk.Alerts.AddAlertWithIdentifiers({Identifiers:{Email:emailAddress, PhoneNumber:phoneNumber}, Sku:productSKU, AlertCode:alertCode});
_ltk.Alerts.Submit();
alert('Thank you! We will notify you when this product becomes available.');
}
</script>
</div>

After you've completed the Back-in-Stock integration, follow the steps outlined here to configure your alert. 

Price Drop Alert Setup

Price Drop Alerts are triggered by browse activity, specifically product browse. Because of this, it is crucial that you the browse section of the JavaScript integration.

After you've added activity tracking to your site, follow the steps outlined here to configure your alert.

Low Inventory Alert Setup

Low Inventory Alerts are triggered by browse activity, specifically product browse. Because of this, it is crucial that you the browse section of the JavaScript integration.

After you've added activity tracking to your site, follow the steps outlined here to configure your alert.

Carted Item Alerts Setup

Low Inventory Alerts are triggered by browse activity, specifically product browse. Because of this, it is crucial that you the browse section of the JavaScript integration.

Additionally, please add the below tracking snippet of JavaScript to your site. This code needs to be added to the Add to Cart button.

_ltk.Activity.AddProductAddedToCart("SKU");_ltk.Activity.Submit();

After you've added the applicable code to your site, follow the steps outlined here to configure your alert.

LAUNCHING YOUR ALERTS SUITE

After you've added the applicable code and completed your integration, please coordinate with your Project Manager to launch this solution.

Did this answer your question?