Developers
Search
K
Comment on page

JavaScript Library

LYNX uses a JavaScript library to enable tracking data.
This JavaScript library allows capturing the activity of visitors on your website using the JavaScript API. To use the JavaScript API, you must paste the JavaScript Tracking Code (an HTML code snippet) in all the pages of your website where you intend to collect user's behavioral data. The presence of the JavaScript Tracking Code will allow loading the JavaScript file into your website and will make LYNX's JavaScript API available for tracking users' interactions. The library is loaded asynchronously and does not block the rendering of the page or the execution of other JavaScript code.

Merchant ID

Once your account setup is complete, LYNX assigns you a unique alpha-numeric code called Merchant ID. This is your unique identifier inside LYNX. You cannot change this code. To see your Merchant ID:
  1. 1.
    In the Kickdynamic web application, open the LYNX menu and select Settings.
  2. 2.
    In the General tab you will see your Merchant ID code.

Domain

You must use a valid domain for your website. LYNX will track incoming commands (sent via the Javascript API) only from the domain you have specified during the set up process. To see your valid domains:
  1. 1.
    In the Kickdynamic web application, open the LYNX menu and select Settings.
  2. 2.
    In the General tab you will see your valid domain.

Check if the Tracking Code is working

Once you have setup the Tracking Code in your web store, you can start sending commands to LYNX using its Javascript API. The Events Monitor allows you to check if the communication between LYNX and your web store is working as expected.
In the Kickdynamic web application, open the LYNX menu and select Events Monitor and click the 'Open Shop in Test Mode' button to start interacting with your website.
Once loaded, the Events Monitor will listen for incoming commands (sent from your web store using the Javascript API) and will print them to the screen. The content updates automatically when the listener receives a command so there is no need for manual reload to refresh the page's content.
IMPORTANT
You must click the 'Open Shop in Test Mode' button in order to check if the Tracking Code is working. LYNX's Event Monitor will not display any interaction occurring on your website if you don't come from that link.