//<![CDATA[
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-73124-14', 'toster.ru');
ga('create', 'UA-731234-24', 'auto', { 'name': 'HGM', 'allowLinker': true });
ga('HGM.require', 'linker');
ga('HGM.linker:autoLink', ['toster.ru', 'habr.com', 'account.habr.com', 'm.habr.com']);
ga('require', 'displayfeatures');
ga('set', 'dimension1', 'authorized'); // user type - guest/authorized
ga('set', 'dimension2', 'HemulGM'); // username
(function() {
var win = window;
var removeUtms = function(){
var location = win.location;
if (location.href.indexOf('utm') != -1 && win.history.replaceState) {
win.history.replaceState({}, '', location.pathname);
}
};
ga('require', 'GTM-T95ZCNP');
ga('send', 'pageview', { 'hitCallback': removeUtms });
ga('HGM.send', 'pageview', { 'hitCallback': removeUtms });
})();
if (0) {
ga('send', 'event', 'user', 'registration', 'success');
ga('HGM.send', 'event', 'user', 'registration', 'success');
};
//]]>