Statistiques du site web

GET https://dash.pulselyx.com/api/statistics/{website_id}
Paramètres Détails Description
start_date Facultatif Chaîne Date de début au format Ymd.
end_date Facultatif Chaîne Date de fin au format Ymd.
type Facultatif Chaîne Valeurs autorisées : overview, realtime, paths, landing_paths, exit_paths, referrers, referrer_paths, social_media_referrers, search_engines_referrers, ai_referrers, screen_resolutions, utms_source, utms_medium_campaign, operating_systems, os_versions, device_types, continents, countries, regions, cities, browser_names, browser_versions, browser_languages, browser_timezones, themes, goals, hours, weekdays, visitor_types, visit_frequency, pages_per_visit, outbound_clicks, outbound_clicks_paths
visitor_types requires advanced tracking and returns HTTP 400 for lightweight tracking. Counts unique visitors with sessions starting in the selected date range. New visitors were first recorded during that range; returning visitors were first recorded before its start. Each visitor is counted once.
visit_frequency requires advanced tracking and returns HTTP 400 for lightweight tracking. Groups visitors by sessions starting within the selected date range. Buckets are 1, 2, 3-5, 6-10, 11-20, and 21+, in that order. Each visitor appears once. All buckets are returned, including zero counts.
pages_per_visit requires advanced tracking and returns HTTP 400 for lightweight tracking. Groups sessions starting within the selected date range by their stored pageview counts, including the landing page and repeat pageviews. Counts cover each complete session, including pageviews outside the selected dates. Returns bucket and sessions. Buckets are 1, 2, 3, 4-5, 6-10, 11-20, and 21+, in that order. All buckets are returned, including zero counts.
os_versions and browser_versions require advanced tracking. Supply os_name or browser_name respectively. Counts unique visitors with sessions starting in the selected date range, grouped by the version saved on their visitor profile. Undetected versions are returned as null. Lightweight tracking returns HTTP 400.
exit_paths requires advanced tracking and returns HTTP 400 for lightweight tracking. Groups the last pageview of each session in the selected date range by path, with pageviews and bounces counts.
social_media_referrers, search_engines_referrers, and ai_referrers return referrer and pageviews counts using the same source groups as the dashboard. Advanced tracking also includes bounces.
os_name Requis Chaîne Disponible lorsque : type = os_versions
browser_name Requis Chaîne Disponible lorsque : type = browser_versions
continent_code Facultatif Chaîne Disponible lorsque : type = countries
country_code Facultatif Chaîne Disponible lorsque : type = regions, cities
region_name Facultatif Chaîne Disponible lorsque : type = cities
referrer_host Facultatif Chaîne Disponible lorsque : type = referrer_paths
utm_source Facultatif Chaîne Disponible lorsque : type = utms_medium_campaign
host Facultatif Chaîne Disponible lorsque : type = outbound_clicks_paths
curl --request GET \
--url 'https://dash.pulselyx.com/api/statistics/{website_id}?start_date=2020-01-01&end_date=2021-01-01&type=paths' \
--header 'Authorization: Bearer {api_key}' \
{
    "data": [
        {
            "path": "/dashboard",
            "pageviews": 500,
            "bounces": 10
        },
        {
            "path": "/websites",
            "pageviews": 250,
            "bounces": 0
        },
        {
            "path": "/",
            "pageviews": 200,
            "bounces": 36
        },
        {
            "path": "/register",
            "pageviews": 100,
            "bounces": 25
        },
        {
            "path": "/login",
            "pageviews": 50,
            "bounces": 10
        }
    ]
}
{
    "data": [
        {
            "visitor_type": "new",
            "visitors": 720
        },
        {
            "visitor_type": "returning",
            "visitors": 280
        }
    ]
}
{
    "data": [
        {
            "bucket": "1",
            "visitors": 500
        },
        {
            "bucket": "2",
            "visitors": 240
        },
        {
            "bucket": "3-5",
            "visitors": 160
        },
        {
            "bucket": "6-10",
            "visitors": 70
        },
        {
            "bucket": "11-20",
            "visitors": 30
        },
        {
            "bucket": "21+",
            "visitors": 0
        }
    ]
}
{
    "data": [
        {
            "bucket": "1",
            "sessions": 500
        },
        {
            "bucket": "2",
            "sessions": 240
        },
        {
            "bucket": "3",
            "sessions": 120
        },
        {
            "bucket": "4-5",
            "sessions": 80
        },
        {
            "bucket": "6-10",
            "sessions": 40
        },
        {
            "bucket": "11-20",
            "sessions": 20
        },
        {
            "bucket": "21+",
            "sessions": 0
        }
    ]
}
{
    "data": [
        {
            "os_name": "Windows",
            "os_version": "10",
            "visitors": 120
        },
        {
            "os_name": "Windows",
            "os_version": null,
            "visitors": 5
        }
    ]
}
{
    "data": [
        {
            "browser_name": "Chrome",
            "browser_version": "130.0",
            "visitors": 85
        },
        {
            "browser_name": "Chrome",
            "browser_version": "129.0",
            "visitors": 35
        }
    ]
}