Développer ma barre des réalisations de la Communauté.

Submissions are now open for the 2026 Adobe Experience Maker Awards
RÉSOLU

Revenue calculation thanks to recommendations using Web SDK

Avatar

Level 10

I would like to count how much revenue was generated through Recommendations. Does that mean that I should implement specific mbox in Thank-you-page which would count conversions?

Michael_Soprano_0-1743879159151.png

 

Sujets

Les sujets facilitent la catégorisation du contenu de la Communauté et vous aident à retrouver le contenu le plus pertinent.

1 solution acceptée

Avatar

Réponse correcte par
Level 2

Hello @Michael_Soprano,

Yes, that's correct. If you want to track how much revenue is generated in Adobe Target for any activity, you need to implement a conversion mbox on your Thank You / Order Confirmation page. Only after that Target Revenue/Order based reporting metrics can be leveraged.

 

If you are using at.js, below is the snippet which you can use:

adobe.target.trackEvent({
  mbox: "purchase",
  params: {
    "orderId": "123456",
    "orderTotal": "299.99",
    "productPurchasedId": "ABC123,XYZ456"
  }
});
​


If your implementation is based on alloy.js(Web SDK), use below snippet:

alloy("sendEvent", {
  "xdm": {
    "commerce": {
      "order": {
        "priceTotal": _satellite.getVar('totalRevenue'),
        "purchaseID": _satellite.getVar('orderID'),
      },
      "purchases":{
        "value": 1
      }
    },
    "_experience": {
      "decisioning": {
        "propositions": [
          {
            "scope": "orderConfirmation"
          }
        ],
        "propositionEventType": {
          "display": 1
        }
      }
    }
  }
});​

Hope this helps! Let me know if you have any other questions.


Regards,

Vikas Ohlan
LinkedIn Profile 

Voir la solution dans l'envoi d'origine

2 Replies

Avatar

Réponse correcte par
Level 2

Hello @Michael_Soprano,

Yes, that's correct. If you want to track how much revenue is generated in Adobe Target for any activity, you need to implement a conversion mbox on your Thank You / Order Confirmation page. Only after that Target Revenue/Order based reporting metrics can be leveraged.

 

If you are using at.js, below is the snippet which you can use:

adobe.target.trackEvent({
  mbox: "purchase",
  params: {
    "orderId": "123456",
    "orderTotal": "299.99",
    "productPurchasedId": "ABC123,XYZ456"
  }
});
​


If your implementation is based on alloy.js(Web SDK), use below snippet:

alloy("sendEvent", {
  "xdm": {
    "commerce": {
      "order": {
        "priceTotal": _satellite.getVar('totalRevenue'),
        "purchaseID": _satellite.getVar('orderID'),
      },
      "purchases":{
        "value": 1
      }
    },
    "_experience": {
      "decisioning": {
        "propositions": [
          {
            "scope": "orderConfirmation"
          }
        ],
        "propositionEventType": {
          "display": 1
        }
      }
    }
  }
});​

Hope this helps! Let me know if you have any other questions.


Regards,

Vikas Ohlan
LinkedIn Profile 

Avatar

Level 10