安装
将Asyntai聊天小部件添加到您的网站
平台:
获取您的嵌入代码
To add the chat widget to your website, you need to copy your unique embed code. Go to your Dashboard and scroll down to the "Embed Code" section. You will see your personalized code snippet that looks like this:
<script>(function(){var l=function(){var s=document.createElement("script");s.src="https://widget.asyntai.com/static/js/chat-widget.js";s.async=true;s.setAttribute("data-asyntai-id","YOUR_WIDGET_ID");document.head.appendChild(s)};if(document.readyState==="complete"){l()}else{window.addEventListener("load",l)}})();</script>
复制此代码并将其粘贴到您网站的</body>闭合标签之前。脚本异步加载,因此不会影响页面加载速度。
选择您的平台
选择您的网站平台以获取特定的安装说明:
快速安装(任意平台)
如果上面未列出您的平台或您更喜欢手动安装,只需将嵌入代码粘贴到网站HTML模板或主题文件的</body>闭合标签之前。
提示: 大多数网站构建器的设置中都有"自定义代码"或"代码注入"部分,您可以在其中一次性为所有页面添加脚本。
Weebly