move from gtm to ga
This commit is contained in:
Родитель
75be247919
Коммит
ed9ba85b40
|
@ -1,7 +1,7 @@
|
|||
<meta name="google-site-verification" content="t3OXbAnBhDID5loRpNRgaaBOfOE7W7-Kh04-3dyKgVs">
|
||||
|
||||
<script>
|
||||
"use strict";function _dntEnabled(e,t){var n=e||navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack,a=t||navigator.userAgent,i=["Windows NT 6.1","Windows NT 6.2","Windows NT 6.3"],r=a.match(/Firefox\/(\d+)/),o=/MSIE|Trident/i.test(a),d=a.match(/Windows.+?(?=;)/g);return(!o||"function"==typeof Array.prototype.indexOf)&&"Enabled"===(n=r&&parseInt(r[1],10)<32?"Unspecified":o&&d&&-1!==i.indexOf(""+d)?"Unspecified":{0:"Disabled",1:"Enabled"}[n]||"Unspecified")}function detect(e){return e.test(userAgent)}function displayBanner(e,t,n){if(!detect(/Mobi/i)){"string"===$.type(t)&&(t=[t]),"string"===$.type(n)&&(n=[n]);for(var a=!1,i=0;i<t.length;i++){switch(t[i]){case"chrome":a=detect(/Chrome/)}if(a)break}a&&n.forEach(function(t){$("head").append("<style> .category-"+t+" .download-banner-"+e+" { display: block } </style>")})}}_dntEnabled()||function(e,t,n,a,i){e[a]=e[a]||[],e[a].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var r=t.getElementsByTagName(n)[0],o=t.createElement(n);o.async=!0,o.src="https://www.googletagmanager.com/gtm.js?id=GTM-TMGHNBJ",r.parentNode.insertBefore(o,r)}(window,document,"script","dataLayer");var userAgent=window.navigator&&navigator.userAgent||"";displayBanner("nightly","chrome","mozillians-nda");
|
||||
"use strict";function _dntEnabled(e,n){var t=e||navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack,a=n||navigator.userAgent,i=a.match(/Firefox\/(\d+)/),o=/MSIE|Trident/i.test(a),r=a.match(/Windows.+?(?=;)/g);return(!o||"function"==typeof Array.prototype.indexOf)&&"Enabled"===(t=i&&parseInt(i[1],10)<32?"Unspecified":o&&r&&-1!==["Windows NT 6.1","Windows NT 6.2","Windows NT 6.3"].indexOf(""+r)?"Unspecified":{0:"Disabled",1:"Enabled"}[t]||"Unspecified")}_dntEnabled()||(!function(e,n,t,a,i,o,r){e.GoogleAnalyticsObject=i,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,o=n.createElement(t),r=n.getElementsByTagName(t)[0],o.async=1,o.src="https://www.google-analytics.com/analytics.js",r.parentNode.insertBefore(o,r)}(window,document,"script",0,"ga"),ga("create","UA-50638649-1","auto"),ga("send","pageview"));var userAgent=window.navigator&&navigator.userAgent||"";function detect(e){return e.test(userAgent)}function displayBanner(n,e,t){if(!detect(/Mobi/i)){"string"===$.type(e)&&(e=[e]),"string"===$.type(t)&&(t=[t]);for(var a=!1,i=0;i<e.length;i++){switch(e[i]){case"chrome":a=detect(/Chrome/)}if(a)break}a&&t.forEach(function(e){$("head").append("<style> .category-"+e+" .download-banner-"+n+" { display: block } </style>")})}}displayBanner("nightly","chrome","mozillians-nda");
|
||||
</script>
|
||||
|
||||
<script type="text/discourse-plugin" version="0.7">
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -2,10 +2,10 @@
|
|||
"devDependencies": {
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-babel": "^6.1.2",
|
||||
"gulp-babel": "^6.1.3",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-inline": "^0.1.3",
|
||||
"gulp-uglify": "^3.0.0",
|
||||
"pump": "^1.0.2"
|
||||
"gulp-uglify": "^3.0.1",
|
||||
"pump": "^1.0.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
if (!_dntEnabled()) {
|
||||
(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','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-50638649-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
if(!_dntEnabled()){(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-TMGHNBJ')};
|
Загрузка…
Ссылка в новой задаче