Here you will find integration instructions for orders tracking. Order tracking allows us to understand whether your customers actually add to cart and checkout (order) the size we recommended.
NOTE that no sensitive customer data is accessed by Easysize nor is any sensitive data transmitted.
Whenever an item is added to cart, Easysize meta data should be attached to the product. This usually includes updating the cart form on the page with additional attributes. Here’s an example from our shopify plugin
var easysize_attributes = {
"loaded": function() {
var form = document.querySelector('form[action="/cart/add"]')
var input = document.createElement('input')
input.type = "hidden"
input.id = "esid-input"
input.name = "properties[_esid]"
input.value = EasySizeParametersDebug.easysize.pageview_id
form.append(input)
},
...
}
You can bulk mark items as purchased using our API.
POST
https://tracking.easysize.me/analytics/<shop_id>/order
{
"products": [
{
"purchased_size": "S",
"pageview_id": "AC624E1E-D257-11EF-B393-7AE268639662",
"order_id": "444",
"product_id": "111",
"created_at": "2025-01-01 12:15:12",
"user_id": "1298745",
"quantity": 4,
"price": "15.5",
"price_currency": "eur",
},
...
]
}
Params
Array of products with the following format:
Parameter | Type | Description |
---|---|---|
purchased_size* | String | Variant of purchased item |
pageview_id* | String | Easysize tracking ID |
order_id* | String | Order ID from your system |
product_id* | String | Product ID from your system |
user_id* | String | User id from your system |
created_at* | String Date | %Y-%m-%d %H:%M:%S / 2015-01-29 16:30:59 |
price | Float | Item price |
price_currency | String | Price currency |
test_order | Boolean |