Identifying Your Cart Link

Learn more about how to identify how you're passing the cart link information to Listrak.

Support avatar
Written by Support
Updated over a week ago

If a shopper has abandoned a cart, closes the webpage, and receives an Abandonment email later that day, the contents of the shopping cart can appear across other devices and browsers the shopper might use. Learn how to identify your cart link across your platform, which is the first step to re-creating your cart.

Javascript

When the shopper lands on the checkout page, this is the information is passed to Listrak via the JavaScript. How is this information mapped to each of your customers? Using JavaScript, the cart link is the unique identifier to the cart items, which allows the variables to be passed.

⚠️ Be sure to exclude the "https://" prefix from your URL in the code that is being passed to Listrak. 

You can check to see if you're currently passing the cart link by doing the following:

  1. Open your web browser of choice.

  2. Add an item to your cart.

  3. Navigate to the checkout page.

  4. Open the developer tools on your browser.

    💡 Use the F12 shortcut to easily open the tools.

  5. Select the Network tab.

  6. Search for listrak.

  7. Select the update call cart re-recreate JavaScript call on the left-hand side. This will locate the cart link, which appears as cl:.

  8. If you do not see a cl proceed to the steps below

If you are not currently passing the cart link to Listrak, you can do so by following these steps:

  1. Locate the Shopping Cart Abandonment snippet of code on your website.

  2. Navigate to the SCA Sumbit call.Insert the code above the selected example.

  3. Enter the following code: _ltk.SCA.CartLink "www.yourwebsitehere.com/cart=cartlinkinformationhere";  These fields will be replaced with each customers cart information. 

Magento

Once the SCA solution is activated and working, check to see if your cart information is being passed to Listrak.  In Magento, when this cart information is passed to Listrak, it's passed as an "sm1" field– which is a meta field that links to the basket ID. Check for your cart information by following the same steps as above.

Did this answer your question?