Purchase

Triggered on thank-you-page load.

Properties:

NameTypeDescription
origintextWix App name, i.e Events, Stores
revenuenumberTotal purchase amount
taxnumberPurchase tax
coupontextCoupon name
contentsarrayAll purchased products/events
contents.quantitynumberNumber of tickets
contents.pricenumberProduct/event price
contents.currencycurrencyCurrency in ISO-4217 format
isPremiumbooleanWhether the Wix site is Premium
userIdtextUser ID
metaSiteIdtextWix site ID

Example:

Copy
1
trackEvent("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