Adding the tawk.to widget to a Google Site

The instructions below are for desktops and laptops only.

Add the tawk.to widget to your Google Site to let visitors chat with your team directly from your website. This guide shows you how to embed your widget code and customize the widget's appearance after it's installed.

Copy your widget code

1. Log in to your tawk.to account, and select the correct property.

2. Click Administration on the left navigation bar.

3. Click Chat Widget in the left submenu.

4. Copy the Widget Code.

Add the widget to your Google Site

1. On your Google Site, click Embed in the panel on the right.

2. Select Embed code. Paste the Widget Code and click Next.

3. Preview the widget. To edit the code, click the Edit (pencil) icon in the preview window. Then, click Insert.

4. The widget will be added to your page. You can:

- Drag the widget to reposition it on the page.
- Resize the embed area.
- Click the Edit (pencil) icon to update the embedded code.
- Click the Delete (trash) icon to remove the widget.

Customize your widget appearance

After adding the widget, you can change its appearance at any time from your tawk.to dashboard. Changes take effect immediately, so you don't need to update the embed code on your Google Site.

1. In your tawk.to dashboard, go to Administration > Chat Widget, and click Advanced under Widget Appearance.

2. Use the editor to customize your widget. You can:

- Change the widget size.
- Adjust its position.
- Select a different widget shape.
- Enable the Attention Grabber.

3. Click Save when you’re done.

Maximize the widget automatically with JavaScript

You can use JavaScript to open the chat widget automatically when your page loads.

Add the following code to your widget script before the closing </script> tag:

Your updated embed code should look similar to this:

To learn more about customizing your widget with JavaScript, see the JavaScript API documentation in our Developer Portal.

Additional considerations

  • After updating your widget settings in tawk.to, the changes are applied automatically. You don't need to generate a new widget code or re-embed it in Google Sites.

  • If the widget doesn't appear, ensure you've copied the complete widget code from the correct tawk.to property and published your latest changes in Google Sites.

Related guides


If you have feedback about this article, or if you need more help:

Was this article helpful?

92 out of 128 liked this article

Still need help? Message Us