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.

at.js 2.1.1 with remote offers not working.

Avatar

Community Advisor

Hello Team,

I'm using the latest version of at.js 2.1.1 but facing issues with remote offers?

I've set up the test experience using forms-based composer and injecting the image content in the mbox location. mbox is hardcoded in the page like below.

<script>



if (typeof adobe === 'object' && typeof adobe.target === 'object')

{

adobe.target.getOffer({  

"mbox": "mbox_name",

"success": function(offer) {

console.log("mbox_name_offer_name", offer);

adobe.target.applyOffer({ 

   "mbox": "mbox_name",

   "offer": offer 

});

  },  

  "error": function(status, error) {          

console.log('Error - status', status);  

console.log('Error - error', error);

  }

});

}

</script>

Using Activity QA, I'm using the URL generated by Target for viewing the variations like

for Experience A

?at_preview_token=xxxxxxxxxxxxxxx8%xxx%xx%xx&at_preview_index=1_2&at_preview_listed_activities_only=true

for Experience B

?at_preview_token=xxxxxxxxxxxxxxx8%xxx%xx%xx&at_preview_index=1_1&at_preview_listed_activities_only=true

and checking in a browser like

https://xxxxxx.xxxx.co.uk/?at_preview_token=xxxxxxxxxxxxxxx8%xxx%xx%xx&at_preview_index=1_1&at_previ...

but not able to see any experience in the browser whereas, in the browser's network tab, I can see the correct JSON payload request for this mbox with content which of html type.

Any help really appreciated

0 Replies