It seems that statistics can only be counted up to the root directory
学习是最好的投资!
Mark and come back later
For details, please see https://tongji.baidu.com/open... Baidu Statistics has a corresponding API interface. Then I encapsulated it
var BaiduTongJi = { visitPage : function () { _hmt.push(['_trackPageview', _path]); } };
Then add a locationChangeStart event listener in your angular, similar to my code below.
app.run(function($rootScope, $location){ $rootScope.$on('$locationChangeStart', function () { BaiduTongJi.visitPage($location.path()); }) });
How to solve it?
Looking for answers together. I know the main question, please let me know
Mark and come back later
For details, please see https://tongji.baidu.com/open...
Baidu Statistics has a corresponding API interface.
Then I encapsulated it
Then add a locationChangeStart event listener in your angular, similar to my code below.
How to solve it?
Looking for answers together. I know the main question, please let me know