> ## 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.

# Add an NPS survey to a Shopify store

> Install Usertick in your Shopify theme, start from the NPS template and show the survey to shoppers on your storefront, at most once every 90 days.

You can ask your store's visitors how likely they are to recommend you and read the reason behind each score. When you finish this guide, a two-question NPS survey opens on your Shopify storefront after a shopper has spent a little time on a page, and each shopper sees it at most once every 90 days.

## Before you start

* Any plan works, since website surveys and the NPS template are on every plan and the Free plan includes 1 site.
* Your role has the **Manage sites** permission to add the store, and **Manage surveys** to create and publish the survey.
* You have a Shopify staff account that can edit your theme's code.

## Install Usertick in your theme

1. In Usertick, go to **Settings → Sites**. If your store's domain isn't listed, select **Add site**, enter the **Website address** and select **Add site**.
2. Select the site and select **Copy** on its code.
3. In the Shopify admin, go to **Online Store → Themes**.
4. On your theme, select **…** and then **Edit code**.
5. Open `layout/theme.liquid`, paste the code right before `</head>` and save.
6. Open your store in a browser, then go back to **Settings → Sites**.

The site changes to **Connected** once the widget loads on a page of your store. **Check now** in the **Connection** row looks for the code on the home page right away, which it can't do while the store's password page is on. Surveys don't run on Shopify's checkout pages. See [Install Usertick](https://docs.usertick.com/installation.md?platform=shopify) for the full install page.

## Create the survey from the NPS template

1. On the **Surveys** page, select **Create survey**, then **Templates**.
2. Find **Net Promoter Score (NPS)** and select **Preview**.
3. In the switch at the top of the preview, select **Website**, then select **Use template**.

![The Net Promoter Score (NPS) template preview on Website, with its two questions, Opens in Usertick, the device switch and Use template](https://mintcdn.com/usertick/b7hHAD5bKMN_XhRp/images/surveys-template-preview.png?fit=max\&auto=format\&n=b7hHAD5bKMN_XhRp\&q=85\&s=44f2e12b112b8751cdd9102940822762)

A template preview

The survey asks "How likely are you to recommend us to a friend or colleague?" on a 0 to 10 scale, then "What's the main reason for your score?". You can change the wording in the **Survey** step.

## Choose when it opens and who sees it

In the editor's **Targeting** step:

1. On **Triggers**, change the template's **After a delay** from 3 seconds to 15 seconds, so shoppers see the store before the question.
2. On **Display rules**, under **Where to show**, select **Add rule** under **Excluded pages** and enter **starts with** `/cart`, so the survey never interrupts a purchase.
3. Under **Show frequency**, set **Repeat behavior** to **Every N days**, the **Cooldown duration** to 90 and **After submission** to **Show again after the cooldown**.

![The Display rules tab of the Targeting step: Where to show with an included rule starting with /pricing and no excluded pages, then the Audience rules from Show on devices to Earlier surveys](https://mintcdn.com/usertick/b7hHAD5bKMN_XhRp/images/surveys-display-rules.png?fit=max\&auto=format\&n=b7hHAD5bKMN_XhRp\&q=85\&s=6498105b94829e1c69bdea88e624a3e7)

Targeting → Display rules

## Publish on your store

In the **Publish** step, select your store under **Where it runs**, then select **Publish**. The survey starts showing to visitors within 5 minutes. If Usertick then asks **Send responses to your tools?**, select **Not now**, or see [Get notified when a response arrives](https://docs.usertick.com/guides/notify-new-response.md).

![The Publish step of a live website survey: the Site section with Manage sites, Where it runs set to usertick.com, the status line saying the widget is live there, and the preview beside it](https://mintcdn.com/usertick/b7hHAD5bKMN_XhRp/images/channels-website-publish.png?fit=max\&auto=format\&n=b7hHAD5bKMN_XhRp\&q=85\&s=ff1187dd41a2f940cf73c38c9ec207ed)

The Publish step of a website survey

## Check that it works

1. Wait up to 5 minutes after publishing, then open your store in a private browser window and stay on a page for 15 seconds, after which the survey opens.
2. After you answer it, the response appears in **Inbox** and on the survey's **Results** page.

That window won't show the survey again for 90 days, so open a new private window to test again. If the survey doesn't open, see [Troubleshooting](https://docs.usertick.com/installation/troubleshooting.md).

## Related

* [Install Usertick](https://docs.usertick.com/installation.md?platform=shopify)
* [Templates](https://docs.usertick.com/surveys/templates.md)
* [Triggers](https://docs.usertick.com/surveys/triggers.md)
* [Targeting](https://docs.usertick.com/surveys/targeting.md#how-often)
* [Website surveys](https://docs.usertick.com/channels/website.md)
* [NPS and the other metrics](https://docs.usertick.com/results/metrics.md#nps)


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