Developers
Search
K
Comment on page

Tracking Code

All implementations should use the latest version of the library: kd-lynx-v1.1.js.

Get the Tracking Code

The JavaScript Tracking Code is a snippet of HTML that you need to insert into your website's HTML code and it is available in the Kickdynamic platform in the LYNX menu section.
  1. 1.
    In the Kickdynamic web application, open the LYNX menu and select Settings.
  2. 2.
    Click the Tracking Code tab to view the code snippet.

JavaScript Tracking Code Sample

<script>
var kd = kd || [];
(function() {
var scriptId = 'kd-js-api';
if (document.getElementById(scriptId)) return;
var js = document.createElement('script'); js.id = scriptId;
js.setAttribute('merchantId', 'YOUR-MERCHANT-ID'); js.setAttribute('async', true);
js.src = 'https://cdn.kickdynamic.com/kd-lynx-v1.1.js';
var scriptTag = document.getElementsByTagName('script')[0];
scriptTag.parentNode.insertBefore(js, scriptTag);
})();
</script>
Copy the Tracking Code and paste it into your website's HTML code.
IMPORTANT
Make sure to add the tracking code to all the pages of your website where you intend to