Level 2
April 3, 2025
해결됨
Query related to Cart abandonment experience targeting
- April 3, 2025
- 1 답변
- 748 조회
Hi all
I was intended to create a cart abandonment experience target activity
--- where the cart items stored in local storage
--- I got the count of items in cart by above
--- in activity default experience for all visitors
--- target segment(user who has cart items more than 3) added custom code in modification tab
-- while assigning audience iam stuck what should i have to do so that i get the audience who qualified for the activity
here is the custom code {
window.targetPageParams = function() {
let cart = JSON.parse(localStorage.getItem("cart") || "[]");
let cartItemCount = cart.length;
return {
"cartItemCount": cartItemCount
};
};