Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

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

1982luca
Level 8
Level 8

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

3 Replies
PratheepArunRaj
Moderator
Moderator

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 

1982luca
Level 8
Level 8

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

LordOfTheRings
Level 6
Level 6

Hi @1982luca  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