# Enable PageFly Analytics

Getting started with PageFly Analytics takes less than a minute. No external accounts, no code, no technical setup.

***

## How to enable

### Step 1: Open Analytics

1. In PageFly, click **Analytics** in the left sidebar
2. You'll see a demo dashboard with sample data and a banner at the top

### Step 2: Click "Enable Analytics"

1. Click the **Enable Analytics** button on the banner or in the PageFly Analytics connection box
2. A Shopify popup appears asking you to approve tracking permissions
3. Click **Approve** to grant PageFly access to track visitor behavior on your storefront
4. PageFly automatically installs the tracking pixel — a success toast confirms it's active

**That's it.** Data starts flowing within minutes. Your first meaningful insights will appear after a few hours of traffic.

***

## What happens when you enable

* Shopify grants PageFly two permissions: `write_pixels` (install tracking) and `read_customer_events` (receive visitor data)
* PageFly installs a lightweight tracking pixel on your storefront via Shopify's built-in web pixel system
* The pixel tracks visitor actions (page views, clicks, add-to-cart, purchases) on your PageFly pages only
* Data is stored securely on PageFly's servers — not shared with third parties
* **No impact on store speed** — the tracking runs inside Shopify's sandboxed environment

***

## When will I see data?

| Timeframe       | What to expect                                      |
| --------------- | --------------------------------------------------- |
| **Immediately** | Tracking is active on your storefront               |
| **1-2 hours**   | First pageviews and sessions appear                 |
| **24 hours**    | Enough data for basic metric cards                  |
| **7+ days**     | Meaningful trends, comparison data, and AI insights |

**Tip:** Visit your own store in an incognito browser after enabling. Check your Analytics dashboard after a few minutes — you should see at least 1 session.

***

## Requirements

* A **paid PageFly plan** (Free plan users see a demo dashboard)
* At least one **published** PageFly page (draft pages are not tracked)

***

## How to disable

If you want to stop tracking:

1. Go to the **Analytics** dashboard
2. Click the **menu icon** (three dots) next to "PageFly Analytics — Active"
3. Select **Disable tracking**
4. Confirm in the dialog — tracking stops on the next storefront page load

Your existing data is preserved — you can re-enable at any time by clicking **Enable Analytics** again.

You can also manage tracking permissions in **Preferences > Data & Privacy > Scope Settings**.

***

## Already using Google Analytics 4?

PageFly Analytics works independently from GA4. You can use both at the same time, or switch entirely to PageFly Analytics.

If you previously connected GA4, your GA4 connection remains active unless you disconnect it. See [Connect Google Analytics 4 (Legacy)](/page-structure-and-elements/analytics/page-analytics/connect-google-analytics-4-ga4.md) for details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.pagefly.io/page-structure-and-elements/analytics/page-analytics/enable-pagefly-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
