# Store Analytics

> See how shoppers find your store, what they look at, and how many buy, watch the store live, and connect ad pixels with a cookie banner.

Store analytics show how shoppers find your store, what they look at, and how many of them buy. Your store collects this by itself: there's nothing to install.

Open **Commerce → Analytics**. Use the **Site** picker at the top of the workspace to see one store, or **All sites** together.

## Overview

The **Overview** tab covers a date range. Pick **Today**, **Yesterday**, **Last 7 days**, **Last 30 days** (the default), **Last 90 days**, or **Custom dates**. Days follow your workspace's time zone.

| Figure | What it counts |
|---|---|
| **Sessions** | Visits to the store. A session ends after 30 minutes without activity. |
| **Conversion rate** | Sessions that placed an order |
| **Total sales** | Store orders, canceled orders excluded |
| **Orders** | Store orders placed in the dates |
| **Average order value** | Total sales divided by orders |

Below the figures:

- **Sales and sessions by day**: a chart of both, day by day.
- **Conversion funnel**: how many sessions reached each step: **Sessions**, **Viewed a product**, **Added to cart**, **Reached checkout**, and **Placed an order**, with the drop-off between steps.
- **Top products**: best sellers in the dates, with views, orders, units, and sales for each.
- **Traffic sources**: where sessions came from. Workstation reads the link's UTM tags first (for example `instagram / social · summer-sale`), then the site that sent the shopper (for example `google.com`), otherwise **Direct**. Each source shows its sessions, orders, and conversion.

> **Tip**
>
> Add UTM tags to the links in your ads, emails, and bios, such as `?utm_source=instagram&utm_medium=social&utm_campaign=summer-sale`. Traffic sources then show which campaign brought each sale.

## Live View

The **Live View** tab shows what's happening on the store right now. It refreshes every 10 seconds while the tab is open.

| Figure | Meaning |
|---|---|
| **Visitors right now** | Shoppers active in the last 5 minutes |
| **Active carts** | Carts with items added and no order yet, in the last 30 minutes |
| **Checking out** | Shoppers on the checkout page now |
| **Orders, last 30 minutes** | Store orders placed in the last half hour |

It also lists **Pages being viewed**, **Visitors by location**, **Today's orders**, and the **Active carts** themselves.

## What gets counted

The live store records these shopper steps: viewing a page, a product, or a collection, searching, adding to or removing from the cart, starting checkout, and entering contact, delivery, and payment details. Events never carry the shopper's name, email, phone, or address.

A few rules keep the numbers honest:

- **Placed an order** is recorded by Workstation once per order, when the order is confirmed: the shopper chose cash on delivery or bank transfer, or the card payment arrived. A card checkout the shopper never paid doesn't count.
- Only the live store is counted. Visits to share-preview links, password-protected stores, and the builder are not.
- A signed-in shopper's visits are linked to their [contact](https://workstation.repzo.com/docs/sales/contacts). When a shopper places an order, their visits from the last 30 days are linked too, if they were counted with cookies.

## Cookies and consent

How visits are counted depends on whether the store shows a cookie banner:

- **No cookie banner**: the store keeps two first-party cookies, a visitor ID (1 year) and a session ID (30 minutes idle).
- **With the cookie banner**: nothing is stored in the shopper's browser until they click **Accept all**. Until then, visits are still counted without cookies, using a daily anonymous code made from the store, the shopper's network address, and their browser. The raw address is never stored, and the code changes every day, so no one is followed from day to day. Shoppers who click **Essential only** are counted the same way.

The banner shows automatically whenever an ad pixel is on. You can also switch it on without any pixels.

## Ad pixels

Connect your ad accounts' pixels so your ad campaigns can measure visits and purchases from the store.

1. Open **Commerce → Settings → Pixels**. Each store has its own card.
2. Switch on a pixel and enter its ID:

   | Pixel | ID | Example |
   |---|---|---|
   | **Meta Pixel** (Facebook and Instagram ads) | Pixel ID | `123456789012345` |
   | **Google Analytics 4** | Measurement ID | `G-ABC123XYZ9` |
   | **Google Ads** | Conversion ID, plus an optional **Purchase conversion label** | `AW-123456789` |
   | **TikTok Pixel** | Pixel ID | `C4ABCDEFGHIJ1234KLMN` |
   | **Snap Pixel** | Pixel ID | `1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d` |

3. Optionally switch on **Cookie banner** to ask every visitor before keeping analytics cookies, even with no pixels.
4. Click **Save**. Your live store uses the change within a minute.

Pixels load only on your live store, and only after the shopper clicks **Accept all** on the cookie banner. Workstation then sends them the standard shopping events: page and product views, add to cart, checkout, and purchase. The purchase carries the order's value, currency, and order number, so the ad network doesn't count it twice.

For Google Ads, the **Purchase conversion label** is the part after the "/" in your purchase conversion's tag. Without it, Google Ads gets visits only.

Changing pixels needs the `commerce.manage` permission.

> **Note**
>
> Pixels send events from the shopper's browser. Sending purchases from Workstation's servers (such as the Meta Conversions API) isn't available yet.

> **From the CLI**
>
> Pixels and the cookie banner can also be set from the CLI with `repzo store pixels get|set`. This requires the next CLI release. See [Build a store from the CLI](https://workstation.repzo.com/docs/developers/online-store/cli#store-settings).

## Related pages

- [Online Store overview](https://workstation.repzo.com/docs/online-store)
- [Abandoned Checkouts](https://workstation.repzo.com/docs/online-store/abandoned-checkouts)
- [Marketing](https://workstation.repzo.com/docs/online-store/marketing)
- [Ads](https://workstation.repzo.com/docs/marketing/ads)
- [Orders](https://workstation.repzo.com/docs/commerce/orders)
