How to match mbox3rdPartyId with Customer Attribute (Customer Id) in Profile Script? | Community
Skip to main content
Luca_Lattarini
New Participant
September 8, 2021
Solved

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

  • September 8, 2021
  • 1 reply
  • 1651 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ambikaTewari_ATCI

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

1 reply

PratheepArunRaj
New Participant
September 10, 2021

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 

Luca_Lattarini
New Participant
September 12, 2021

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

ambikaTewari_ATCI
ambikaTewari_ATCIAccepted solution
New Participant
September 13, 2021

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