
Language 🇺🇸 English
Method 1: Embed Code
Method 2: Embed by URL
Troubleshooting
Configuration
Add Live Commenting to Google Sites
This guide adds the FastComments live commenting widget to pages of a site built with Google Sites.
Google Sites does not provide a comment feature for site visitors. Content from other services is added with Insert > Embed, which accepts either a URL or HTML and JavaScript code. This guide covers both: Method 1 places the FastComments widget code in an embed code block, and Method 2 embeds a conversation page hosted by FastComments by its URL.
This tutorial requires a FastComments account. You can create an account here.
Step 1: Add an Embed Code Block 
- On a computer, open the site in Google Sites and go to the page that should have comments.
- In the panel on the right, click Insert > Embed.
- Click Embed code.
Step 2: Add the FastComments Code 
Paste the following code into the embed code box, then click Next and Insert.
Run 
Change the two highlighted values for each page:
urlIdidentifies the comment thread. Use a different value on each page, for example'about-page'or'contact-page'. Pages that use the sameurlIdshow the same thread.urlis the published address of the page. It is used for links to the page, for example in notification emails.
Google Sites runs embed code in a separate frame served from a Google domain, not on the page address of your site. Without urlId, the widget uses the address of that frame, which changes between page loads, so the thread would not be found again. Set urlId in every embed.
Step 3: Resize and Publish 
The height of the embed is set in the Sites editor. Resize the embed so it is tall enough for the comment thread. With the embed selected, the keyboard shortcut Alt + Right or Left arrow also resizes it.
To publish the change, click Publish at the top right.
Open the published page to confirm that the comment widget loads.
Embed a Conversation by URL 
FastComments can host a conversation page for a thread. Embedding that page by its URL requires no code.
- Create a conversation to embed. You must be signed in to FastComments. Give the conversation a name, and FastComments shows the conversation URL.
- Open the site in Google Sites and go to the page that should have comments.
- In the panel on the right, click Insert > Embed.
- Enter the conversation URL from step 1 and click Insert.
- Resize the embed so it is tall enough for the comment thread.
- Click Publish at the top right.
Each conversation is a separate thread. Create one conversation for each page that needs its own comments.
Domain Errors 
Google Sites loads embeds from Google domains such as gstatic.com and googleusercontent.com, not from the address of your site. FastComments accepts these domains for Google Sites embeds, so they do not need to be added on the domain configuration page.
Embed code that does not set urlId can be rejected with the following message:
To embed FastComments in Google Sites, create an Embed URL here.
Add urlId and url to the code as shown in Step 2 of Method 1, or use Method 2 and embed a conversation URL.
Customization 
Styling and configuration options for the widget are described in the Customization Documentation.
With Method 1, configuration options are added to the object in the embed code, next to urlId and url. Publish the site again after changing the code.
With Method 2, the conversation page uses the rules created on the widget customization page.