> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usertick.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Usertick runs surveys on websites, by link, by QR code and by email, and collects every response in one inbox with reports, dashboards and workflows. The REST API lives at https://app.usertick.com/api/public/v1 and uses Bearer API keys or OAuth access tokens; the JavaScript SDK is the @usertick/snippet package on npm.

# Ask whether each docs page helped

> Show “Was this page helpful?” at the end of every page of your Mintlify, Docusaurus or other documentation, and find the pages readers struggle with.

At the end of each page of your documentation, readers answer whether the page helped, and the readers who say no tell you what was missing. When you finish this guide, the question sits under every docs page, asks again on each new page until the reader answers there, and every answer keeps the address of the page it came from.

## Before you start

* Your role has the **Manage surveys** permission.
* Your documentation lets you add a script. Mintlify and Docusaurus do, as most docs tools do.

## Add Usertick to your docs

Open [Install Usertick](https://docs.usertick.com/installation.md) and select **Mintlify** or **Docusaurus** in the menu at the top for their steps. For another tool, follow the **HTML** steps or the tool's own instructions for adding a script.

When your docs run on a subdomain of a site you already added, such as docs.example.com for example.com, the same install code works there, so you don't add another site.

## Create the survey

1. On the **Surveys** page, select **Create survey**, then **Templates**.
2. Select **Help article feedback**. It asks **Was this article helpful?**, then what could be better, which format helps more and what the reader was trying to do, and every question after the first is optional.

The survey starts embedded in the page and set to ask until the reader answers on each page.

## Place it at the end of each page

In **Survey → Appearance**, **Display type** is already set to **Embedded**:

1. Enter the **Element** the survey goes next to. On Mintlify, enter `#pagination`, and on Docusaurus, enter `.pagination-nav`: both are the links to the previous and next page at the end of each page. On another tool, use the element that ends the article.
2. Set **Position** to **Before**, so the survey sits above those links.

## Show it only on your docs

On **Targeting → Display rules**, under **Where to show**:

* When your docs are on their own subdomain, set **Match against** to **Domain and path** and add an included page that starts with `docs.example.com`.
* When your docs are a folder of your site, keep **Path** and add an included page that starts with `/docs`.

Keep **Repeat behavior** at **Until answered on each page**. A reader who answers on one page still sees the question on the next one, and a page the reader already answered doesn't ask again.

## Publish

In the **Publish** step, select the site under **Where it runs**, then select **Publish**. Readers see the change within 5 minutes.

## Check that it works

Open a page of your docs in a private window, answer the question, and then open another page, where the question shows again. Each response shows the address of its page, and the survey's **Audience** tab ranks the pages under **Top pages**. See [Overview](https://docs.usertick.com/results/overview.md).

## Load nothing before a reader taps

The install code stores a few values in the reader's browser as soon as a page loads (see [Cookies and consent](https://docs.usertick.com/installation/cookies-and-consent.md)). When your docs can't ask for consent first, draw your own Yes and No buttons at the end of each page and load Usertick only when a reader taps one:

1. Set the survey's **Display type** to **Popup**, and on **Triggers**, replace its condition with **Custom event** and an event name your pages never send, so the survey opens only from your buttons.
2. In the tap handler, add the install code, and when it loads, call [`Usertick.start`](https://docs.usertick.com/developers/sdk/reference#start) with the tapped answer and the element to show the survey in.

The survey records the tapped answer as its first answer and opens at the next question, in the element you named.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.