Expand my Community achievements bar.

SOLVED

How to match mbox3rdPartyId with Customer Attribute (Customer Id) in Profile Script?

Avatar

Community Advisor

Hello guys,

Anyone can help to understand if it is possible to match mbox3rdPartyId(customer_id) with Customer Attribute (Customer Id)from Profile Script? Basically I want to split the traffic between two different criteria based on age. Criteria A (20-40) Criteria B (41-60). Age is sent via Customer Attribute.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Luca_Lattarini  you must have created profile script using CRS datasource and attribute. Please use that in audience library to create the audience:

Group A Audience:

"Visitor Profile > user.profilescriptname > Group A "

 

Group B Audience:

"Visitor Profile > user.profilescriptname > Group B "

 

No you can use these audiences in the activities to target.

 

Hope that helps.

 

You

View solution in original post

3 Replies

Avatar

Community Advisor and Adobe Champion

Dear 1982luca,

Customer attributes can be referenced in profile scripts using format crs.get('<Datasource Name>.<Attribute name>'). So, there is no need to match the mbox3rdPartyId(customer_id) rather just use the direct attribute and build conditions based on the same.

Thank You, Pratheep Arun Raj B | Xerago | Terryn Winter Analytics 

Avatar

Community Advisor

Hello @PratheepArunRaj ,

How can I identify Datasource Name? What if I want to split the traffic between two different Activities (Activity A < 40 and Activity B >40) by using the script below?

if (crs.get('Customer Attribute 10062021.age')<40) {
return 'GroupA';
} else if (crs.get('Customer Attribute 10062021.age')>40) {
return 'GroupB';
}

Fyi I set up target globax mbox for both activities.

Thanks

Avatar

Correct answer by
Community Advisor

Hi @Luca_Lattarini  you must have created profile script using CRS datasource and attribute. Please use that in audience library to create the audience:

Group A Audience:

"Visitor Profile > user.profilescriptname > Group A "

 

Group B Audience:

"Visitor Profile > user.profilescriptname > Group B "

 

No you can use these audiences in the activities to target.

 

Hope that helps.

 

You