Integrate

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

Content ofuserengage.liquidfile in snippets folder:

<script>
            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.com/widget.js");
            script.setAttribute("data-cfasync", "false");
            document.body.appendChild(script);
            </script>

Additional code for theme.liquid file:

{% include "userengage" %}