how to: revenue tracking | Community
Skip to main content
Level 2
July 18, 2025
Solved

how to: revenue tracking

  • July 18, 2025
  • 1 reply
  • 331 views

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?
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 NarenKotipalli

@wuwei88 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

1 reply

NarenKotipalli
NarenKotipalliAccepted solution
Level 3
July 28, 2025

@wuwei88 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