Skip to content

How to use

prog-it edited this page Jul 16, 2017 · 4 revisions

Introduction

There is a common question among Google Sites users: How can I add Disqus comments to my site, based on Google Sites?

Disqus provides "Out of the box" solutions for some blog platforms and services, but not for Google Sites.

Here is the simple solution.

Google Sites + Disqus

  1. Register your site at Disqus to get a short name: https://disqus.com/admin/signup (learn here what is it).
  2. Open for editing your Google Sites page, that you want to add Disqus comments to, and place cursor where you want to see comments.
  3. In the upper-left coner choose menu Insert -> More gadgets....
  4. In the shown dialog choose Add gadget by URL and paste this URL: https://cdn.rawgit.com/prog-it/google-sites-disqus/d5a10aeb/disqus-gadget.xml (or download this file and host it somewhere by yourself).
  5. A dialog with gadget parameters will open. Fill in: Disqus shortname (required), Discus URL (strongly recommended), Discus identifier (strongly recommended), Disqus title (optional).
  6. Now you can preview or finish inserting gadget.

Warning:

As soon as you preview the Disqus gadget, a new discussion will be created at the Disqus, as if the gadget were shown on your site page with the selected parameters.

Where can I get parameters?

Short name (required) - ID of your site, you get it during registration of your site in Disqus admin panel.

Disqus url (strongly recommended) - URL of page discussion thread is assigned to - for example, you will be redirected to this URL from e-mail notification about new message in discussion. If empty, than it will be filled with URL of page, on witch discussion is displayed first time. For example, if it's empty, when you preview gadget while editing page, it can be filled with trash.

Disqus identifier (strongly recommended) - Disqus ID defines discussion thread. To have different comment threads on different pages you should assign different IDs. Just invent a new string ID for new discussion, for example page1, page2, super-page123 etc. If discussion with a certain ID doesn't exist, it will be created on first try to display it. If you assign an existing ID, an existing discussion will be loaded, even if it's assigned to another URL. Remember, that empty Disqus ID is a valid ID, thus, loading discussions with empty ID on different pages you will see the same discussion thread.

Disqus title (recommended) - title, that will be assigned to discussion thread on creation, if it doesn't exist yet. If you leave it empty, the page title will be used.

Compatibility

Verified compatibility for these browsers (others should work too):

  • Google Chrome 58
  • Internet Explorer 11
  • FireFox 53
  • Android Browser

Читать эту инструкцию на русском (read this manual in Russian)

Clone this wiki locally