We have implemented target using aep web sdk , How can we get mboxPC value in aep web sdk to use in Single profile update API (https://developers.adobetarget.com/api/#updating-profiles) as ecid is not supported in api ?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
This value is returned in the profile.tntId response token e.g.
profile.tntId: "67677755157554962440218653604594169358-SfaPLX"
This value is returned in the profile.tntId response token e.g.
profile.tntId: "67677755157554962440218653604594169358-SfaPLX"
We need your guidance on how to obtain profile.tntId. We searched the cookies but we couldn’t find it. We are using Single profile update API and AEP web SDK. We have ECID but we require mboxPC.
Views
Replies
Total Likes
You can access it via the Response from the Web SDK request (see example here). Part of that response contains a meta object, which includes profile.tntId (and other response tokens that are enabled):
I appreciate your reply, Alex! I can’t find the tntid in the web SDK response. How can I obtain it? Here is my screenshot. I also want to know how to store it in cookies or any other storage to use it after I get it.
Views
Replies
Total Likes
You'll only see data relevant to Target in the response if it's a page that qualifies for a Target activity and therefore the response contains activity information. In your screenshot the payload is empty for that "personalization:decisions" event type, which suggests you're not qualifying for any Target activities. If you're on a page/in a scenario where you qualify for a Target activity you will see the payload look something like this, and part of that payload contains the "meta" object:
The link I shared in the previous message gives examples of how you can access the response, at which point you can then store it in cookies, storage etc
Hi Alex, I appreciate your help. I tried again on a page with a working target activity. I reached to the id:“AT:******” but I still don’t see the tntid in my meta tag. Here is a screenshot of what I get.
Views
Replies
Total Likes
It most likely means the Response Token for profile.tntId isn't active then; if you go to Administration > Response Tokens you can check the status, and if it shows Deactivated then click the toggle button to activate it:
Thank you Alex! I got it.
Last question, what is the best way to store the tntid in cookies? Is there any existing option or configuration for this, or do we have to create something custom? We would be grateful for your guidance on this matter.
Regards,
Vivek
Views
Replies
Total Likes
Great that it works now - there isn't any existing configuration for storing the profile.tntId value, so you would just need to write your own JS to do that
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies