# Pirsch Analytics MCP for AI Agents AI Agent Connect

> Pirsch Analytics lets you pull website traffic data and track user events directly through your AI agent. It handles hit tracking, visitor stats, and domain management without the privacy baggage of traditional analytics. Use it to get real-time performance metrics or push custom events like conversions into your workflow.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_C8QzYxqPJFP61i7J66gNhiKsvRknJoIxZ40SFVoz/ai-agent-connect
- **Tags:** web-analytics, privacy-focused, traffic-monitoring, event-tracking, open-source, visitor-stats

## Description

Pirsch Analytics lets you query your website traffic and user behavior without ever leaving your chat window. Instead of jumping between tabs to check how a campaign is performing, you can just ask your agent for the numbers. It works by connecting your analytics data directly to your workflow, making it easy to see what's happening on your site in plain English. You can pull overview stats, check visitor counts, or see exactly where your traffic is originating from. If you're looking for a way to manage your analytics without sacrificing user privacy, this is the right move. You can even have your agent push hits and events in real-time, which is great for automating some of the manual tracking work that usually bogs down marketing teams. Because Vinkius hosts this Connector, you can get it running in your preferred AI client in minutes. It turns your analytics into a conversational tool where you just ask questions and get answers.

## Tools

### list_domains
See all the domains you have configured. Use this to quickly find the right ID for your queries.

### send_event
Send a single custom event to Pirsch. This lets you track specific actions like button clicks.

### send_hit_batch
Send multiple page views at once. Use this to log a series of views in a single request.

### send_hit
Send a single page view with all the metadata. This ensures your agent captures accurate visit data.

### get_statistics_active
Check how many visitors are on your site right now. It gives you a live look at your current traffic.

### get_statistics_events
Pull a list of all your custom events. Use this to see which user actions are most common.

### get_statistics_goals
Get stats on your specific conversion goals. This tells you if your users are taking the desired actions.

### get_statistics_page
Pull detailed statistics for a single page. Use this to see which content is performing best.

### get_statistics_referrer
See where your traffic is coming from. It helps you identify which external sites are linking to you.

### get_statistics_utm_source
Break down your traffic by UTM source. This is the best way to see which marketing campaigns work.

### get_statistics_visitor
Get a breakdown of your unique visitor data. Use this to understand your audience size over time.

### get_statistics_overview
Get the high-level stats for a specific domain. This is useful for a quick pulse check on your site.

### create_domain
Register a new domain in your Pirsch account. You can do this without leaving your AI client.

### send_event_batch
Send a group of custom events in one go. This is great for syncing multiple actions at once.

## Prompt Examples

**Prompt:** 
```
How many people visited my blog last week?
```

**Response:** 
```
I checked your blog stats for the past 7 days. You had **1,420 unique visitors**, with a peak of 85 people visiting at the same time on Tuesday.
```

**Prompt:** 
```
What's the conversion rate for the 'summer_sale' UTM source?
```

**Response:** 
```
For the **'summer_sale'** source, you've seen 340 hits and 42 goal completions. That's a **12.3% conversion rate**.
```

**Prompt:** 
```
List my domains and tell me which one has the most active users.
```

**Response:** 
```
You have 3 domains: example.com, blog.com, and shop.com. Currently, **shop.com** has the most activity with **14 active visitors**.
```

## Capabilities

### Pull overview stats
Get a high-level summary of traffic and visitor data for any domain.

### Track specific page views
Retrieve detailed statistics for individual pages on your site.

### Analyze traffic sources
See where your visitors are coming from using referrer and UTM data.

### Send custom conversion events
Push individual or batch events to track specific user actions like signups.

### Manage your domain list
Create and list your configured domains directly through your agent.

### Check real-time activity
Get current counts of active visitors on your website.

## Use Cases

### Campaign Review
A marketing manager asks for UTM stats for a specific campaign to see the conversion rate. The agent pulls the data and summarizes the win.

### Real-time Monitoring
A dev checks active visitor counts to see if a new deployment is causing a traffic spike. They use get_statistics_active to see the live count.

### Automated Tracking
A script uses send_hit to log page views from a custom internal tool. This ensures every interaction is captured without manual effort.

### Bulk Reporting
An analyst pulls get_statistics_events for the last month to see how many users completed a goal. They get the raw data for a custom report.

## Benefits

- Get instant traffic reports without opening a browser. You can ask for visitor stats or page views directly in your chat.
- Track marketing performance with get_statistics_utm_source. It makes seeing which campaigns work much faster.
- Send custom data points using send_event. You can track specific user actions like signups or purchases.
- Manage your entire domain list with list_domains and create_domain. You don't have to leave your agent to manage your setup.
- Monitor real-time activity with get_statistics_active. It gives you a pulse on your site's current traffic.
- Automate hit tracking with send_hit_batch. This saves you from manual data entry when syncing multiple views.

## How It Works

The bottom line is you get a conversational interface for your privacy-focused web analytics.

1. Grab your Pirsch Access Token from your account settings.
2. Add the token to your Connector client settings.
3. Start asking your agent for traffic reports or sending hits.

## Frequently Asked Questions

**Can Pirsch Analytics track my website traffic for AI agents?**
Yes, it connects your Pirsch data so your AI agent can answer questions about hits, visitors, and page views.

**Is Pirsch Analytics privacy-friendly?**
Yes, it is designed to be privacy-focused, meaning it helps you track behavior without collecting personal identifiers.

**Can I send custom events to Pirsch using this Connector?**
You can use it to send individual events or batches of events like signups or button clicks directly through your agent.

**How do I see which marketing campaigns are working?**
You can ask your agent to pull statistics for specific UTM sources to see which ones drive the most traffic and conversions.

**Can I manage my domains through the AI agent?**
Yes, you can list your existing domains or create new ones without leaving your current workspace.

**Does this Connector support real-time visitor counts?**
It can pull active visitor statistics so you can see how many people are on your site right now.

**How can I get a quick summary of my website's performance for a specific period?**
You can use the `get_statistics_overview` tool. Just provide the Domain ID and the start/end dates (YYYY-MM-DD). The agent will return key metrics like visitors, views, and bounce rate.

**Is it possible to track custom user actions like button clicks?**
Yes! Use the `send_event` tool. You'll need to provide the event name, the current URL, and visitor details (IP and User-Agent) to record the interaction in Pirsch.

**Can I see which pages are the most popular on my site?**
Absolutely. Use the `get_statistics_page` tool with your Domain ID and date range. It will list the top pages along with their respective view counts and visitor data.