Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Insert Chatbot Code Snippet #460

Closed
wdprice opened this issue Aug 11, 2021 · 4 comments
Closed

Insert Chatbot Code Snippet #460

wdprice opened this issue Aug 11, 2021 · 4 comments

Comments

@wdprice
Copy link

wdprice commented Aug 11, 2021

The following code needs to be added for a chatbot to appear on the page:

<script type="text/javascript"> window._chatlio = window._chatlio||[]; !function(){ var t=document.getElementById("chatlio-widget-embed");if(t&&window.ChatlioReact&&_chatlio.init)return void _chatlio.init(t,ChatlioReact);for(var e=function(t){return function(){_chatlio.push([t].concat(arguments)) }},i=["configure","identify","track","show","hide","isShown","isOnline", "page", "open", "showOrHide"],a=0;a<i.length;a++)_chatlio[i[a]]||(_chatlio[i[a]]=e(i[a]));var n=document.createElement("script"),c=document.getElementsByTagName("script")[0];n.id="chatlio-widget-embed",n.src="https://w.chatlio.com/w.chatlio-widget.js",n.async=!0,n.setAttribute("data-embed-version","2.3"); n.setAttribute('data-widget-id','df6d6a4d-7193-4eaf-648b-4569f0e6b262'); c.parentNode.insertBefore(n,c); }(); </script>

@nikolay83
Copy link
Collaborator

@wdprice
only the Landing page, or all the pages through till Checkout?

@wdprice
Copy link
Author

wdprice commented Aug 11, 2021

All pages @nikolay83

yoution added a commit to yoution/taas-app that referenced this issue Aug 12, 2021
nikolay83 added a commit that referenced this issue Aug 12, 2021
nikolay83 added a commit that referenced this issue Aug 12, 2021
@nikolay83 nikolay83 reopened this Aug 12, 2021
@sdgun
Copy link

sdgun commented Aug 12, 2021

Verified in Dev, Chatbot is there on all pages for logged in or anonymous users except on checkout page. Observed the below:

  1. On the Chatbot UI, the fields are not clearly visible
  2. After sending some feedback/query, it doesn't show the form again when click on chatbot(shows the message 'Thanks for your...', until the page is refreshed

@wdprice Are we ok with the above for now?

@sdgun
Copy link

sdgun commented Aug 16, 2021

Verified in production.

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants