How do I open the Freshchat widget once my website loads?

Modified on Wed, 8 May, 2024 at 1:16 PM

The Freshchat, or the conversations widget, delivers a convenient and contextual conversational messaging experience for customers. If you want to open it on the load of the website, please add the below code on your website


Note: To find the tracking code that you need to include before the  tag of the web pages you want to integrate, navigate to Admin Settings > Channels > Web Chat > Click Copy



If you want to open it on a load of the website, use the code below


<script>
window.fcWidgetMessengerConfig = {
open: true,
}
</script>

<script src='//fw-cdn.com/1*****7/2*****4.js' chat='true'></script>


If you want the widget to open in x seconds, then make use of the following code,


<script>
var timeInMillis = 5000;
setTimeout(function() {
window.fcWidgetMessengerConfig = {
open: true
}
window.fcWidget.open();
},timeInMillis);
</script>
<script src='//in.fw-cdn.com/30851411/450037.js' chat='true'></script>



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article