The Baidu Analytics module provides two textareas (before and after code snippets) in the Advanced collapsed section on the admin settings form page for including additional JavaScript to every page: see screenshot below:
@TODO: Add screenshots with comments for code snippets textareas on module's admin settings form page.

The official documentation about Baidu Analytics Tracking Code should be read first to understand how Baidu tracking works in general. On the Baidu Analytics Tracking API page you will find all available methods that can be used in these textareas, as well as JavaScript snippets dotted around with light blue background.

More snippets examples could be found on the Advanced Google Analytics JavaScript Snippets page from which this page is inspired.
However, watch out: many of the examples posted by users for Google Analytics might not be supported by the Baidu Analytics API.

7.x-1.x

Don't forget to prefix all used methods in the latest (Asynchronous) version with _hmt..
 

Please add your Baidu Analytics advanced JavaScript snippets as comments to this page.