Analytics

Baidu Analytics

Analytics

Baidu Analytics (百度统计) is a free web analytics platform from the Chinese search engine Baidu that measures audience, traffic sources, and on-site behaviour through first party and third party cookies.

Overview

What does Baidu Analytics do?

Baidu Analytics, known in Chinese as 百度统计 (Baidu Tongji), is the free web analytics service of the Chinese search engine Baidu. It is the Chinese market equivalent of Google Analytics and is widely used by businesses targeting the mainland Chinese audience. The script collects audience metrics, traffic sources, conversions, page performance, and visitor behaviour, sending the data to Baidu servers located in China.

What Baidu Analytics does

Baidu Analytics provides reports on real time visitors, pageviews, sessions, bounce rate, conversion funnels, source and medium, geography, device, and search keywords from Baidu organic traffic. It supports event tracking, custom variables, and ecommerce reports. The implementation is a JavaScript snippet pasted before the closing body tag of every page, which loads hm.baidu.com/hm.js with a unique site identifier.

Cookies and data collected

The script sets several first party cookies prefixed with Hm_, including Hm_lvt_ (last visit timestamp), Hm_lpvt_ (last pageview timestamp), and HMACCOUNT (cross site visitor identifier set on hm.baidu.com). It also reads the user agent, IP address, referrer, viewport, language, and the full URL of every page view. Combined, these elements allow Baidu to recognise returning visitors across sessions and across all sites running Baidu Analytics.

GDPR and ePrivacy implications

Baidu Analytics processes personal data within the meaning of Article 4(1) GDPR. The cookies it sets are not strictly necessary, so under Article 5(3) of the ePrivacy Directive they require prior, freely given, specific, informed, and unambiguous consent. Baidu also acts as an independent controller for its own purposes, including ad targeting on the Baidu network, which removes the typical processor relationship most European publishers expect from a tracking vendor.

Data transfers to China

All data is sent to Baidu servers in mainland China. China is not on the European Commission adequacy list. Transfers therefore rely on Article 46 GDPR safeguards (Standard Contractual Clauses) combined with a Transfer Impact Assessment that takes into account Chinese state access powers under the Cybersecurity Law, the Data Security Law, and PIPL. Baidu has not published EU SCCs as of writing, which makes Baidu Analytics very difficult to deploy lawfully for European users.

How to deploy it compliantly

Block the Baidu Analytics tag by default in your Consent Management Platform. Load hm.baidu.com/hm.js only after the visitor accepts the analytics category. Document Baidu Analytics in your record of processing activities and your privacy notice, with a clear mention of the China transfer. For European audiences, consider using a privacy friendly alternative such as Matomo, Plausible, or Piwik PRO instead, and keep Baidu Analytics enabled only on geographies where it adds real value.

Compliance

Baidu Analytics and the GDPR

Baidu Analytics is classified as “Analytics”. On a site that targets European visitors, it must only load after the visitor consents, and it must be listed in your cookie policy.

Legal basis
Consent (Art. 6(1)(a) GDPR and Art. 5(3) ePrivacy Directive)
Risk level
high
Applicable regulations
GDPR, ePrivacy Directive, PIPL, Schrems II case law

Impact assessment (DPIA)

A DPIA is strongly recommended. Baidu Analytics combines large scale behavioural profiling with a systematic transfer to China, a country without an EU adequacy decision and subject to broad state access powers. Document the purposes, retention, SCCs, the Transfer Impact Assessment, and any supplementary measures such as IP truncation or pseudonymisation.

Sample text for your banner

We use Baidu Analytics to measure how our site is used. This service places cookies and transfers your data to Baidu servers in China. We only activate it after you click Accept in our cookie banner.
Cookies and trackers

What Baidu Analytics sets and contacts

Tracking method
JavaScript tag with first party and third party cookies, server side aggregation
Server location
China (Beijing, Shanghai)
Data transferred outside the EU
All visitor data is transferred to Baidu servers in mainland China. China is not recognised by the European Commission as providing an adequate level of data protection, so transfers require additional safeguards (Standard Contractual Clauses plus a Transfer Impact Assessment).

Cookies set (5)

NameTypeDurationPurpose
Hm_lvt_<site>http_cookie6 monthsStores the timestamp of the user's last visit so that Baidu Analytics can compute unique and returning visitors.
Hm_lpvt_<site>http_cookiesessionStores the timestamp of the user's last pageview so that Baidu Analytics can compute session duration and bounce rate.
HMACCOUNThttp_cookie2 yearsCross site visitor identifier stored on hm.baidu.com that lets Baidu recognise the same user across all sites running Baidu Analytics.
HMVThttp_cookiesessionVisit tracking cookie used to consolidate the events sent within a single visit.
HMF_<site>http_cookie1 yearFrequency capping cookie used by Baidu Analytics on some properties to detect repeated interactions.

Third-party domains contacted (4)

  • hm.baidu.com
  • tongji.baidu.com
  • eclick.baidu.com
  • pos.baidu.com
Questions

Frequently asked questions about Baidu Analytics

Can't find your question? Write to us, we answer fast.

What cookies does Baidu Analytics set?

Baidu Analytics sets several first party cookies that start with the prefix Hm_, including Hm_lvt_ (last visit timestamp), Hm_lpvt_ (last pageview timestamp), HMACCOUNT (a cross site visitor identifier set on hm.baidu.com), and HMVT (visit tracking). The script also reads the IP address, user agent, viewport, referrer, and full page URL of every visit.

Does Baidu Analytics require GDPR consent?

Yes. Baidu Analytics writes cookies that are not strictly necessary and processes personal data including IP and behavioural identifiers. Under Article 5(3) of the ePrivacy Directive and Article 6(1)(a) GDPR, you must obtain prior, freely given, specific, informed, and unambiguous consent before loading the hm.baidu.com script.

What is the legal basis for processing?

Consent under Article 6(1)(a) GDPR is the appropriate legal basis, combined with the consent requirement of Article 5(3) ePrivacy. Legitimate interest is not workable here because Baidu acts as an independent controller for its own targeting purposes and transfers data to a third country without an adequacy decision.

Are data transferred outside the EU?

Yes. All Baidu Analytics data is transferred to Baidu servers in mainland China. China has no EU adequacy decision. Transfers require Article 46 safeguards such as Standard Contractual Clauses and a Transfer Impact Assessment, which is very difficult to pass given Chinese state access powers under the Cybersecurity Law, the Data Security Law, and PIPL.

Do I need a DPIA?

A DPIA is strongly recommended. Baidu Analytics combines systematic monitoring of website visitors, transfers to a third country, and processing by a vendor that acts as an independent controller. These elements meet several criteria of the EDPB DPIA guidelines and justify a documented risk assessment.

How do I implement Baidu Analytics compliantly?

Block the hm.baidu.com script by default in your Consent Management Platform. Load it only after the visitor accepts the analytics category. Disclose the China transfer in your cookie banner and privacy notice, list the cookies and their lifetime, and provide an easy way to withdraw consent. Sign Standard Contractual Clauses with Baidu and complete a Transfer Impact Assessment.

Are there alternatives to Baidu Analytics?

For European audiences, consider Matomo, Plausible, Piwik PRO, Fathom, or Umami. These platforms can host data in the EU, support cookieless modes, and are designed with GDPR in mind. Reserve Baidu Analytics for cases where measuring the Chinese mainland audience is a real business need.

How do I update my cookie policy for Baidu Analytics?

Add a dedicated entry for Baidu Analytics in your cookie policy. List each Hm_ cookie, its purpose, its lifetime, and the fact that data is processed by Baidu in China. Explain the transfer mechanism (SCCs and TIA), name Baidu as joint or independent controller depending on your configuration, and link to the Baidu Analytics privacy statement.

Glassbox

Glassbox is a digital analytics solution that helps businesses measure and understand their online performance through comprehensive data collection and analysis. It provides visitor tracking, behavioral insights, and conversion metrics across websites and applications. Glassbox supports custom event tracking, audience segmentation, and automated reporting. With intuitive dashboards and visualization tools, Glassbox enables informed decisions that improve experience and drive results.

Analytics

FC2 Analyzer

FC2 Analyzer is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. FC2 Analyzer offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, FC2 Analyzer empowers organizations to optimize strategy and maximize return on investment.

Analytics

Funnelytics

Funnelytics is a digital marketing technology that helps businesses reach, engage, and convert their target audience online. It provides advanced targeting, campaign management, and performance analytics capabilities. Funnelytics enables marketers to deliver personalized experiences across channels, optimize campaign ROI, and gain actionable insights into customer behavior. With automation features and data-driven optimization, Funnelytics empowers marketing teams to achieve measurable growth.

Marketing

AWStats

AWStats is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. AWStats offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, AWStats empowers organizations to optimize strategy and maximize return on investment.

Analytics

Mint

Mint is a digital analytics solution that helps businesses measure and understand their online performance through comprehensive data collection and analysis. It provides visitor tracking, behavioral insights, and conversion metrics across websites and applications. Mint supports custom event tracking, audience segmentation, and automated reporting. With intuitive dashboards and visualization tools, Mint enables informed decisions that improve experience and drive results.

Analytics

MonsterInsights

MonsterInsights is a digital analytics solution that helps businesses measure and understand their online performance through comprehensive data collection and analysis. It provides visitor tracking, behavioral insights, and conversion metrics across websites and applications. MonsterInsights supports custom event tracking, audience segmentation, and automated reporting. With intuitive dashboards and visualization tools, MonsterInsights enables informed decisions that improve experience and drive results.

Analytics

Make your site compliant today.

Free up to 25,000 sessions a month. No credit card, no commitment.