Dynamic Product Ads: Remove Product from Cart Implementation

Time for Completion: 5 minutes

 _____________________________________________________________________________

Instructions

Place both the LiveConnect Tag and the Remove Product from Cart script in the header section of your webpage for the specific section.

Use the LiveConnect Tag provided by your account team, as it will contain a unique App_ID variable (e.g. a-0045). The LiveConnect Tag below (above the remove from cart script) is an example.

The below Remove Product from Cart script includes placeholders (denoted in green) that represent where your specific website dynamic values should be placed. Please use the below Remove Product from Cart script for implementation. In the case where a user has removed multiple products from the cart, multiple item arrays can be captured.

<script type="text/javascript" src="//b-code.liadm.com/a-xxxx.min.js" async="true"></script>

<script>
   window.liQ = window.liQ || [];
   window.liQ.push
      { event: "removeFromCart",
          email: "[USER_EMAIL]",
          items: [
             {id: "[PRODUCT_ID]",
             price: [ITEM_PRICE],
             quantity: [QUANTITY],
             currency: "[CURRENCY_TYPE]"}
                    ]
      };
</script>

Parameter: Value

Requested Value Output

Value Format

Status

Notes

event: "removeFromCart"

"removeFromCart"

"removeFromCart"

Required

Pre-hardcoded, no change needed

email:

"[USER_EMAIL]

Email address of logged in or known site visitor

String

Highly Recommended

Can be passed as a MD5 hash instead (emailHash: "[Email_Hash]")

id:

"[PRODUCT_ID]"

Product ID

String

Required

Product ID should match Product IDs delivered in the product feed

price: [ITEM_PRICE]

Product price

Number with Decimals

Optional

 

quantity: [QUANTITY]

Quantity of product

Integer

Optional

 

currency:

"[CURRENCY_TYPE]"

Currency Type

Transaction currency, 3 letter string

Optional

 

 Example Output:

<script>
   window.liQ = window.liQ || [];
   window.liQ.push
      { event: "removeFromCart",
          email: "captainamerica@liveintent.com",
          items: [
             {id: "3983rjk2jr432r",
             price: 12.99,
             quantity: 2,
             currency: "USD"}
                    ]
      };
</script>
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk