Service setup (how does the code work, what does it influence, basic principles)

Installing Dashly is basically adding our script into each page (which should have our service operational) html. This script asynchronously downloads a JS library and creates a dashly global object, which is used in API interactions. JS-library communicates with our server via REST API. WebSocket is used for chat messages.

Important! Our code operates asynchronously and does not affect other files or scripts loading speed.

Where can I get the code?

Having created a Carrot app for your website you’ll be redirected to “Onboarding” page. Just copy the first code snippet in Onboarding Step 1 (here we pre-populate your APP ID for you) and paste the code right before the closing </head> tag.

Where should I paste the code?

Having created a Carrot app for your website you’ll be redirected to “Onboarding” page. Just copy the first code snippet in Onboarding Step 1 (here we pre-populate your APP ID for you) and paste the code right before the closing </head> tag. Adding code via gtm or it’s analogs is not prohibited, but is not recommended, as this method increases script’s loading time, thus creating a probability of some events not being tracked.

Installation verification

There are several attributes which can help you verify installation. Basics:

  • Our chat icon should appear on your site.

Important! Chat would not appear if it was switched into hidden mode in admin panel settings (it is visible by default)

  • You can click «Battery» in the upper part of our interface and click “verify code” button.
  • You can type dashly in the browser console to see Dashly script contents.