Orderconfim Mbox Call error | Community
Skip to main content
Ashok_Adiyolil
Level 2
November 4, 2020
Solved

Orderconfim Mbox Call error

  • November 4, 2020
  • 2 replies
  • 1488 views

Hello Experts,

We tried to add order confirm mbox call to send some data to target to utilize it in VIsitor profile
 
We are getting following error imediately once fire the mbox call rule: Failed to load resource: the server responded with a status of 400 ()
What could be the issue?
I'm adding error screenshot below.
 
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonasvvd

Hi @ashok_adiyolil, sorry for the delay in my reply.

 

I believe you need to add the mandatory mbox parameters in your confirmation mbox.

 

adobe.target.trackEvent({
"mbox": "orderConfirmPage",
"params":{
"orderId": "ORDER ID FROM YOUR ORDER PAGE",
"orderTotal": "ORDER TOTAL FROM YOUR ORDER PAGE",
"productPurchasedId": "PRODUCT ID FROM YOUR ORDER PAGE, PRODUCT ID2, PRODUCT ID3"
}
});

 

https://experienceleague.adobe.com/docs/target/using/implement-target/client-side/deploy-at-js/implementing-target-without-a-tag-manager.html?lang=en#implement-target

 

I hope this helps.

 

Kind regards,

Jonas

2 replies

Adobe Employee
November 5, 2020

Hi,

 

I believe it would be best if you shared how you have deployed the order confimation mbox and provide the code.

 

Kind regards,

Jonas

Ashok_Adiyolil
Level 2
November 6, 2020

@jonasvvd Thanks for the reply,

We have deployed the the order confirmation mbox through launch.For your reference i have added the code below.

 

adobe.target.trackEvent({mbox:"orderConfirmPage",params:

{dataelement:_satellite.getVar("cat"),b:"2"}});

 

 

Thanks 

 

JonasvvdAdobe EmployeeAccepted solution
Adobe Employee
November 20, 2020

Hi @ashok_adiyolil, sorry for the delay in my reply.

 

I believe you need to add the mandatory mbox parameters in your confirmation mbox.

 

adobe.target.trackEvent({
"mbox": "orderConfirmPage",
"params":{
"orderId": "ORDER ID FROM YOUR ORDER PAGE",
"orderTotal": "ORDER TOTAL FROM YOUR ORDER PAGE",
"productPurchasedId": "PRODUCT ID FROM YOUR ORDER PAGE, PRODUCT ID2, PRODUCT ID3"
}
});

 

https://experienceleague.adobe.com/docs/target/using/implement-target/client-side/deploy-at-js/implementing-target-without-a-tag-manager.html?lang=en#implement-target

 

I hope this helps.

 

Kind regards,

Jonas