Pirsch Analytics MCP by usefulapi
v1.28.0Read Pirsch web analytics: visitors, pages, referrers, UTM, events, funnels and sessions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pirsch_list_domains List domains (dashboards)
List the Pirsch dashboards (domains) the OAuth client can read: id, hostname, display name, time zone and role. Use the id as domain_id in every other tool. A dashboard-level client sees one domain; an account-level client sees all. GET /api/v1/domain.
| Parameter | Type | Description |
|---|---|---|
search | string | Only domains whose hostname contains this text. |
pirsch_get_domain Get domain
One Pirsch dashboard (domain) by id, with its time zone, hostname, role and subscription state. GET /api/v1/domain?id=.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
pirsch_get_overview Get overview
Quick overview of a dashboard: visitors, views, growth compared with the previous period, a visitors time series and the number of team members. Cached by Pirsch; takes no date range or filters. GET /api/v1/statistics/overview.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
pirsch_get_totals Get total visitors
Totals for a period: visitors, views, sessions, bounces, bounce rate and conversion rate. Not grouped by day, so returning visitors are counted once. GET /api/v1/statistics/total. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_get_visitors_time_series Get visitors time series
Visitors, views, sessions, bounces and bounce rate per day, week, month or year (see scale). Use it for traffic charts and trends. GET /api/v1/statistics/visitor. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
scale | string | Group results by day (default), week, month or year. |
screen_class | string | Screen class XXL, XL, L, M or S. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_get_growth Get growth rates
Growth of visitors, views, sessions, bounces, time spent and conversion rate compared with the previous period of the same length. GET /api/v1/statistics/growth. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_get_active_visitors Get active visitors
Visitors on the site right now (or in the past n seconds), with the pages they are on and their countries. GET /api/v1/statistics/active.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
start | integer | Look back this many seconds, 1-3600 (default 600 = 10 minutes). |
pirsch_get_time_distribution Get visitors by time
Visitors by hour of the day, by minute (only when from and to are the same day), or by weekday and hour (Monday is 0). Shows when traffic peaks. GET /api/v1/statistics/hours, /minutes or /weekdays. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
by * | string | hour = per hour of day, minute = per minute (needs a one-day range), weekday = weekday and hour. |
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_get_duration Get time spent
Average session duration over time, or average time on page over time, in seconds. GET /api/v1/statistics/duration/session or /duration/page. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
kind * | string | session = average session duration, page = average time on page. |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
scale | string | Group results by day (default), week, month or year. |
screen_class | string | Screen class XXL, XL, L, M or S. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_list_pages List pages
Top pages with visitors, views, sessions, bounces, bounce rate and average time on page. type=entry lists landing pages, type=exit lists exit pages. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/page, /page/entry or /page/exit. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
include_title | boolean | Group by title and path instead of path only. |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
type | string | all (default), entry or exit pages. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_list_hostnames List hostnames
Traffic per hostname. Mostly useful for rollup views that combine several hostnames. GET /api/v1/statistics/hostname. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_list_referrers List referrers
Where visitors come from: referrers (by=referrer) or traffic channels such as Organic Search and Paid Search (by=channel). Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/referrer or /channel. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
by | string | referrer (default) or channel. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_list_utm List UTM parameters
Visitors per UTM source, medium, campaign, content or term. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/utm/{dimension}. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
dimension * | string | Which UTM parameter to break down. |
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_list_geography List countries, regions, cities and languages
Visitors per country, region, city or language. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/country, /region, /city or /language. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
dimension * | string | Which breakdown. |
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_list_devices List browsers, operating systems and screens
Visitors per browser, browser version, operating system or screen class (XXL to S). Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/browser, /browser/version, /os or /screen. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
dimension * | string | Which breakdown. |
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_get_platforms Get platform split
Visitors on desktop, mobile and unknown platforms, as counts and shares. GET /api/v1/statistics/platform. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_list_events List events
Custom events with count, visitors, views, conversion rate, average duration and their metadata keys. Use pirsch_get_event_breakdown for the values of one metadata key. GET /api/v1/statistics/events. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_get_event_breakdown Get event metadata breakdown
The values of one metadata key of one event, with count, visitors and conversion rate. Both event and event_meta_key are required. GET /api/v1/statistics/event/meta.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
event * | string | Event name. |
event_meta_key * | string | Metadata key to break down. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
direction | string | Sort direction. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
pirsch_list_event_pages List pages of an event
The pages on which an event was triggered, with visitors and views. The event name is required. GET /api/v1/statistics/event/page.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
event * | string | Event name. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
direction | string | Sort direction. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
pirsch_list_goals List conversion goals
Conversion goals with their definition (page pattern, event, targets) and the visitors, views and conversion rate for the period. GET /api/v1/statistics/goals. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_list_funnels List funnels
The funnels defined for a dashboard, with their steps and step filters. Use a funnel id in pirsch_get_funnel. GET /api/v1/funnel.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
search | string | Only funnels whose name contains this text. |
pirsch_get_funnel Get funnel statistics
Visitors per funnel step for a period: visitors, share of the first step, drop-off between steps. The filter applies to the first step. GET /api/v1/statistics/funnel. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
funnel_id * | string | Funnel id from pirsch_list_funnels. |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_list_tags List tags
Tag keys with views and share. Use pirsch_get_tag_breakdown to see the values of one key. GET /api/v1/statistics/tags. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_get_tag_breakdown Get tag breakdown
The values of one tag key with views and share. The tag filter (the key) is required. GET /api/v1/statistics/tag/details.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
tag * | string | Tag key to break down. |
to * | string | Last day, yyyy-mm-dd, whole day included. |
direction | string | Sort direction. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
pirsch_list_sessions List sessions
Individual visitor sessions: start, duration, entry and exit page, page views, bounce, country, city, referrer, browser, OS and UTM data. visitor_id is a string (a 64-bit number). Use pirsch_get_session for one session's page views and events. GET /api/v1/statistics/session/list. Text filters (hostname, path, entry_path, exit_path, event, language, country, city, referrer, referrer_name, channel, os, browser, screen_class and utm_*): prefixes !, ~ and ^ mean is not, contains and does not contain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
browser | string | Browser. |
channel | string | Traffic channel such as "Paid Search" or "Organic Search". |
city | string | City name. |
country | string | ISO 3166 alpha-2 country code such as jp. |
direction | string | Sort direction. |
entry_path | string | Entry page path. |
event | string | Event name. |
event_meta | object | Event metadata key/value pairs; only events with all pairs match. |
exit_path | string | Exit page path. |
hostname | string | Hostname (useful for rollup views). |
language | string | ISO 639-1 language code such as en. |
limit | integer | Results per page, 1-100 (default 25). |
offset | integer | Results to skip (default 0). Pass the previous reply's next_offset. |
os | string | Operating system. |
path | string | Page path, for example /pricing. |
pattern | string | Regular expression that filters and groups pages, for example (?i)^/blog/[^/]+$. |
platform | string | Platform. |
referrer | string | Referrer, usually a URL. |
referrer_name | string | Referrer name, usually the hostname. |
screen_class | string | Screen class XXL, XL, L, M or S. |
search | string | Only rows whose main field contains this text. |
sort | string | Field to sort by, for example visitors, views, sessions or bounce_rate. |
tag | string | Tag key to filter for. |
tags | object | Tag key/value pairs; only results with all pairs match. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
utm_campaign | string | UTM campaign. |
utm_content | string | UTM content. |
utm_medium | string | UTM medium. |
utm_source | string | UTM source. |
utm_term | string | UTM term. |
pirsch_get_session Get session details
All page views and events of one session in time order. Both ids come from pirsch_list_sessions. GET /api/v1/statistics/session/details.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
session_id * | string | session_id from pirsch_list_sessions. |
to * | string | Last day, yyyy-mm-dd, whole day included. |
visitor_id * | string | visitor_id from pirsch_list_sessions. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |
pirsch_list_filter_values List filter values
The values that exist for a filter in a period, such as all page paths, referrers, countries, browsers or event names. Use it to find valid values before filtering. GET /api/v1/statistics/options/{dimension}.
| Parameter | Type | Description |
|---|---|---|
dimension * | string | Which filter to list values for. |
domain_id * | string | Pirsch domain (dashboard) id. Get it from pirsch_list_domains. |
from * | string | First day, yyyy-mm-dd (in the dashboard time zone unless tz is set). |
to * | string | Last day, yyyy-mm-dd, whole day included. |
search | string | Only values that contain this text. |
tz | string | IANA time zone such as Europe/Berlin. Default: the dashboard's time zone. |