Add StatCounter
This commit is contained in:
parent
068070b7ef
commit
0c5a0d9fc9
|
|
@ -42,6 +42,7 @@ Bonus:
|
||||||
* FERank
|
* FERank
|
||||||
* Google Analytics (ga.js)
|
* Google Analytics (ga.js)
|
||||||
* Google Analytics (universal)
|
* Google Analytics (universal)
|
||||||
|
* StatCounter
|
||||||
* VisualRevenue
|
* VisualRevenue
|
||||||
* Xiti
|
* Xiti
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ var scripts = document.getElementsByTagName('script'),
|
||||||
tarteaucitronNoAdBlocker = false;
|
tarteaucitronNoAdBlocker = false;
|
||||||
|
|
||||||
var tarteaucitron = {
|
var tarteaucitron = {
|
||||||
"version": 202.8,
|
"version": 204.5,
|
||||||
"cdn": cdn,
|
"cdn": cdn,
|
||||||
"user": {},
|
"user": {},
|
||||||
"lang": {},
|
"lang": {},
|
||||||
|
|
|
||||||
|
|
@ -832,6 +832,37 @@ tarteaucitron.services.sharethis = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// statcounter
|
||||||
|
tarteaucitron.services.statcounter = {
|
||||||
|
"key": "statcounter",
|
||||||
|
"type": "analytic",
|
||||||
|
"name": "StatCounter",
|
||||||
|
"uri": "https://fr.statcounter.com/about/legal/#privacy",
|
||||||
|
"needConsent": true,
|
||||||
|
"cookies": ['sc_is_visitor_unique'],
|
||||||
|
"js": function () {
|
||||||
|
"use strict";
|
||||||
|
var uniqIds = [],
|
||||||
|
i,
|
||||||
|
uri = '//statcounter.com/counter/counter.js';
|
||||||
|
|
||||||
|
tarteaucitron.fallback(['statcounter-canvas'], function (x) {
|
||||||
|
var uniqId = '_' + Math.random().toString(36).substr(2, 9);
|
||||||
|
uniqIds.push(uniqId);
|
||||||
|
return '<div id="' + uniqId + '"></div>';
|
||||||
|
});
|
||||||
|
|
||||||
|
for (i = 0; i < uniqIds.length; i += 1) {
|
||||||
|
tarteaucitron.makeAsync.init(uri, uniqIds[i]);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fallback": function () {
|
||||||
|
"use strict";
|
||||||
|
var id = 'statcounter';
|
||||||
|
tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// typekit
|
// typekit
|
||||||
tarteaucitron.services.typekit = {
|
tarteaucitron.services.typekit = {
|
||||||
"key": "typekit",
|
"key": "typekit",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue