MediaWiki:Common.js/ga.js — различия между версиями
Материал Psylab.info - энциклопедии психодиагностики
м |
м |
||
| (не показаны 4 промежуточные версии этого же участника) | |||
| Строка 1: | Строка 1: | ||
| − | + | <!-- Google Analytics --> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
(function(i, s, o, g, r, a, m){ | (function(i, s, o, g, r, a, m){ | ||
| − | i['GoogleAnalyticsObject'] = r; | + | i['GoogleAnalyticsObject'] = r; |
| − | + | ||
| − | + | ||
i[r] = i[r] || function() { | i[r] = i[r] || function() { | ||
(i[r].q = i[r].q || []).push(arguments) | (i[r].q = i[r].q || []).push(arguments) | ||
}, | }, | ||
| − | |||
| − | |||
i[r].l = 1 * new Date(); | i[r].l = 1 * new Date(); | ||
| − | |||
| − | |||
| − | |||
a = s.createElement(o), | a = s.createElement(o), | ||
m = s.getElementsByTagName(o)[0]; | m = s.getElementsByTagName(o)[0]; | ||
| Строка 32: | Строка 13: | ||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); | })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); | ||
| − | ga('create', 'UA-26921269-3', 'psylab.info'); | + | ga('create', 'UA-26921269-3', 'psylab.info'); |
| − | ga('require', 'displayfeatures'); | + | ga('require', 'displayfeatures'); |
| − | ga(' | + | ga('send', 'pageview'); |
| − | + | ||
| + | var addthis_config = { | ||
| + | data_ga_property: 'UA-26921269-3', | ||
| + | data_ga_social: true | ||
| + | }; | ||
| + | <!-- End Google Analytics --> | ||
Текущая версия на 20:10, 23 декабря 2014
<!-- Google Analytics -->
(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-26921269-3', 'psylab.info');
ga('require', 'displayfeatures');
ga('send', 'pageview');
var addthis_config = {
data_ga_property: 'UA-26921269-3',
data_ga_social: true
};
<!-- End Google Analytics -->