내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

How to show personalized content if CART total is greater than $100

Avatar

Level 2

Hi,

I was trying to so personalized content if the user cart total price is greater than $100. How do I get cart total price in my audience using profile script so that I can personalize content. 

 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

So yes you can write into the userprofile values like 

 

adobe.target.trackEvent({ mbox: 'carttotal_track', params: { 'profile.carttotal_morethan100': 'true' } });

How Do I Use the adobe.target.trackEvent() Function?

 

Which I don't think works directly if you just put in the value of the cart - because that is evaluated as a string and no greater than works there (as far as I know). But you can also write values like 95 or 102 and use a UserProfileScript to read it and convert it to a number - compare it and set the new value true or false as another variable.

원본 게시물의 솔루션 보기

2 답변 개

Avatar

Level 1

I feel that you can make your cart total price available in mbox param(eg: carttotal ="totalpricevaluehere" so that you can create an audience if param value greater than X then show the personalized content.

Avatar

정확한 답변 작성자:
Community Advisor

So yes you can write into the userprofile values like 

 

adobe.target.trackEvent({ mbox: 'carttotal_track', params: { 'profile.carttotal_morethan100': 'true' } });

How Do I Use the adobe.target.trackEvent() Function?

 

Which I don't think works directly if you just put in the value of the cart - because that is evaluated as a string and no greater than works there (as far as I know). But you can also write values like 95 or 102 and use a UserProfileScript to read it and convert it to a number - compare it and set the new value true or false as another variable.