For the managed package runtime, the Messaging Framework of the Generate Receipt step stores the data format for the selected device. For the example, only the DeviceName is a merge field. The remaining values are hard-coded.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- Click the Generate Receipt step.
- In the Messaging Framework properties for the step, make sure the Window postMessage, Pub/Sub, and Session Storage boxes are checked.
-
Add the following Message Key/Value pairs:
Key
Value
eventName
purchase
currencyCode
USD
eventAction
purchase
category
Ecommerce
action
Purchase
transactionId
T-%DeviceName%
couponCode
JUNE_SALE
quantity
1
shipping
19.9
tax
17.35
revenue
736.25
productDetails
(leave blank)
-
Open the JSON Editor and replace the
nullvalue or empty quotes after theproductDetailsnode with the following JSON array:[ { "name": "%DeviceName%", "price": 699, "brand": "Apple", "category": "Mobile", "variant": "Black", "list": "Search Results", "quantity": 1, "shipping": 19.9, "tax": 17.35, "revenue": 736.25 } ] - Exit the JSON Editor.
- Click Activate Version.
What’s next: Add a Business Event to the Example Card (Managed Package).