# Get started in 4 steps

> Add one script tag, see your first visitor on the live globe, track a goal, and connect payments so every sale is credited to its source.

Section: Get started  
Canonical page: https://statsy.co/docs/getting-started  
Last updated: 2026-09-15

Statsy is web analytics that ties every visit to the money it made. Setting it up is four steps, and the first two take a couple of minutes.

1. Add your websiteSign in, choose **Add a site**, and enter the domain you want to measure. Pick the tracking mode while you are there: *Auto* is cookieless for visitors in the EU, UK and Switzerland and uses a cookie elsewhere; *Cookieless* never sets one. You can change it later.
2. Install the scriptCopy the tag from the install screen and paste it inside `<head>` on every page. It is about 3 KB, loads deferred, and never blocks a paint.html`<script defer data-website-id="ws_XXXXXXXX" data-domain="yourstartup.com" src="https://statsy.co/js/script.js"></script>`The install screen has the exact tag for your site, plus notes for [Next.js](https://statsy.co/docs/install/nextjs), [WordPress](https://statsy.co/docs/install/wordpress), [Shopify](https://statsy.co/docs/install/shopify) and the rest. Open your site once and the screen turns green when the first pageview arrives.
3. Track a goalA goal is anything you want more of: a sign-up page, a button click, a scroll. Page-visit goals need no code: open **Goals**, choose the path, done. For anything else, call `statsy.goal()` from your page. See [Track goals](https://statsy.co/docs/getting-started/goals).
4. Connect paymentsIn **Site settings › Integrations**, connect Stripe, Lemon Squeezy, Paddle, Polar or Razorpay with a webhook. From then on every payment is matched to the visitor who made it, and revenue shows up under the channel, page, campaign and post that brought them. See [Revenue attribution](https://statsy.co/docs/revenue).

> **Tip.** Open **Live** right after installing. The globe shows each visitor as they arrive, which is the quickest way to confirm the script works on every page.

## What to do next

- [Share a dashboard](https://statsy.co/docs/getting-started/share) with your team, investors, or the public.
- [See which post on X sent the traffic](https://statsy.co/docs/features/posts), down to the exact tweet.
- [Get alerted](https://statsy.co/docs/getting-started/alerts) when traffic spikes, a goal fires, or the script goes quiet.

Next: [Install the script](https://statsy.co/docs/getting-started/install)