Add Basket Information

You can enrich your Kelkoo Sales Tracking (KST) implementation by sending information about the products included in each transaction.

Basket information helps Kelkoo Group better understand which products generate sales and enables additional performance optimisations.

The implementation depends on how you installed Kelkoo Sales Tracking.

Manual installation

If you installed KST manually, add a basket parameter to the _kkstrack variable on your order confirmation page.

The basket parameter must contain an array of all products included in the transaction:

JavaScript
_kkstrack = {
  ...
  basket:  [{ productname: 'Man@@ubri ricoperti di spugna 1 kg x 2 pz ',
              productid: '1',
              quantity: '1',
              price: '4.2'
            },
            { productname: 'p2',
              productid: '2',
              quantity: '3',
              price: '8.6'
            },
            ...
            ]
  ...
};

All four fields are required for each product:

Field

Description

productname

Name of the product

productid

Unique identifier of the product

quantity

Number of units purchased

price

Unit price of the product

Important

The productid should match the product identifier used in your Kelkoo Group offer feed, such as the EAN, SKU or another unique product ID.

Using the same identifier allows Kelkoo Group to match transactions with the corresponding products in your feed and enables additional performance optimisations.

Installation via Google Tag Manager (GTM)

If you installed KST through Google Tag Manager, your Data Layer must contain information about the products included in the transaction.

JavaScript
window.dataLayer = window.dataLayer || [];
dataLayer.push({
  'transactionId':'1234',
  'transactionAffiliation':'Acme Clothing',
  'transactionTotal':38.26,
  'transactionTax':1.29,
  'transactionShipping':5,
  'transactionProducts':[{
    'sku':'DD44',
    'name':'T-Shirt',
    'category':'Apparel',
    'price':11.99,
    'quantity':1},
    {
    'sku':'AA345',
    'name':'Boots',
    'category':'Shoes',
    'price':99.99,
    'quantity':4
  }]
})


Make sure the product information required by your KST configuration is available in the Data Layer.

Important

The sku should match the product identifier used in your Kelkoo Group offer feed, such as the EAN, SKU or another unique product ID.

Using consistent identifiers allows Kelkoo Group to match purchased products with the corresponding products in your feed and enables additional performance optimisations.

Pass the product ID / SKU to Kelkoo Sales Tracking

  • For an installation via Google Tag Manager (GTM), add SKU in the GTM tag

  • For a Manual Installation, add SKU to js variable _kkltrack (_kkltrack.sku)

  • If you already follow Google requirements regarding structured product metada (https://developers.google.com/search/docs/data-types/product#microdata ), Kelkoo Sales Tracking will retrieve them automatically

Ex:

<meta itemprop="sku" content="0446310786" />

<div property="schema:sku" content="0446310786"></div>

<script type="application/ld+json">
    {
      ...
      "sku": "0446310786",
      ...
    }
</script>

  • Kelkoo Sales Tracking also supports Google Analytics baskets

[
  {
    "id": "P12345",
    "name": "Android Warhol T-Shirt",
    "list_name": "Search Results",
    "brand": "Google",
    "category": "Apparel/T-Shirts",
    "variant": "Black",
    "list_position": 1,
    "quantity": 2,
    "price": '2.0'
  },
  {
    "id": "P67890",
    "name": "Flame challenge TShirt",
    "list_name": "Search Results",
    "brand": "MyBrand",
    "category": "Apparel/T-Shirts",
    "variant": "Red",
    "list_position": 2,
    "quantity": 1,
    "price": '3.0'
  }
]