How to set a merchandising eVar74 to product_sku only when events is scAdd in Data Mappings?

Bronze Contributor
Bronze Contributor

On prodView I'm able to set any merchandising eVar, I'll like to do the same for other events that aren't page views, i.e. when events is scAdd then set merchandising variable eVar74 to product_sku or something of that nature. I've tried different formats and it doesn' work.

 

I've tried cartAdd:scAdd,PRODUCTS_eVar74, I've tried just PRODUCTS_eVar74, etc.. what I get in the call is eVar74=cartAdd, I need cartAdd to be the actual sku value.

 

This is based on the events: UDO variable. The product_sku to merchanding evar works.

1 REPLY 1

How to set a merchandising eVar74 to product_sku only when events is scAdd in Data Mappings?

Community Manager
Community Manager

@rawsoft It sounds like want to do a conditional mapping, meaning, "IF event_name EQUALS cardAdd THEN map product_sku to merchandising eVar74".  This is best accomplished using a Set Data Values extension and a new variable specifically for merchandising eVar74.

Create a new variable called cart_sku and map it to PRODUCTS_eVar74. Then use a Set Data Values extension to set cart_sku to the value of product_sku only for your Add to Cart events.  It might look something like this:

 

conditional-mapping-extension.jpg

This is the best way to accomplish conditional mappings.

Remember to "Accept as Solution" when your question has been answered and to give kudos to helpful replies.
Public