How to install Customerly Live Chat with Javascript

Our script works out of the box with the majority of websites. If you have a WordPress website you can check our guide on how to install Customerly Live Chat on Wordpress.


Let's proceed with the Javascript integration.


First of all, you need your Project ID or App ID.


Once you have an App ID proceed to copy and paste the following code into your <head></head> tag on your website.

This code will load the widget without any user authentication. If you search to integrate Customerly with your user session data read below.


<!-- Customerly Integration Code -->
<script>
    window.customerlySettings = {
        app_id: "REPLACE_WITH_PROJECT_ID"
    };
    !function(){function e(){var e=t.createElement("script");
    e.type="text/javascript",e.async=!0,
    e.src="https://widget.customerly.io/widget/00c4ed07";
    var r=t.getElementsByTagName("script")[0];r.parentNode.insertBefore(e,r)}
    var r=window,t=document,n=function(){n.c(arguments)};
    r.customerly_queue=[],n.c=function(e){r.customerly_queue.push(e)},
    r.customerly=n,r.attachEvent?r.attachEvent("onload",e):r.addEventListener("load",e,!1)}();
</script>