Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards
SOLVED

how to: revenue tracking

Avatar

Level 2

Hi there,

i m new to Target and i know that for tracking revenue  revenue and order information on the target-global-mbox, “mbox parameters” must be sent to Target. 

For the orderConfirmPage, you should pass in orderTotal, orderId, and productPurchasedId.

These parameters must be sent to the target-global-mbox via targetPageParams().

2 questions:

  • is there an example of javascript of how this is done? i guess this is done via a TMS (Launch)
  • do i have to use the target-global-mbox or can i create another mbox?
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

@Viwuwei Great question! In most cases, the purchase event happens after the page load, so we typically don’t send order information through the target-global-mbox. Instead, we use the trackEvent method to send these details to Adobe Target once the order is confirmed.

Here’s a sample snippet you can use, which includes all the necessary attributes:

<script type="text/javascript">
adobe.target.trackEvent({
mbox: "orderConfirmPage", // You can rename this if needed
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"
}
});
</script>

Make sure this is implemented on your order confirmation page, and that the values are dynamically populated from your order data.

Hope this helps! Feel free to reach out with any other questions.

Best,
Narendra

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

@Viwuwei Great question! In most cases, the purchase event happens after the page load, so we typically don’t send order information through the target-global-mbox. Instead, we use the trackEvent method to send these details to Adobe Target once the order is confirmed.

Here’s a sample snippet you can use, which includes all the necessary attributes:

<script type="text/javascript">
adobe.target.trackEvent({
mbox: "orderConfirmPage", // You can rename this if needed
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"
}
});
</script>

Make sure this is implemented on your order confirmation page, and that the values are dynamically populated from your order data.

Hope this helps! Feel free to reach out with any other questions.

Best,
Narendra