Expand my Community achievements bar.

Applications for the 2024 Adobe Target Community Mentorship Program are open! Click to the right to learn more about participating as either an Aspirant, to professionally level up with a new Certification, or as a Mentor, to share your Adobe Target expertise and inspire through your leadership! Submit your application today.

mboxFactoryDefault.getPCId().getId(); equivalent for at.js

Avatar

Level 2

I am looking for a way to get the Mbox PCID via AT.js.  Currently, response tokens for tntID is dropping the edge and application numbers (everything after the "."). 

1 Reply

Avatar

Level 4

I feel inadequate trying to help you Brian, but I'll add my 2 cents. Here's a couple ways we've grabbed this since migrating to at.js

1. Grabbing it through the cookie.

getCookie('mbox') gives you session and PCID. We just parse out the value we need.

1456882_pastedImage_4.png

2.  define a variable in the html offer with '${user.PCID}' and the grab it once the offer loads.

Also, what is the use case that you'd be trying to accomplish with this?