Hi Team,
mboxCreate method doesn't work with at.j.
How could we create an mbox div at page level?
I tried with below code but no luck :
<div class="mboxDefault">
adobe.target.getOffer({
"mbox": "customTestMbox",
"params": {
"status": "true"
},
"success": function(offer) {
adobe.target.applyOffer( {
"mbox": "customTestMbox",
"offer": offer
} );
},
"error": function(status, error) {
console.log('Error', status, error);
}
});
</div>
Solved! Go to Solution.
Try closing your <div> tag before the script. Please see https://docs.adobe.com/help/en/target/using/implement-target/client-side/upgrading-from-atjs-1x-to-a... for a sample.
Thanks!
Try closing your <div> tag before the script. Please see https://docs.adobe.com/help/en/target/using/implement-target/client-side/upgrading-from-atjs-1x-to-a... for a sample.
Thanks!
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @surebee @Amelia_Waliany Target library is loaded async through launch so when the below code is getting executed the target is not loaded and hence m getting the error. I tried loading the below code async also but that is not helping either. I need to fire target library async only. How could I fix it. Any inputs in this regard is highly appreciated.
<div class="mboxDefault">This is a test Mbox</div> |
<script type="text/javascript" async> |
adobe.target.trackEvent({ |
"mbox": "orderConfirmPage", |
"params":{ |
"orderId": transactionID, |
"orderTotal": cartTotal |
} |
}); |
</script> |
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies