Welcome to the Kelkoo Group Customer Service

Google Tag Manager integration of Kelkoo Sales Tracking

Information for those merchants who use Google Tag Manager.


Step 1: implement the code

The integration of Kelkoo Sales Tracking is very easy. Go on your Google Tag Manager and log into your account then create a new custom HTML tag like this:

<script type="text/javascript">
    var _kkstrack = {
      merchantInfo : [{ country:"COUNTRY_CODE", merchantId:"COMID_VALUE" }],
      orderValue: 'ORDER_VALUE',
      orderId: 'ORDER_ID',
      basket:  [{ productname: 'PRODUCT1_NAME',
                 productid: 'PRODUCT1_ID',
                 quantity: 'PRODUCT1_QUANTITY',
                 price: 'PRODUCT1_PRICE'
                },
                { productname: 'PRODUCT2_NAME',
                 productid: 'PRODUCT2_ID',
                 quantity: 'PRODUCT2_QUANTITY',
                 price: 'PRODUCT2_PRICE'
                }
               ]
    };
    (function() {
      var s = document.createElement('script');
      s.type = 'text/javascript';
      s.async = true;
      s.src = 'https://s.kk-resources.com/ks.js';
      var x = document.getElementsByTagName('script')[0];
      x.parentNode.insertBefore(s, x);
    })();
 </script>

As you can see, Kelkoo Sales Tracking requires a few details of the order.

    • GREEN VALUES are fixed (static) values to pass along in the tag;
      • COMID_VALUE: This is the unique ID representing your shop within the Kelkoo system. Note that you can log into your Kelkoo Merchant Extranet account and directly use the JS tag generator that will automatically update the code with your COMID. You then just need to copy-paste the code generated and update the other values below.
      • COUNTRY_CODE (sv1) is the 2-letter country code for the country on which your products are listed on Kelkoo: : ‘at’ for Austria, ‘be’ for Belgium, ‘br’ for Brazil, ‘ch’ for Switzerland, ‘cz’ for Czech Republic, ‘de’ for Germany, ‘dk’ for Denmark, ‘es’ for Spain, ‘fi’ for Finland, ‘fr’ for France, ‘ie’ for Ireland, ‘it’ for Italy, ‘mx’ for Mexico, ‘nb’ for Flemish Belgium, ‘nl’ for Netherlands, ‘no’ for Norway, ‘pl’ for Poland, ‘pt’ for Portugal, ‘ru’ for Russia, ‘se’ for Sweden, ‘uk’ for United Kingdom, ‘us’ for United States.
    • BLUE VALUES are the required dynamic values that must be “picked up” from your web shop solution and then passed along in the tag. Please note that basic programming is needed for this part. How to do it depends on the programming language your website is coded in and the name of the variables your platform uses to store this information. Please contact your webmaster or technical team should you require help.
      • ORDER_VALUE: any real number with dot as decimal point representing the total amount of the order
      • ORDER_ID: any string identifying the order
    • LIGHT BLUE VALUES are additional dynamic values that we recommend you pass along in the tag too for more detailed insights (following example with x as product number x):
      • PRODUCTx_NAME: any string
      • PRODUCTx_ID: any string identifying the product code
      • PRODUCTx_QUANTITY: any positive integer number representing the number of items for that specific product
      • PRODUCTx_PRICE: any real number with dot as decimal point representing the price of the single product

Below are some screenshots about the steps to follow
1. Add a new tag
Google tag manager implementation add new tag

2. Choose Custom HTML Tag

Google tag manager implementation add html tag

3. Paste the code above and replace Google Tag Manager variable names with the ones you’ve already defined in ‘Variables’ section and click on Continue

Google tag manager implementation variables names

4. Choose Fire on Some Pages

Google tag manager implementation Firing tag

5. In case your thank you page has a recognisable path choose Operation ‘contains’ and insert the partial path that identifies your thank you page. In the example we supposed it’s ‘checkout_success’.

Google tag manager implementation checkout success


Step 2: test implementation

To test your implementation, simply simulate an order placed on your site.

  • Go on your Kelkoo Merchant Extranet and log into your account then click on the link “View your Kelkoo store page” in the top right corner of the Home page
  • Click on one of your offers to be redirected to your website
  • Place an order on your website
  • Save the source code of the confirmation page (as it appears if you do “View” -> “View source”) in case further debugging will be needed
  • The next day go on your Kelkoo Merchant Extranet and log into your account
  • Check in the “Statistics” menu that the sale has been recorded
  • Check that all details have been correctly recorded

Important! Check regularly that sales are being registered. This is extra important to do after you have implemented updates or changes to your site.
If you encounter problems, please use our contact form to send us an email. If the test order was not properly registered in your Statistics page, please attach to your email the source code of the order confirmation page as it appeared (“View”> “View Source”). Kelkoo Sales Tracking code should normally be included.