What is the most fastest way to update a users profile which includes mbox3rdPartyId? | Adobe Higher Education
Skip to main content
Level 2
October 11, 2022
Répondu

What is the most fastest way to update a users profile which includes mbox3rdPartyId?

I'd like to try updating user's profile attributes as way to use them in experience targeting  (hide/show different content if they've seen it in the past x-amount of days).  It seems there's always a undetermined delay.  I've tried using the Profile API directly and the trackEvent() function.

I'm using mbox3rdPartyId and then trying to fetch the profile by the mbox3rdPartyId.

This is also all happening client side in the browser.

 

Any recommendations?

Ce sujet a été fermé aux réponses.
Meilleure réponse par Perrin_Ennen

You can write values into the UserProfile. These are then real time on the client side and in the calls with Adobe Target. Think that if you want to retrieve these values via the API - it's probably not real time (not sure about that). But if you write client-side in the profile - okay user has seen this and that - or should see the respective content at the next page load or request - then it works.

 

adobe.target.trackEvent({ mbox: 'sb113_track', params: { 'profile.sb113_viewed': 'true' } });

How Do I Use the adobe.target.trackEvent() Function?

 

Here you write the value sb113_viewed and write true as value. Of course you can write something completely different here. It is only important to know that the value is a string. But you can use this again to generate audiences in Adobe Target that meet the corresponding profile value.

1 commentaire

Perrin_Ennen
Community Advisor
Perrin_EnnenCommunity AdvisorRéponse
Community Advisor
October 13, 2022

You can write values into the UserProfile. These are then real time on the client side and in the calls with Adobe Target. Think that if you want to retrieve these values via the API - it's probably not real time (not sure about that). But if you write client-side in the profile - okay user has seen this and that - or should see the respective content at the next page load or request - then it works.

 

adobe.target.trackEvent({ mbox: 'sb113_track', params: { 'profile.sb113_viewed': 'true' } });

How Do I Use the adobe.target.trackEvent() Function?

 

Here you write the value sb113_viewed and write true as value. Of course you can write something completely different here. It is only important to know that the value is a string. But you can use this again to generate audiences in Adobe Target that meet the corresponding profile value.

jchabot86Auteur
Level 2
October 13, 2022

@perrin_ennen do you know if only strings or other primitives are acceptable values?  I seem to get 400s if I try to pass json objects as the value of any profile parameter.

Perrin_Ennen
Community Advisor
Community Advisor
October 13, 2022

Hope I understand you correctly. If you pass values with adobe.target.trackEvent via params - these can also be numbers etc. - this is only rewritten as a string by target accordingly.

 

But you can rewrite it in the ProfileScript (if you use one) - again accordingly e.g. by Number() and compare.

 

if (page.domain == 'www.example.com' && mbox.name == 'target-global-mbox') {
var value = mbox.param('sb113_value');

	if (typeof value !== 'undefined' && value) {
	  return (Number(value) >= 100) ? true : false;
	}

	return false;
}