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

# WordPress

> Integrate Siteline with WordPress

Install the [Siteline Agent Analytics](https://wordpress.org/plugins/siteline-agent-analytics/) plugin to track AI bot visits on your WordPress site. No code required — the plugin runs in fire-and-forget mode inside WordPress hooks, so there is zero impact on page load times.

## Prerequisites

* A [Siteline website key](https://docs.sightlineanalytics.io/authorization.md)
* Administrator access to your WordPress site
* Ability to install plugins on your WordPress installation

## Setup

**1. Open the Plugins panel**

Navigate to your WordPress admin panel at `https://yoursite.com/wp-admin` and click **Plugins** in the left sidebar.

**2. Search and install**

Search for [Siteline Agent Analytics](https://wordpress.org/plugins/siteline-agent-analytics/) in the Plugins search bar, then click **Install Now**.

**3. Activate**

Back in the Plugins list, click **Activate** under the Siteline Agent Analytics plugin.

**4. Configure**

Go to **Settings** > **Siteline** in the left sidebar and configure:

* **Enable Tracking**: Leave checked (uncheck to pause tracking)
* **Website ID**: Paste your Siteline website key from [sightlineanalytics.io](https://sightlineanalytics.io)

Click **Save Changes** to apply.

**5. Enable auto-updates (recommended)**

On the Plugins page, enable auto-updates for Siteline to stay up to date automatically.

## How it works

The plugin hooks into WordPress request processing:

1. A visitor (or AI bot) makes a request to your WordPress site
2. The plugin detects the request and extracts bot-relevant metadata (URL, user agent, IP, referrer)
3. Tracking data is sent to Siteline asynchronously in a fire-and-forget pattern
4. The page response is returned to the visitor unmodified

Errors are silently caught and discarded — the plugin never interferes with your site's normal operation.

## Plugin settings

**Enable Tracking** `boolean` *required*

Toggle AI bot tracking on or off. Checked by default.

**Website ID** `string` *required*

Your Siteline website key. Found under **Agent Analytics** > **Manage Configuration** in your Siteline workspace.

## Troubleshooting

> [accordion] Plugin not tracking visits
>
> Verify that **Enable Tracking** is checked in **Settings** > **Siteline** and that your Website ID is entered correctly.

> [accordion] Where do I find my Website ID?
>
> Navigate to **Agent Analytics** in your Siteline workspace and click **Manage Configuration** to view or regenerate your website key, then paste it into the plugin's **Website ID** field.

> [accordion] How do I update the plugin?
>
> If auto-updates are enabled, the plugin updates automatically. Otherwise, go to **Plugins**, find Siteline, and click **Update Now** when available.

> [accordion] Will the plugin slow down my site?
>
> No. The plugin sends tracking data asynchronously and never blocks page rendering. All errors are silently caught.

> [!TIP]
>
> **Need help?** [Book a setup call](https://cal.com/team/siteline/tech-set-up) and we'll walk you through it.


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