Embed widget

Sometimes a widget doesn't fit into your design. for these purposes we also made it possible to embed the widget into your page.

Once you have the Chathive SDK installed then you need to tell the SDK to embed the widget into your page and into which HTML tag.

Place the following code just before </body> tag. It's important that this code comes after the html tag where you want to embed the widget in

<script>
    Chathive.widget.embed({
        apiKey: "YOUR_API_KEY",
        selector: "YOUR_HTML_TAG",
    });
</script>

Last updated