To install the widget in your site or application, you will need to have access to make updates to the HTML code. Once you have access, follow these steps to install the widget:
- In KnowledgeOwl go to Settings > Widget.
- Scroll down to where the "Modern Embed Code" section is located and click in the text area to highlight the code. Copy all the code to your clipboard.
- In your site or application, locate the closing </body> tag and paste the embed code right above it. If you don't want the widget to run on every page you can insert the code inside of the body tags on any page you wish the widget to run.
NOTE: The widget will accept custom variables to be passed into it that can be used for things like showing conditional content. The syntax for setting these custom fields is displayed in the code itself under "Optional Custom Variable Example". The custom variable "cust_email" can be used to pre-fill the email address field used in the contact form portion of the widget.