> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-management/marketing/referral-program/referral-tracker/introduction.md

## Article Content:

# About the Referral Tracker API

The Referral Tracker API allows you to monitor and analyze referral events in a site's referral program.

With the Referral Tracker API, you can:

+ [Get a referral event](https://dev.wix.com/docs/rest/business-management/marketing/referral-program/referral-tracker/get-referral-event.md) to retrieve details about a specific referral event.
+ [Query referral events](https://dev.wix.com/docs/rest/business-management/marketing/referral-program/referral-tracker/query-referral-event.md) to filter and retrieve multiple referral events.
+ [Get referral statistics](https://dev.wix.com/docs/rest/business-management/marketing/referral-program/referral-tracker/get-referral-statistics.md) to obtain overall metrics about a referral program.

For more information about managing loyalty programs, see the [Loyalty API](https://dev.wix.com/docs/rest/crm/loyalty-program/introduction.md). To learn more about referral programs, see [Managing Your Referral Program](https://support.wix.com/en/article/wix-loyalty-program-managing-your-loyalty-program).

## Before you begin

It's important to note the following points before starting to code:

- To use the Referral Tracker API, a site needs to have the Wix Loyalty Program app installed.
- The Referral Tracker API requires a Business or higher plan for Wix Editor, or a Plus or higher plan for Wix Studio.
- A site must have at least one of these apps installed: Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans, or Wix Restaurants Orders.

## Terminology

- **Referral event**: A record of an action related to a referral program, such as a signup or a successful referral.
- **Referring customer**: A site member who shares a referral URL with potential new customers.
- **Referred friend**: A person who signs up or takes an action on your site after being referred by a referring customer.
- **Referral statistics**: Overall metrics about a referral program's performance.
- **Referral reward**: A benefit given to either the referring customer or the referred friend for participating in a referral program.
- **Trigger**: The specific action that initiates a referral event, such as a signup or a purchase.
- **Reward type**: The type of benefit given for a successful referral, which can be a coupon, loyalty points, or no reward.

