Purchase
Triggered on thank-you-page load.
Properties:
Name | Type | Description |
---|---|---|
origin | text | Wix App name, i.e Events, Stores |
revenue | number | Total purchase amount |
tax | number | Purchase tax |
coupon | text | Coupon name |
contents | array | All purchased products/events |
contents.quantity | number | Number of tickets |
contents.price | number | Product/event price |
contents.currency | currency | Currency in ISO-4217 format |
isPremium | boolean | Whether the Wix site is Premium |
userId | text | User ID |
metaSiteId | text | Wix site ID |
Example:
Copy
1trackEvent("Purchase", {2 "origin": "Wix Events",3 "revenue": 880,4 "tax": 20,5 "coupon": "SUMMER2018",6 "contents": [ {7 "quantity": 2,8 "price": 180,9 "currency": "USD"10 }, 11 {12 "quantity": 4,13 "price": 130,14 "currency": "USD"15 } ]16} );
Was this helpful?
Yes
No