Browse help topics

Install the widget

Add one line of code to your staging site so clients can leave comments.

Coohoo is a small comment toolbar for your staging site, the private test copy of your website. You add one line of code, called a snippet, and the toolbar appears.

Before you start

  • A staging site you can edit, or a Webflow site.
  • An email address or a Google account to sign in with.

Steps

  1. Go to coohoo.app and sign in. Use a magic link sent to your email, or Google.

  2. Click New project, top right. A dialog opens.

  3. Type a name for the project and your staging address.

  4. If you can, also type your production domain. This is your live site, and it keeps the widget off it.

  5. Click Create. The dialog now shows your snippet.

  6. Click Copy. The snippet looks like this:

    <script src="https://cdn.coohoo.app/widget/v1.js" data-project="YOUR_KEY"></script>
    

    Do not retype it. Your copy has your own key and may include extra attributes.

  7. Paste it into your staging site's code, right before the closing </body> tag.

  8. Open your staging site. You should now see the Coohoo toolbar at the bottom of the page.

Webflow

  1. In Webflow, open Site settings, then Custom code.
  2. Paste the snippet into Footer code.
  3. Publish the site. The toolbar now shows on your staging domain.

Name the source file (optional)

This step is for whoever writes the code. Add data-source="path/to/Component.tsx" to a root element. Comments left inside that element can then name the file. Your coding agent finds the right place faster.

If something looks wrong

  • No toolbar on your live site? That is on purpose. The widget never shows on the production domain you set.
  • No toolbar on staging? Check the address against Where the widget shows up. On an unusual host, add ?review=1 to the address once.
  • Still nothing? Copy the snippet again from the dashboard. A retyped snippet can carry the wrong key.

Tip: The widget never shows on the production domain you set, so you can leave the snippet in place without worrying about real visitors.

See also