Get GA chart data
Traffic & Analytics
Analytics (Visitors)
Pull your website visitor data — users, pageviews, channels, pages, and devices.
GET
Get GA chart data
Get your website analytics data from Google Analytics 4 or PostHog. These endpoints give you the same data as the Traffic dashboard’s Analytics tab — users, pageviews, bounce rate, traffic sources, top pages, and more.
Available dimensions:
You need a Google Analytics 4 or PostHog integration connected to your team. Connect it from Settings → Integrations → Analytics & Performance.
Filters Parameter
Thefilters query parameter accepts URL-encoded JSON with dimensions and their selected values:
channel, referrer, campaign, deviceCategory, browser, os, page.
Traffic Channels
GET /integrations/ga/channels
Get your traffic broken down by source type.
Channels returned: Direct, Organic Search, Paid Search, Organic Social, Paid Social, Email, Referral, Display, Organic Video, Affiliates, Unassigned.
Top Pages
GET /integrations/ga/pages
Get your most-viewed pages with engagement metrics.
Traffic Sources (Referrers & Campaigns)
GET /integrations/ga/sources
Get your traffic sources — external referrers and UTM-tagged campaigns.
Traffic by Country
GET /integrations/ga/countries
See where your visitors are located geographically.
Traffic by Device
GET /integrations/ga/devices
See what browsers, operating systems, and device types your visitors use.
New vs Returning Visitors
GET /integrations/ga/user-type
See the split between new and returning visitors.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Team ID
Number of days to look back
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Country filter
Additional dimension filters
Response
Default Response

