Zintegruj

  1. Przejdź do panelu Kajabi
  2. Idź doWebsite -> Appearance
  3. Create new template file called userengage in snippets folder
  4. Modify theme.liquid template in Layouts folder

Zawartość folderu userengage.liquid w folderze snippetów:

<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>

Dodatkowy kod dla plikutheme.liquid:

{% include "userengage" %}