Expand my Community achievements bar.

SOLVED

How to match customer id from mbox with customer id uploaded via Customer Attribute

Avatar

Community Advisor

Hello guys,

 

How can I match customer id from mbox with customer id uploaded via Customer Attribute? Basically my customer attribute provides me the client to be targeted for my recommendation and I want to see if customer id sent via mbox is bewteen my Customer Attribute List.

If it is not possible, any suggestion?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @Luca_Lattarini,

If you have a data source setup for Customer Attributes you can ensure that customer IDs are properly synced to Target in one of 2 ways.

  1. Using the customer ID sync with the Experience Cloud ID service (aka ECID). With a proper ECID and Target implementation this will ensure Target is linked to the proper customer ID used in Customer Attributes. Find details in this help doc for ECID and also setting customer ID with ECID.
  2. Send the customer ID used in the Customer Attributes upload directly to Target as an mbox third party ID. Here's a sample code of how to do that if the customers ID is 2000578:

 

<script type="text/javascript">
            function targetPageParams() {
               return 'mbox3rdPartyId=2000578';
            }
</script>​

 

Hope that helps

View solution in original post

5 Replies

Avatar

Correct answer by
Employee

Hi @Luca_Lattarini,

If you have a data source setup for Customer Attributes you can ensure that customer IDs are properly synced to Target in one of 2 ways.

  1. Using the customer ID sync with the Experience Cloud ID service (aka ECID). With a proper ECID and Target implementation this will ensure Target is linked to the proper customer ID used in Customer Attributes. Find details in this help doc for ECID and also setting customer ID with ECID.
  2. Send the customer ID used in the Customer Attributes upload directly to Target as an mbox third party ID. Here's a sample code of how to do that if the customers ID is 2000578:

 

<script type="text/javascript">
            function targetPageParams() {
               return 'mbox3rdPartyId=2000578';
            }
</script>​

 

Hope that helps

Avatar

Community Advisor
Thanks for your information. Very Very Helpful. Just a question where can I find this mbox3rdPartyId=2000578?

Avatar

Employee

Sorry it was clearer, that's just meant to be an example customer id value that is getting passed. You replace 2000578 with your customer id for the visitor.

Avatar

Community Advisor

Yes, I am using customer id as you mentioned. Now Im injecting data to AT in order to determine the most viewed product. Is it correct the approach below? I am using Adobe Launch and I placed this code in custom code script.

 

function targetPageParams() {
return {
"entity": {
"id": xxx,
"categoryId": xxx
},
"mbox3rdPartyId": digitalData.user.id

}
};

Avatar

Employee

Yeah, custom code option will work and your code looks good to me for passing entity data along with the mbox 3rd party id. A formatted sample:

function targetPageParams() {
	return {
		"entity": {
			"id": xxx,
			"categoryId": xxx
		},
		"mbox3rdPartyId": digitalData.user.id
	}
};