I have a website. when a user purchase from our website and on the thankyou page we need to record some ID's which are default woocommerce ID's and svae them for our internal use. For example :
There are ID's on thank you page and you just to insert script in functions.php file and script for index page and we will have these details for internal use.
<script type="text/javascript">
ire('trackConversion', 23221, {
orderId: "Order Id here",
customerId: "Customer Id here",
customerEmail: 'SHA1 Hash of Customer’s Email',
customerStatus: "Customer Status here",
currencyCode: "USD",
orderPromoCode: "",
orderDiscount: 15.00,
items: [
{
subTotal: 208.00,
category: "Product Category 1",
sku: "sku-11111",
quantity: 2,
name: "Product Name 1",
},
{
subTotal: 99.00,
category: "Product Category 2",
sku: "sku-11112",
quantity: 3,
name: "Product Name 2",
}
]
},
{
verifySiteDefinitionMatch:true
}
);
</script>