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?
Solved! Go to Solution.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
@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.
Views
Replies
Total Likes
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; }
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies