Install
We provide a Javascript SDK that you can include on your website. This SDK gives you a list of functions which let you show the widget on your website and control it's behaviour
Install the SDK
To install the SDK on your website copy and paste the snippet below before the </head>
tag on every page where you want to have access to the SDK and show the widget.
Good to know: If you have a single page app make sure this script is loaded before your try to accessing the SDK
Get your API key
You can find your api key in your dashboard under the implementation
tab.
Init the widget
Once you have the Chathive SDK installed then you need to tell the Widget to startup. You can do this using the code snippet below which will enable the Widget to launch whenever the page is refreshed.
Place this code in the </body>
tag on every page where you want to show the widget.
Good to know: If you have a single page app make sure this is executed after the SDK has been loaded
Other init methods
Embed widgetLast updated