Introduction
Baidu Analytics (百度统计, Baidu Tongji) is Baidu’s web analytics platform for measuring site traffic, visitor behavior, and promotion performance in the Chinese market. It reports on page views, visits, visitors, engagement, and conversions for a registered site, and — for sites running Baidu promotion — on impressions, clicks, cost, and return. The connector reads from the Baidu Tongji REST API (v1). It authenticates with a username and access token rather than OAuth. Each data source is scoped to a single site and a single report type chosen at creation. The report type maps to a specific Baidu report (for example, Search Term, Visited Pages, or Website Overview) and determines both the metrics returned and the primary breakdown each row represents. When several sites are selected during setup, Adriel creates one data source per site. As an analytics connector, visit, visitor, engagement, and conversion data are standardized so widgets can aggregate this source alongside other connectors. To connect this data source, see How to connect Baidu Analytics to Adriel.Data refresh strategy
Architecture data
Architecture covers the account’s registered sites. The site list is read live from the Baidu Tongji API at connection and data source creation time (it is not separately cached), and each site’s identifier scopes every subsequent data query. The report type is fixed per data source and cannot be changed without recreating the data source.Reports data
Reports data uses a daily-cache model. On first connection, historical daily data for the last 180 days is backfilled. After that, a scheduled refresh re-fetches the most recent 30 days on each run, twice per day at 02:00 and 14:00 UTC. Baidu Tongji itself processes data with a short delay (typically a few hours), so very recent rows can still shift between refreshes. Older data outside the 30-day window is not re-fetched, because it rarely changes.Architecture levels
Account → Site The account is the set of credentials (username and access token). A site is a single registered property, identified by its domain and site ID, and is the reporting boundary for every query. Baidu Analytics has no ad-hierarchy analog; the report type selected at creation, not a drill-down level, determines what each row represents.Date range limits
Data earlier than 180 days before the first connection is not backfilled and is unavailable. There is no documented per-query maximum range beyond the history available in the cache.
Metrics
How to read the columnsCode style like
pv_count is the literal Baidu Tongji API field name returned for the report. Italic text describes a value that Adriel derives rather than reads directly from a single API field.Data type vocabulary: Number, Currency, Percentage, Ratio, Duration, Date, Text.Availability depends on the report typeBaidu Analytics is report-type based. The report type is chosen when the data source is created and cannot be changed afterward. Each report type returns only its own metric set, so a metric listed below is available only in the report types that expose it. See Metric availability by report type for the exact mapping.
Users & sessions
Traffic sources (Baidu promotion)
Engagement & behavior
Conversions
Metric availability by report type
The report type selected at creation determines which of the metrics above are returned. TheeventAnalysis report type has no fixed metric set — its metrics are defined per request.
Breakdowns
How to read the columnsCode style like
_date is the literal field name Adriel stores for the breakdown. Italic text describes a value that Adriel derives rather than reading it directly from a single API field.The primary row breakdown is set by the report typeBeyond the date breakdown, each report type produces rows grouped by its own entity (for example, one row per search term, per visited page, or per province). Because the report type is fixed at creation, that primary breakdown is fixed for the data source and cannot be swapped for another entity without recreating it.
Date
Report entity
The row entity is determined by the report type selected at creation. The table keys each breakdown by its report type; the underlying entity-column name varies per report type.Time & date grouping
Adriel groups Baidu Analytics’ daily results into these standard views for reporting alongside other connectors.
Limitations
Based on the current connector, Baidu Analytics has:- A fixed report type per data source — the report type is chosen at creation and cannot be changed later; a different report requires a new data source.
- A single site per data source — selecting multiple sites during setup provisions one data source per site.
- A 180-day history cap — only the last 180 days are backfilled on first connection; earlier data is unavailable.
- A 30-day rolling refresh — only the most recent 30 days are re-fetched on each scheduled run.
- Daily granularity — the source returns daily data; sub-daily rows are not provided.
- Manual reconnection on token expiry — the connection does not auto-refresh; an invalid or revoked access token disconnects the data source and requires re-entering credentials.
- Beta status — the connector is presented in the product as “Tongji (beta).”
API references
See also
- How to connect Baidu Analytics (paired how-to)
- Google Analytics 4 data reference — for the primary web analytics connector
- Piano Analytics data reference — for an alternative analytics connector
