Funnel Chat Integration

Embedding the chat widget (v2)

To embed the widget into your website, simply paste the provided code, which should look like this:

<script src="https://chatbot.funnelleasing.com/funnel-chat.min.js"></script>
<script>
    window.addEventListener('load', function () {
        FunnelChat.initialize({
            apiKey: "FUNNEL_API_KEY_HERE",
            communityId: FUNNEL_COMMUNITY_ID_HERE,
            timeout: 00, 
            leadSourceId: LEAD_SOURCE_ID_HERE,
            defaultPaddingRight: '10px',
            defaultPaddingBottom: '10px',
            reactivePaddingRight: '20px',
            reactivePaddingBottom: '40px'
        })
    })
</script>

API Reference

FunnelChat.initialize

The chat can be initialized by calling the initialize function. The parameter you can set are:

FunnelChat.restart

The chat can be restarted by calling the restart function. This function does not take any parameters and a new chat will automatically appear immediately.

Integrating with Google Analytics

Our chatbot widget is also capable integrating with Google Analytics. Documentation outlining this can be found here.