EMMA allows you to track every purchase that you make in your mCommerce.
eMMa.startOrder(orderId, customerID, price, currency)
Starts an order for adding products. You can pass the following parameters:
: String with your order id.
: String with your Customer ID.If not passed, EMMA will use the logged one (if exists).
: Float with your total price.
: String with valid Currency Code (EUR,USD,..) If the currency code is not valid EUR currency will be taken.
You can use abbreviated methods if you don’t need all parameters.
Add Products to the order
eMMa.addProduct(productId, name, qty, price)
Adds products to your current started order. Always startOrder should be called before. You can pass the following parameters: You can pass the following parameters:
: String with your product id.
: String with your product name.
: Float with your product qty.
: Float with product price.
Track the current order. It should be called after startOrder and after being all cart products added.
The sequence of tracking order in EMMA is always startOrder>addProduct(*distinct products)>trackOrder.