Install our tracking script

In order to track orders manually, you’ll have to install our tracking script on your website.

You can manually track orders with just a few lines of code:

Afficone.conversion({
    orderId: "123",
    products: [
      {
        name: 'Big Cheese Hamburger',
        total: 9.99
      }
    ]
});

Order schema

If you want to include more data to your order, you can check out our full order schema:

{
    orderId: "123",
    timestamp: 1704379131,
    notes: "Extra cheese please.",
    isRoyalty: false, // ⚠️ Dangerous
    coupons: ["COUPON123"],
    commission: 2.00, // ⚠️ Dangerous
    customer: {
        name: "Kris D.",
        phone: "+1 (123) 123-1234",
        email: "[email protected]",
        ip: "123.123.123.123",
        country: "The Universe",
        address: "Planet Earth, Solar System, Milky Way"
    },
    products: [
        {
            id: "0",
            name: "Big Cheese Burger",
            quantity: 1,
            total: 9.99,
            subTotal: 8.99,
            tax: 0
        }
    ],
    metadata: {
        exclude: "pickles"
    }
}