1. Head over to Kajabi dashboard
  2. Go to Website -> Appearance
  3. Create new template file called userengage in snippets folder
  4. Modify theme.liquid template in Layouts folder

Content of userengage.liquid file in snippets folder:

    window.civchat = {
        apiKey: '<your_api_key>'{% if current_site_user %},
        email: "{{ current_site_user.email }}",
        name: "{{ current_site_user.name }}"{% endif %}
    var script = document.createElement("script");
    script.setAttribute("type", "text/javascript");
    script.setAttribute("src", "//widget.userengage.io/widget.js");
    script.setAttribute("data-cfasync", "false");
userengage.liquid code

Additional code for theme.liquid file:

{% include "userengage" %}
theme.liquid additional code

If you have any issues with this addon - feel free to contact us. We're here for you!