Installing Sales-Tracking on Other / Custom Platforms

Optimise Clerk.io automatically with instant sales-tracking from your Order Success page.

Sales tracking is used to report on Clerk.io’s performance and give our algorithms feedback to constantly learn about your customers.

To enable sales-tracking, insert the following script onto your order success page (remember to include Clerk.js on that page if it’s not already there):

Default Tracking

 <span
    class="clerk"
    data-api="log/sale"

    data-sale="123456"
    data-email="luke@skywalker.me"
    data-customer="7890"
    data-products='[{"id": 5528, "quantity": 1, "price": 99.95}, {"id": 2952, "quantity": 2, "price": 9.50}]'>
</span>

Here is a description of each field: