Baidu Tongji - Trackevent
How to setup trackevent through JS in Baidu Event Tracking, a working guideline.
Setup JS-API
<script>
var _hmt = _hmt || [];
</script>
When Multiple Baidu Tongji Script is Used
<script>
var _hmt = _hmt || [];
_hmt.push(['_setAccount', '0123456789ABCDEF0123456789ABCDEF']);
</script>
SideID
It can be found in the standard script Baidu provides.
hm.src = "https://hm.baidu.com/hm.js?SideID";
Fire Tracking
<script>
_hmt.push(['_trackEvent', category, action, opt_label, opt_value]);
</script>
Set Traching
Go to relevant page and setup the trackevent so that it will appear in the panel.