add baidu Analytics and share code

Signed-off-by: freesgl <freesgl@freesgl.com>