> ## Documentation Index
> Fetch the complete documentation index at: https://help.mentionpilot.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect WordPress

> Track AI crawlers on your WordPress site with the MentionPilot plugin

***

The MentionPilot plugin watches requests to your WordPress site and reports visits from AI crawlers to your dashboard.

It takes about two minutes to set up.

***

## What you need

* A WordPress site you're an **administrator** on
* Access to your MentionPilot dashboard

***

## Step 1: Download the plugin

1. In MentionPilot, open **AI Crawler**.
2. Choose **WordPress** from the **Platform** dropdown.
3. Click **Download Plugin**.

You'll get a file called `mentionpilot-connector.zip`. Don't unzip it.

***

## Step 2: Install and activate it

1. In your WordPress admin, go to **Plugins → Add New → Upload Plugin**.
2. Choose `mentionpilot-connector.zip` and click **Install Now**.
3. Click **Activate**.

A new **MentionPilot** item appears in your WordPress sidebar.

***

## Step 3: Connect your site

1. Back in MentionPilot, click **Generate connection code**.
2. Click the copy button next to **Your connection code**. It looks like `mp-wp-XXXX-XXXX-XXXX`.
3. In WordPress, open **MentionPilot** from the sidebar.
4. Paste the code into **Connection Code** and click **Connect**.

You'll see **Connected to MentionPilot!** in WordPress.

MentionPilot detects the connection automatically and shows **Your WordPress site is connected**.

> [card] Important
>
> A connection code works **once** and expires after **15 minutes**. If yours has expired, click **Generate new code** and try again.

***

## How the plugin works

***

### What it checks

The plugin checks the visitor's user agent on front-end requests: posts, pages, feeds, archives, sitemaps, and `robots.txt`.

It only reports a request when the visitor is a known AI crawler. Normal visitors and regular search engines are never reported.

It never runs on admin, AJAX, REST API, or cron requests.

***

### What it sends

For each AI crawler visit, the plugin sends the crawler name, the URL, the status code, and the time.

> [card] Privacy
>
> No post or page content, visitor personal data, or form submissions are ever sent. The plugin sets no cookies.

***

### Performance

Reports are sent in the background. A slow or unreachable MentionPilot server never slows down your pages.

If a report fails to send, the plugin queues it and retries up to 3 times.

***

### Health checks

While connected, the plugin checks in with MentionPilot every 15 minutes.

* In MentionPilot, open **AI Crawler → Settings → Plugin** to see **Plugin active** and when it last reported.
* In WordPress, you'll see a warning if the site hasn't checked in for over an hour.

***

## What the plugin can't see

The plugin only sees requests that reach WordPress.

Requests served entirely by a page cache or a CDN, and static files your web server serves directly, won't be recorded.

> [!NOTE]
>
> WordPress runs its scheduled tasks when your site gets traffic. On a very quiet site, health checks and retries may run less often.

***

## Troubleshooting

> [accordion] This connection code has expired
>
> Codes last 15 minutes. Click **Generate new code** in MentionPilot and paste the new one.

> [accordion] Invalid or already-used connection code
>
> Each code can be used once. Generate a new code and make sure you copy all of it.

> [accordion] Could not connect to MentionPilot
>
> Your server couldn't reach MentionPilot. Check that your host allows outgoing connections, then try again.

> [accordion] Connected, but no data is showing
>
> Data appears once an AI crawler visits your site, which can take a while on a new or quiet site. Also check that the page cache isn't serving every request without running WordPress.

> [accordion] The Status codes section is empty
>
> Status codes are reported by newer versions of the plugin. Download the plugin again from **Settings → Plugin** and update it on your site.

***

## Disconnecting

You can disconnect from either side.

* **From WordPress:** open **MentionPilot** in your WordPress sidebar and click **Disconnect**.
* **From MentionPilot:** open **AI Crawler → Settings** and click **Disconnect**.

Data you've already collected isn't deleted.

> [card] Tip
>
> Disconnect from **WordPress** first if you can. That clears the connection on both sides, so you can reconnect later with a new code.

**Deactivating** the plugin pauses reporting but keeps the connection. Reactivate it to pick up where you left off.

**Deleting** the plugin removes it from your site, but doesn't disconnect it in MentionPilot. Click **Disconnect** before you delete it.

***

> [card] [Next → Connect Vercel](https://help.mentionpilot.ai/ai-crawler/vercel.md)
>
> Track AI crawlers on a site hosted on Vercel.


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