Expand my Community achievements bar.

Use CRM ID in Target XT audience

Avatar

Level 2

Use Case: Create an XT activity for specific CRM IDs

 

In Launch: There's an existing Target Load and Fire rule. In that rule, there's an Add Params to Page Load Request action.

Name: mbox3rdpartyid

Value: (a variable that contains the CRM ID value, from a data element)

I believe this part works, it's how to pull this in Target that I need help with.

 

In Target>Profile Scripts, I made a profile script called id_mbox3rdpartyid with this code: return profile.get('mbox3rdpartyid');

Then in Audience Library, I made an audience called IDaudience, set up as this: Visitor Profile: user.id_mbox3rdpartyid equals (case sensitive) 0000000000

(The id I used is the real ID and not zeroes.)

 

I created the activity and set the audience to IDaudience. The experience is not being shown. This is set up on a password protected site. I made sure the user has the ID I entered in the audience.

 

I also tried making a second Audience set up as: Custom: mbox3rdpartyid Equals (case insensitive) 0000000000. This doesn't work either.

 

Please assist.

1 Reply

Avatar

Community Advisor

Hi @m_alcantara It seems like the initial steps correct however there is little correction in profile script. 

Here I made a test example on Luma site. 

I've created a data element called CRM ID and provides constant value only for test. in your case I hope you are getting the CRM ID from data layer.

Gokul_Agiwal_0-1736458566612.png

Map this data element to target request - Add Params to Page Load Request action. 

Gokul_Agiwal_1-1736458614251.png

In Target>Profile Scripts, I made a profile script called thirdPartyid  where I'm returning the mbox3rdPartyId value as mbox param. as we're passing this as mbox parameter

Gokul_Agiwal_2-1736458681844.png

Then in audience library made an audience called test ID like below 

Gokul_Agiwal_3-1736458827821.png

and then create the activity and assign the audience test ID and set the right traffic and setup m goals and setting 

Gokul_Agiwal_4-1736458978621.png

so here I'm able to get the below experience only for the test ID audience and I can able to see the mbox3rdpartyId in network call which I passed in through data element. 

Gokul_Agiwal_5-1736459143546.png

and here is the default version https://luma.enablementadobe.com/content/luma/us/en.html 

Hope this helps. 

Thanks.