> Agents can also search and read this documentation through its [MCP server](https://docs.userhelp.co/~gitbook/mcp).

# Welcome to UserHelp

## Overview

[UserHelp.co](https://www.userhelp.co) is a web-based tool for receiving feedback and bug reports about websites, offering an optimal method for collecting screenshots, session recordings, annotations, and detailed technical meta-data.

## Quick link

{% content-ref url="/pages/tnjCRhWjldzpfzUKLpts" %}
[Our Features](https://docs.userhelp.co/overview/our-features)
{% endcontent-ref %}

{% content-ref url="/pages/3SPxt3OLdgKKZzQLiGBG" %}
[Getting started](https://docs.userhelp.co/getting-started/creating-your-first-project)
{% endcontent-ref %}


# Our Features

## Illustrate bugs and feedback

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FmaVjGbI6HZrYHDGVccOb%2Fimage.png?alt=media&amp;token=d587ef61-d484-4923-a687-0b85ce67999a" alt=""><figcaption><p>Empower precise bug reports and feedback with annotated screenshots and session replays</p></figcaption></figure>

Go beyond text – UserHelp empowers users to illustrate bugs and feedback visually. Capture screenshots and annotate images to provide comprehensive context.

Visual representation ensures **crystal-clear communication between users and developers**, minimizing misunderstandings and accelerating issue resolution.

## Simple implementation

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FjHtD2zbG32BM5a3sDDhM%2Fimage.png?alt=media&amp;token=836bb2e0-649d-413e-8726-0f87a9c78002" alt=""><figcaption><p>Just Copy + Paste into your tag</p></figcaption></figure>

With just a small and lightweight JS snippet, you can embed the power of UserHelp **directly into your website**. This unobtrusive script effortlessly integrates into your existing website codebase, requiring minimal development effort.

## Comprehensive insights

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FKcvNalQCpHyGefOJk1ZQ%2Fimage.png?alt=media&amp;token=12d055b8-d250-4d8c-9885-dc0d4d71be9f" alt=""><figcaption><p>All the info you need to help users debug.</p></figcaption></figure>

UserHelp goes beyond basic bug reporting and feedback collection by providing comprehensive insights into reported issues. Gain a **deeper understanding of user experiences** with detailed information on browser compatibility, recorded user sessions, and error logs.


# Creating your first project

## 1. Creating an account

The first step is to sign up for an account. Available options include signing up through email or with Google.

[Sign up here](https://app.userhelp.co)

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FZQnvm4j9ndF7GJuwvfW8%2FCapture.PNG.png?alt=media&amp;token=50b1b90b-f3f5-45ce-992d-fb74b4c5acaa" alt=""><figcaption><p>Auth screen</p></figcaption></figure>

## 2. Create a project

Then, with your new account, go ahead and create your first project by clicking the “New Project” button on the top left corner

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2F7OtgAZAu9AH8qlq341sM%2FUntitled%20(6).png?alt=media&amp;token=0808a77d-3faf-4bcb-9da2-842cbbb73584" alt=""><figcaption><p>Create a project</p></figcaption></figure>

{% hint style="info" %}
And just like that, you now have a working project. Go to the next guide to see how to customize your feedback button and integrate it into your site.
{% endhint %}


# Customizing Button

In this guide, we’ll have a look through the many options available to fit the feedback button to your brand’s design and aesthetics

## 1. Navigate to your project

On your left side panel, select one of your projects

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FdzVEVFWq7tJQ1aMlqa2n%2Fimage.png?alt=media&amp;token=5162d913-d14c-4542-a94e-c1676349e152" alt=""><figcaption><p>Selecting a project called "My awesome site"</p></figcaption></figure>

## 2. Head over to the “Content” tab

Then, now that you’re on the project’s page, go to the “Content” tab located under the project’s name.

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FSUeCR1gfYBIeU6ElFVRC%2Fimage.png?alt=media&amp;token=16ba4b7a-a5db-4407-8048-02e00743e3a9" alt=""><figcaption><p>"Content" tab</p></figcaption></figure>

## 3. Head over to the “Design” card

The first card you see will be the “Design” card where you can edit options for your button’s design such as the button’s background color, the button’s text color, as well as edit what you want the button to say.

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FyxE1FQvmXSJlPANqsV8Z%2Fimage.png?alt=media&amp;token=3f47e594-2ff0-435d-9019-81f80532ffc3" alt=""><figcaption><p>"Design" card</p></figcaption></figure>

## 4. Preview the button

After making changes to the button’s design, you can also have a preview on how the button looks in the “Preview” card, located underneath the “Design” card on desktop, and at the bottom on mobile.

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FAuxBAZ2OK8c4OADlMZJt%2Fimage.png?alt=media&amp;token=2fcdbd43-25ee-4828-bf28-74552204c170" alt=""><figcaption><p>"Preview" card to preview your button</p></figcaption></figure>

{% hint style="info" %}
Now that you have designed the button to your liking, the next step would be to choose where to place the button on your site
{% endhint %}


# Choosing placement

No site looks the same to another - that’s why we offer customization on where you can place the button on your site

## 1. Head over to the "Placement" card

On the “Content” tab of a project’s page, the “Placement” card is located next to the “Design” card.

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2Frgx6lmEWbmf1eBxhPW6R%2Fimage.png?alt=media&amp;token=39998eed-5d4d-49b1-ae71-7745928e746e" alt=""><figcaption><p>"Placement" card</p></figcaption></figure>

## 2. Choose placement mode

We offer 3 different placement mode depending on your use case.

| Placement mode | Definition                                                                                                            |
| -------------- | --------------------------------------------------------------------------------------------------------------------- |
| Automatic      | Place your feedback button at pre-defined positions of your site (ex: bottom right, bottom left, top right, top left) |
| Manual         | You can decide where to render the button. Refer to the “Manual” placement guide below for further information.       |
| Hidden         | The button will not be visible. However, the function will still be operational.                                      |

## 3. Edit placement settings

### 3.A - Automatic placement

Select a position for your button from our list, and we’ll take care of the rest.

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FUogvMV5vXsUxjLoY8oVU%2Fimage.png?alt=media&amp;token=f0b147c7-9250-4fd8-8403-cd29f1b78c21" alt=""><figcaption><p>Automatic placement</p></figcaption></figure>

### 3.B - Manual placement

When you select “Manual” placement, you will get the option to define on where to place your button. When using this option, the button will render inside the HTML element with the ID of what you written in the “*Container’s ID*” input.

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FTbcm1BjpuWAkJUVA2q8A%2Fimage.png?alt=media&amp;token=50830f34-df5b-4df0-8cb8-594ea6904ddf" alt=""><figcaption><p>Manual placement</p></figcaption></figure>

In this example, when the page loads, the feedback button will be rendered inside the HTML element with the ID “<mark style="color:blue;">**feedbackButtonWrapper**</mark>”. We recommend to go with `div` as the wrapper element.

### 3.C - Hidden placement

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2F6bJj6HQc9BBGCIANJ2rk%2Fimage.png?alt=media&amp;token=9dc46899-fdab-40e7-8516-8a617d67f4c4" alt=""><figcaption><p>Hidden placement</p></figcaption></figure>

Under this mode, the button will not be visible. This option is for users who wish to create their own feedback button. In this scenario, you can activate the button’s functionality by calling this public method "openUserHelpButton" from the windows interface. Below is a sample code using Javascript:

```javascript
if(window.isUserHelpReady == true) {
    window.openUserHelpButton()
}
```

{% hint style="success" %}
After selecting your preferred placement, you are one step closing in adding the feedback button into your site. Refer to the next guide on how to do so.
{% endhint %}


# Add button to site

This is the final step of the “Getting started” guide, on where you’ll learn how to add the feedback button on to your live site

## 1. Go to the “Implementation” card

The “Implementation” card is located next to “Design” card on the “Content” tab.

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2FiFyO5GuDXqyzCWb5e752%2Fimage.png?alt=media&amp;token=c0ad2656-02fb-494d-92aa-0d3353fe3dd7" alt=""><figcaption><p>"Implementation" card</p></figcaption></figure>

## 2. Copy the placement code

The code is a lightweight Javascript snippet used to render the button inside your HTML DOM and send data from the button to our servers. The total size is 9kb, and the code is completely public. You can view the source code [here](https://github.com/jyant-labs/userhelp-public).

## 3. Place the code inside your website’s `<head>`tag

Depending on how your site was built, the `<head>` HTML tag could be at different places. For most website builders, you can add our code snippet at the “Custom code” section. Below is an example of adding the code in Webflow:

<figure><img src="https://318042386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNObIMtbqqV5r1oc0cmU%2Fuploads%2Fw1EZlmlLXVo5KTbjnaEO%2Fimage.png?alt=media&amp;token=2e620010-0ef7-498e-8f41-4a1c408056d3" alt=""><figcaption><p>Example with Webflow</p></figcaption></figure>

{% hint style="info" %}
And just like that, you’re all set for getting responses and improving your customer experience. This is the end of the “Getting started” guide.
{% endhint %}


# Make changes dynamically

{% hint style="info" %}
Sometimes, you might want to collect your feedback and bug reports from different sources/websites into one project. More often than not, the layout and design of each source is different, so in this guide, you will learn how to customize the same button for different sites.
{% endhint %}

## 1. Select the properties you want to change&#x20;

UserHelp offer a selected amount of properties for each button that you can change. The properties are listed below:

<table><thead><tr><th width="282">Property</th><th width="219">Definition</th><th>Data type</th></tr></thead><tbody><tr><td>UserHelpButtonColor</td><td>The color of the button</td><td>any <code>Hex color code</code></td></tr><tr><td>UserHelpButtonText</td><td>The text content inside the button</td><td>any <code>String</code></td></tr><tr><td>UserHelpButtonColor</td><td>The color of the text content inside the button</td><td>any <code>Hex color code</code></td></tr><tr><td>UserHelpPlacementMode</td><td>How the button is placed</td><td><code>"automatic"</code> or <code>"manual"</code></td></tr><tr><td>UserHelpAutomaticPosition</td><td>Defines the position of the button if placement mode is set to "automatic"</td><td><p><code>"bottomRight"</code>, <code>"bottomLeft"</code>, <code>middleRight</code>, <code>middleLeft</code></p><p><code>"topRight"</code> or <code>"topLeft"</code></p></td></tr><tr><td>UserHelpManualContainerID</td><td>Defines the wrapper container's ID of the button if placement mode is set to "manual"</td><td>any <code>String</code></td></tr><tr><td>UserHelpDarkMode</td><td>Whether to render the feedback form in dark mode</td><td><code>true</code> or <code>false</code></td></tr><tr><td>UserHelpLanguage</td><td>The language used in the feedback form</td><td><code>"en"</code> (English), <code>"fr"</code> (French),<code>"es"</code> (Spanish), <code>"ar"</code> (Arabic), <code>"hi-IN"</code> (Hindi), <code>"zh-Hans-CN"</code> (Simplified Chinese)</td></tr></tbody></table>

## 2. Make your edits

After that, simply add each property that you want to change into the button by adding a new line after the `UserHelpPublicProjectID` property. Below is an example of altering a button's background color to black (i.e. #000000) even when the default button's color is something else.

<pre class="language-html" data-overflow="wrap"><code class="lang-html">&#x3C;script>
    window.UserHelpPublicProjectID="6WVGQOqqz"
    window.<a data-footnote-ref href="#user-content-fn-1">UserHelpButtonColor="#000000"</a>
&#x3C;/script>
&#x3C;script src="https://run.userhelp.co" async>&#x3C;/script>
</code></pre>

[^1]: newly added line


# Pre-fill name and email address

{% hint style="info" %}
In certain sites, you as the website owner would already have access to the user's information such as name and email address. With this guide, you can speed up the reporting process by pre-filling the name and email address fields in the report page.
{% endhint %}

## 1. Wait for the button to load

There are many ways to check if an element has loaded, but the easiest way to do so would be to check for our global variable `isUserHelpReady`. Below is an example of how you can do so with Javascript:

```javascript
if(window.isUserHelpReady == true) {
    //get your user data here
}
```

## 2. Send the user data to the button

After checking to see if the button has loaded, you can then the user data by running these two global functions through the `window` interface:

| Function                      | Definition                                          |
| ----------------------------- | --------------------------------------------------- |
| window\.UserHelpSetName(name) | Pre-fill the name field with the parameter `name`   |
| window\.UserHelpSetName(name) | Pre-fill the email field with the parameter `email` |

Below is an example using Javascript:

```javascript
if(window.isUserHelpReady == true) {
    const userData = {
        name:"Bob",
        email:"bob@example.com"
    }
    
    window.UserHelpSetName(userData.name)
    window.UserHelpSetEmail(userData.email)
}
```


