Basket Tracking

    Capture cart data at the line-item level — for precise commission calculation per article.

    Prerequisites

    Basket tracking must be activated for your system. There are two variants:

    • Browser-based: Cart data is passed as additional parameters in the tracking pixel (get_trans.cgi) on the order confirmation page
    • SOAP-based: Cart data is submitted server-side via the SOAP methods new, change or change_or_new

    Contact info@qualityclick.com to activate basket tracking for your system.

    Basket tracking via browser

    Extend the tracking pixel code on the order confirmation page with cart data:

    Cart parameters
    // Item 1
    &ba1=SKU_ITEM_1
    &bc1=COMMISSION_PRODUCT_1
    &bu1=UNIT_PRICE_NET_1
    &bq1=QUANTITY_1
    &bt1=ITEM_NAME_1
    
    // Item 2
    &ba2=SKU_ITEM_2
    &bc2=COMMISSION_PRODUCT_2
    &bu2=UNIT_PRICE_NET_2
    &bq2=QUANTITY_2
    &bt2=ITEM_NAME_2

    For each additional item, increment the number (ba3, bc3, bu3, bq3, bt3 etc.).

    ParameterDescriptionExample
    ba[n]Article number (SKU)ABC-123
    bc[n]Commission product in QUALITYCLICKSale
    bu[n]Unit price net23.00
    bq[n]Quantity3
    bt[n]Article nameT-Shirt XL

    Basket tracking via SOAP

    Alternatively, submit cart data via the SOAP interface. The methods new, change and change_or_new provide a "basket" property for an arbitrary list of line items.

    A basket item has this data structure:

    FieldDescriptionFormatExample
    article_idArticle number (unique with variant)Text, 3–40 charsabc123
    variantVariant (size, color)Text, max 255XL
    commission_idCommission productText, max 40test-product
    unitpriceUnit price netDecimal23.00
    quantityQuantityNumber3
    titleProduct titleText, max 255T-Shirt
    ⚠️Warning
    Every SOAP call with cart data must include a TransactionID. Details on SOAP integration under SOAP Admin API.
    Still have questions?
    Our team is here to help with your integration — personally and competently.