tarteaucitron.services.js 93 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628
  1. /*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google, Typekit, FB, ferankReady, IN, stButtons, twttr, PCWidget*/
  2. /*jslint regexp: true, nomen: true*/
  3. // generic iframe
  4. tarteaucitron.services.iframe = {
  5. "key": "iframe",
  6. "type": "other",
  7. "name": "Web content",
  8. "uri": "",
  9. "needConsent": true,
  10. "cookies": [],
  11. "js": function () {
  12. "use strict";
  13. tarteaucitron.fallback(['tac_iframe'], function (x) {
  14. var width = x.getAttribute("width"),
  15. height = x.getAttribute("height"),
  16. url = x.getAttribute("data-url");
  17. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  18. });
  19. },
  20. "fallback": function () {
  21. "use strict";
  22. var id = 'iframe';
  23. tarteaucitron.fallback(['tac_iframe'], function (elem) {
  24. elem.style.width = elem.getAttribute('width') + 'px';
  25. elem.style.height = elem.getAttribute('height') + 'px';
  26. return tarteaucitron.engage(id);
  27. });
  28. }
  29. };
  30. // addthis
  31. tarteaucitron.services.addthis = {
  32. "key": "addthis",
  33. "type": "social",
  34. "name": "AddThis",
  35. "uri": "https://www.addthis.com/privacy/privacy-policy#publisher-visitors",
  36. "needConsent": true,
  37. "cookies": ['__atuvc', '__atuvs'],
  38. "js": function () {
  39. "use strict";
  40. if (tarteaucitron.user.addthisPubId === undefined) {
  41. return;
  42. }
  43. if (tarteaucitron.isAjax === true) {
  44. window.addthis = null;
  45. window._adr = null;
  46. window._atc = null;
  47. window._atd = null;
  48. window._ate = null;
  49. window._atr = null;
  50. window._atw = null;
  51. }
  52. tarteaucitron.fallback(['addthis_sharing_toolbox'], '');
  53. tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
  54. },
  55. "fallback": function () {
  56. "use strict";
  57. var id = 'addthis';
  58. tarteaucitron.fallback(['addthis_sharing_toolbox'], tarteaucitron.engage(id));
  59. }
  60. };
  61. // addtoanyfeed
  62. tarteaucitron.services.addtoanyfeed = {
  63. "key": "addtoanyfeed",
  64. "type": "social",
  65. "name": "AddToAny (feed)",
  66. "uri": "https://www.addtoany.com/privacy",
  67. "needConsent": true,
  68. "cookies": [],
  69. "js": function () {
  70. "use strict";
  71. if (tarteaucitron.user.addtoanyfeedUri === undefined) {
  72. return;
  73. }
  74. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  75. window.a2a_config = window.a2a_config || {};
  76. window.a2a_config.linkurl = tarteaucitron.user.addtoanyfeedUri;
  77. tarteaucitron.addScript('//static.addtoany.com/menu/feed.js');
  78. },
  79. "fallback": function () {
  80. "use strict";
  81. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  82. }
  83. };
  84. // addtoanyshare
  85. tarteaucitron.services.addtoanyshare = {
  86. "key": "addtoanyshare",
  87. "type": "social",
  88. "name": "AddToAny (share)",
  89. "uri": "https://www.addtoany.com/privacy",
  90. "needConsent": true,
  91. "cookies": [],
  92. "js": function () {
  93. "use strict";
  94. tarteaucitron.fallback(['tac_addtoanyshare'], '');
  95. tarteaucitron.addScript('//static.addtoany.com/menu/page.js');
  96. },
  97. "fallback": function () {
  98. "use strict";
  99. var id = 'addtoanyshare';
  100. tarteaucitron.fallback(['tac_addtoanyshare'], tarteaucitron.engage(id));
  101. }
  102. };
  103. // aduptech ads
  104. tarteaucitron.services.aduptech_ads = {
  105. "key": "aduptech_ads",
  106. "type": "ads",
  107. "name": "Ad Up Technology (ads)",
  108. "uri": "https://www.adup-tech.com/datenschutz",
  109. "needConsent": true,
  110. "cookies": [],
  111. "js": function () {
  112. "use strict";
  113. var IDENTIFIER = "aduptech_ads",
  114. API_URL = "https://s.d.adup-tech.com/jsapi";
  115. var elements = document.getElementsByClassName(IDENTIFIER);
  116. if (!elements || elements.length === 0) {
  117. return;
  118. }
  119. tarteaucitron.fallback([IDENTIFIER], "");
  120. tarteaucitron.addScript(API_URL, "", function() {
  121. for (var i = 0; i < elements.length; i++) {
  122. var element = elements[i];
  123. if (!element.getAttribute("id")) {
  124. element.setAttribute("id", IDENTIFIER + Math.random().toString(36).substr(2, 9));
  125. }
  126. window.uAd.embed(element.getAttribute("id"), {
  127. placementKey: element.getAttribute("placementKey"),
  128. responsive: Boolean(element.getAttribute("responsive")),
  129. lazy: Boolean(element.getAttribute("lazy")),
  130. adtest: Boolean(element.getAttribute("test")),
  131. query: element.getAttribute("query") || "",
  132. minCpc: element.getAttribute("minCpc") || "",
  133. pageUrl: element.getAttribute("pageUrl") || "",
  134. skip: element.getAttribute("skip") || ""
  135. });
  136. }
  137. });
  138. },
  139. "fallback": function () {
  140. "use strict";
  141. tarteaucitron.fallback(["aduptech_ads"], tarteaucitron.engage("aduptech_ads"));
  142. }
  143. };
  144. // aduptech conversion
  145. tarteaucitron.services.aduptech_conversion = {
  146. "key": "aduptech_conversion",
  147. "type": "ads",
  148. "name": "Ad Up Technology (conversion)",
  149. "uri": "https://www.adup-tech.com/datenschutz",
  150. "needConsent": true,
  151. "cookies": [],
  152. "js": function () {
  153. "use strict";
  154. var IDENTIFIER = "aduptech_conversion",
  155. CONVERSION_PIXEL_BASE_URL = "https://d.adup-tech.com/campaign/conversion";
  156. var elements = document.getElementsByClassName(IDENTIFIER);
  157. if (!elements || elements.length === 0) {
  158. return;
  159. }
  160. tarteaucitron.fallback([IDENTIFIER], "");
  161. for (var i = 0; i < elements.length; i++) {
  162. var element = elements[i];
  163. if (!element.getAttribute("advertiserId") || !element.getAttribute("conversionCode")) {
  164. continue;
  165. }
  166. var url = CONVERSION_PIXEL_BASE_URL +
  167. "/" + encodeURIComponent(element.getAttribute("advertiserId")) +
  168. "?t=" + encodeURIComponent(element.getAttribute("conversionCode"));
  169. if (element.getAttribute("price")) {
  170. url += "&price=" + encodeURIComponent(element.getAttribute("price"));
  171. }
  172. if (element.getAttribute("quantity")) {
  173. url += "&quantity=" + encodeURIComponent(element.getAttribute("quantity"));
  174. }
  175. if (element.getAttribute("total")) {
  176. url += "&total=" + encodeURIComponent(element.getAttribute("total"));
  177. }
  178. if (element.getAttribute("orderId")) {
  179. url += "&order_id=" + encodeURIComponent(element.getAttribute("orderId"));
  180. }
  181. if (element.getAttribute("itemNumber")) {
  182. url += "&item_number=" + encodeURIComponent(element.getAttribute("itemNumber"));
  183. }
  184. if (element.getAttribute("description")) {
  185. url += "&description=" + encodeURIComponent(element.getAttribute("description"));
  186. }
  187. (new Image()).src = url;
  188. }
  189. }
  190. };
  191. // aduptech retargeting
  192. tarteaucitron.services.aduptech_retargeting = {
  193. "key": "aduptech_retargeting",
  194. "type": "ads",
  195. "name": "Ad Up Technology (retargeting)",
  196. "uri": "https://www.adup-tech.com/datenschutz",
  197. "needConsent": true,
  198. "cookies": [],
  199. "js": function () {
  200. "use strict";
  201. var IDENTIFIER = "aduptech_retargeting",
  202. API_URL = "https://s.d.adup-tech.com/services/retargeting.js";
  203. var elements = document.getElementsByClassName(IDENTIFIER);
  204. if (!elements || elements.length === 0) {
  205. return;
  206. }
  207. tarteaucitron.fallback([IDENTIFIER], "");
  208. window.AdUpRetargeting = function(api) {
  209. for (var i = 0; i < elements.length; i++) {
  210. var element = elements[i];
  211. api.init();
  212. api.setAccount(element.getAttribute("account"));
  213. if (element.getAttribute("email")) {
  214. api.setEmail(element.getAttribute("email"));
  215. } else if (element.getAttribute("hashedEmail")) {
  216. api.setHashedEmail(element.getAttribute("hashedEmail"));
  217. }
  218. if (element.getAttribute("product")) {
  219. try {
  220. api.setProduct(JSON.parse(element.getAttribute("product")));
  221. } catch (e) {
  222. api.setProduct(element.getAttribute("product"));
  223. }
  224. }
  225. if (element.getAttribute("transaction")) {
  226. try {
  227. api.setTransaction(JSON.parse(element.getAttribute("transaction")));
  228. } catch (e) {
  229. api.setTransaction(element.getAttribute("transaction"));
  230. }
  231. }
  232. if (element.getAttribute("demarkUser")) {
  233. api.setDemarkUser();
  234. } else if (element.getAttribute("demarkProducts")) {
  235. api.setDemarkProducts();
  236. }
  237. if (element.getAttribute("conversionCode")) {
  238. api.setConversionCode(element.getAttribute("conversionCode"));
  239. }
  240. if (element.getAttribute("device")) {
  241. var setter = "set" + element.getAttribute("device").charAt(0).toUpperCase() + element.getAttribute("device").slice(1);
  242. if (typeof api[setter] === 'function') {
  243. api[setter]();
  244. }
  245. }
  246. if (element.getAttribute("track")) {
  247. var tracker = "track" + element.getAttribute("track").charAt(0).toUpperCase() + element.getAttribute("track").slice(1);
  248. if (typeof api[tracker] === "function") {
  249. api[tracker]();
  250. } else {
  251. api.trackHomepage();
  252. }
  253. }
  254. };
  255. };
  256. tarteaucitron.addScript(API_URL);
  257. }
  258. };
  259. // alexa
  260. tarteaucitron.services.alexa = {
  261. "key": "alexa",
  262. "type": "analytic",
  263. "name": "Alexa",
  264. "uri": "https://www.alexa.com/help/privacy",
  265. "needConsent": true,
  266. "cookies": ['__asc', '__auc'],
  267. "js": function () {
  268. "use strict";
  269. if (tarteaucitron.user.alexaAccountID === undefined) {
  270. return;
  271. }
  272. window._atrk_opts = {
  273. atrk_acct: tarteaucitron.user.alexaAccountID,
  274. domain: window.location.hostname.match(/[^\.]*\.[^.]*$/)[0],
  275. dynamic: true
  276. };
  277. tarteaucitron.addScript('https://d31qbv1cthcecs.cloudfront.net/atrk.js');
  278. }
  279. };
  280. // amazon
  281. tarteaucitron.services.amazon = {
  282. "key": "amazon",
  283. "type": "ads",
  284. "name": "Amazon",
  285. "uri": "https://www.amazon.fr/gp/help/customer/display.html?ie=UTF8&*Version*=1&*entries*=0&nodeId=201149360",
  286. "needConsent": true,
  287. "cookies": [],
  288. "js": function () {
  289. "use strict";
  290. tarteaucitron.fallback(['amazon_product'], function (x) {
  291. var amazonId = x.getAttribute("amazonid"),
  292. productId = x.getAttribute("productid"),
  293. url = '//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=' + tarteaucitron.getLanguage().toUpperCase() + '&source=ss&ref=ss_til&ad_type=product_link&tracking_id=' + amazonId + '&marketplace=amazon&region=' + tarteaucitron.getLanguage().toUpperCase() + '&placement=' + productId + '&asins=' + productId + '&show_border=true&link_opens_in_new_window=true',
  294. iframe = '<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="' + url + '"></iframe>';
  295. return iframe;
  296. });
  297. },
  298. "fallback": function () {
  299. "use strict";
  300. var id = 'amazon';
  301. tarteaucitron.fallback(['amazon_product'], tarteaucitron.engage(id));
  302. }
  303. };
  304. // calameo
  305. tarteaucitron.services.calameo = {
  306. "key": "calameo",
  307. "type": "video",
  308. "name": "Calameo",
  309. "uri": "https://fr.calameo.com/privacy",
  310. "needConsent": true,
  311. "cookies": [],
  312. "js": function () {
  313. "use strict";
  314. tarteaucitron.fallback(['calameo-canvas'], function (x) {
  315. var id = x.getAttribute("data-id"),
  316. width = x.getAttribute("width"),
  317. height = x.getAttribute("height"),
  318. url = '//v.calameo.com/?bkcode=' + id;
  319. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  320. });
  321. },
  322. "fallback": function () {
  323. "use strict";
  324. var id = 'calameo';
  325. tarteaucitron.fallback(['calameo-canvas'], function (elem) {
  326. elem.style.width = elem.getAttribute('width') + 'px';
  327. elem.style.height = elem.getAttribute('height') + 'px';
  328. return tarteaucitron.engage(id);
  329. });
  330. }
  331. };
  332. // clicky
  333. tarteaucitron.services.clicky = {
  334. "key": "clicky",
  335. "type": "analytic",
  336. "name": "Clicky",
  337. "uri": "https://clicky.com/terms",
  338. "needConsent": true,
  339. "cookies": ['_jsuid', '_eventqueue', '_referrer_og', '_utm_og', '_first_pageview', 'clicky_olark', 'no_trackyy_' + tarteaucitron.user.clickyId, 'unpoco_' + tarteaucitron.user.clickyId, 'heatmaps_g2g_' + tarteaucitron.user.clickyId],
  340. "js": function () {
  341. "use strict";
  342. if (tarteaucitron.user.clickyId === undefined) {
  343. return;
  344. }
  345. tarteaucitron.addScript('//static.getclicky.com/js', '', function () {
  346. if (typeof clicky.init === 'function') {
  347. clicky.init(tarteaucitron.user.clickyId);
  348. }
  349. if (typeof tarteaucitron.user.clickyMore === 'function') {
  350. tarteaucitron.user.clickyMore();
  351. }
  352. });
  353. }
  354. };
  355. // clicmanager
  356. tarteaucitron.services.clicmanager = {
  357. "key": "clicmanager",
  358. "type": "ads",
  359. "name": "Clicmanager",
  360. "uri": "http://www.clicmanager.fr/infos_legales.php",
  361. "needConsent": true,
  362. "cookies": [],
  363. "js": function () {
  364. "use strict";
  365. var uniqIds = [],
  366. i,
  367. uri;
  368. tarteaucitron.fallback(['clicmanager-canvas'], function (x) {
  369. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  370. uniqIds.push(uniqId);
  371. return '<div id="' + uniqId + '" c="' + x.getAttribute('c') + '" s="' + x.getAttribute('s') + '" t="' + x.getAttribute('t') + '"></div>';
  372. });
  373. for (i = 0; i < uniqIds.length; i += 1) {
  374. uri = '//ads.clicmanager.fr/exe.php?';
  375. uri += 'c=' + document.getElementById(uniqIds[i]).getAttribute('c') + '&';
  376. uri += 's=' + document.getElementById(uniqIds[i]).getAttribute('s') + '&';
  377. uri += 't=' + document.getElementById(uniqIds[i]).getAttribute('t');
  378. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  379. }
  380. },
  381. "fallback": function () {
  382. "use strict";
  383. var id = 'clicmanager';
  384. tarteaucitron.fallback(['clicmanager-canvas'], tarteaucitron.engage(id));
  385. }
  386. };
  387. // crazyegg
  388. tarteaucitron.services.crazyegg = {
  389. "key": "crazyegg",
  390. "type": "analytic",
  391. "name": "Crazy Egg",
  392. "uri": "https://www.crazyegg.com/privacy",
  393. "needConsent": true,
  394. "cookies": [],
  395. "js": function () {
  396. "use strict";
  397. if (tarteaucitron.user.crazyeggId === undefined) {
  398. return;
  399. }
  400. tarteaucitron.addScript('//script.crazyegg.com/pages/scripts/' + tarteaucitron.user.crazyeggId.substr(0, 4) + '/' + tarteaucitron.user.crazyeggId.substr(4, 4) + '.js');
  401. }
  402. };
  403. // criteo
  404. tarteaucitron.services.criteo = {
  405. "key": "criteo",
  406. "type": "ads",
  407. "name": "Criteo",
  408. "uri": "http://www.criteo.com/privacy/",
  409. "needConsent": true,
  410. "cookies": [],
  411. "js": function () {
  412. "use strict";
  413. document.MAX_ct0 = '';
  414. var uniqIds = [],
  415. i,
  416. uri;
  417. tarteaucitron.fallback(['criteo-canvas'], function (x) {
  418. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  419. uniqIds.push(uniqId);
  420. return '<div id="' + uniqId + '" zoneid="' + x.getAttribute('zoneid') + '"></div>';
  421. });
  422. for (i = 0; i < uniqIds.length; i += 1) {
  423. uri = '//cas.criteo.com/delivery/ajs.php?';
  424. uri += 'zoneid=' + document.getElementById(uniqIds[i]).getAttribute('zoneid');
  425. uri += '&nodis=1&cb=' + Math.floor(Math.random() * 99999999999);
  426. uri += '&loc=' + encodeURI(window.location);
  427. uri += (document.MAX_used !== ',') ? '&exclude=' + document.MAX_used : '';
  428. uri += (document.charset !== undefined ? '&charset=' + document.charset : '');
  429. uri += (document.characterSet !== undefined ? '&charset=' + document.characterSet : '');
  430. uri += (document.referrer !== undefined) ? '&referer=' + encodeURI(document.referrer) : '';
  431. uri += (document.context !== undefined) ? '&context=' + encodeURI(document.context) : '';
  432. uri += ((document.MAX_ct0 !== undefined) && (document.MAX_ct0.substring(0, 4) === 'http')) ? '&ct0=' + encodeURI(document.MAX_ct0) : '';
  433. uri += (document.mmm_fo !== undefined) ? '&mmm_fo=1' : '';
  434. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  435. }
  436. },
  437. "fallback": function () {
  438. "use strict";
  439. var id = 'criteo';
  440. tarteaucitron.fallback(['criteo-canvas'], tarteaucitron.engage(id));
  441. }
  442. };
  443. // dailymotion
  444. tarteaucitron.services.dailymotion = {
  445. "key": "dailymotion",
  446. "type": "video",
  447. "name": "Dailymotion",
  448. "uri": "https://www.dailymotion.com/legal/privacy",
  449. "needConsent": true,
  450. "cookies": ['ts', 'dmvk', 'hist', 'v1st', 's_vi'],
  451. "js": function () {
  452. "use strict";
  453. tarteaucitron.fallback(['dailymotion_player'], function (x) {
  454. var video_id = x.getAttribute("videoID"),
  455. video_width = x.getAttribute("width"),
  456. frame_width = 'width=',
  457. video_height = x.getAttribute("height"),
  458. frame_height = 'height=',
  459. video_frame,
  460. params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay");
  461. if (video_id === undefined) {
  462. return "";
  463. }
  464. if (video_width !== undefined) {
  465. frame_width += '"' + video_width + '" ';
  466. } else {
  467. frame_width += '"" ';
  468. }
  469. if (video_height !== undefined) {
  470. frame_height += '"' + video_height + '" ';
  471. } else {
  472. frame_height += '"" ';
  473. }
  474. video_frame = '<iframe src="//www.dailymotion.com/embed/video/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
  475. return video_frame;
  476. });
  477. },
  478. "fallback": function () {
  479. "use strict";
  480. var id = 'dailymotion';
  481. tarteaucitron.fallback(['dailymotion_player'], function (elem) {
  482. elem.style.width = elem.getAttribute('width') + 'px';
  483. elem.style.height = elem.getAttribute('height') + 'px';
  484. return tarteaucitron.engage(id);
  485. });
  486. }
  487. };
  488. // dating affiliation
  489. tarteaucitron.services.datingaffiliation = {
  490. "key": "datingaffiliation",
  491. "type": "ads",
  492. "name": "Dating Affiliation",
  493. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  494. "needConsent": true,
  495. "cookies": [],
  496. "js": function () {
  497. "use strict";
  498. tarteaucitron.fallback(['datingaffiliation-canvas'], function (x) {
  499. var comfrom = x.getAttribute("data-comfrom"),
  500. r = x.getAttribute("data-r"),
  501. p = x.getAttribute("data-p"),
  502. cf0 = x.getAttribute("data-cf0"),
  503. langue = x.getAttribute("data-langue"),
  504. forward_affiliate = x.getAttribute("data-forwardAffiliate"),
  505. cf2 = x.getAttribute("data-cf2"),
  506. cfsa2 = x.getAttribute("data-cfsa2"),
  507. width = x.getAttribute("width"),
  508. height = x.getAttribute("height"),
  509. url = 'http://www.tools-affil2.com/rotaban/ban.php?' + comfrom;
  510. return '<iframe src="' + url + '&r=' + r + '&p=' + p + '&cf0=' + cf0 + '&langue=' + langue + '&forward_affiliate=' + forward_affiliate + '&cf2=' + cf2 + '&cfsa2=' + cfsa2 + '" width="' + width + '" height="' + height + '" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"></iframe>';
  511. });
  512. },
  513. "fallback": function () {
  514. "use strict";
  515. var id = 'datingaffiliation';
  516. tarteaucitron.fallback(['datingaffiliation-canvas'], function (elem) {
  517. elem.style.width = elem.getAttribute('width') + 'px';
  518. elem.style.height = elem.getAttribute('height') + 'px';
  519. return tarteaucitron.engage(id);
  520. });
  521. }
  522. };
  523. // dating affiliation popup
  524. tarteaucitron.services.datingaffiliationpopup = {
  525. "key": "datingaffiliationpopup",
  526. "type": "ads",
  527. "name": "Dating Affiliation (Pop Up)",
  528. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  529. "needConsent": true,
  530. "cookies": ['__utma', '__utmb', '__utmc', '__utmt_Tools', '__utmv', '__utmz', '_ga', '_gat', '_gat_UA-65072040-17', '__da-pu-xflirt-ID-pc-o169'],
  531. "js": function () {
  532. "use strict";
  533. var uniqIds = [],
  534. i,
  535. uri;
  536. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], function (x) {
  537. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  538. uniqIds.push(uniqId);
  539. return '<div id="' + uniqId + '" uri="' + x.getAttribute('uri') + '" comfrom="' + x.getAttribute('comfrom') + '" promo="' + x.getAttribute('promo') + '" productid="' + x.getAttribute('productid') + '" submitconfig="' + x.getAttribute('submitconfig') + '" ur="' + x.getAttribute('ur') + '" brand="' + x.getAttribute('brand') + '" lang="' + x.getAttribute('lang') + '" cf0="' + x.getAttribute('cf0') + '" cf2="' + x.getAttribute('cf2') + '" subid1="' + x.getAttribute('subid1') + '" cfsa2="' + x.getAttribute('cfsa2') + '" subid2="' + x.getAttribute('subid2') + '" nicheid="' + x.getAttribute('nicheid') + '" degreid="' + x.getAttribute('degreid') + '" bt="' + x.getAttribute('bt') + '" vis="' + x.getAttribute('vis') + '" hid="' + x.getAttribute('hid') + '" snd="' + x.getAttribute('snd') + '" aabd="' + x.getAttribute('aabd') + '" aabs="' + x.getAttribute('aabs') + '"></div>';
  540. });
  541. for (i = 0; i < uniqIds.length; i += 1) {
  542. uri = 'http://www.promotools.biz/da/popunder/script.php?';
  543. uri += 'comfrom=' + document.getElementById(uniqIds[i]).getAttribute('comfrom') + '&';
  544. uri += 'promo=' + document.getElementById(uniqIds[i]).getAttribute('promo') + '&';
  545. uri += 'product_id=' + document.getElementById(uniqIds[i]).getAttribute('productid') + '&';
  546. uri += 'submitconfig=' + document.getElementById(uniqIds[i]).getAttribute('submitconfig') + '&';
  547. uri += 'ur=' + document.getElementById(uniqIds[i]).getAttribute('ur') + '&';
  548. uri += 'brand=' + document.getElementById(uniqIds[i]).getAttribute('brand') + '&';
  549. uri += 'lang=' + document.getElementById(uniqIds[i]).getAttribute('lang') + '&';
  550. uri += 'cf0=' + document.getElementById(uniqIds[i]).getAttribute('cf0') + '&';
  551. uri += 'cf2=' + document.getElementById(uniqIds[i]).getAttribute('cf2') + '&';
  552. uri += 'subid1=' + document.getElementById(uniqIds[i]).getAttribute('subid1') + '&';
  553. uri += 'cfsa2=' + document.getElementById(uniqIds[i]).getAttribute('cfsa2') + '&';
  554. uri += 'subid2=' + document.getElementById(uniqIds[i]).getAttribute('subid2') + '&';
  555. uri += 'nicheId=' + document.getElementById(uniqIds[i]).getAttribute('nicheid') + '&';
  556. uri += 'degreId=' + document.getElementById(uniqIds[i]).getAttribute('degreid') + '&';
  557. uri += 'bt=' + document.getElementById(uniqIds[i]).getAttribute('bt') + '&';
  558. uri += 'vis=' + document.getElementById(uniqIds[i]).getAttribute('vis') + '&';
  559. uri += 'hid=' + document.getElementById(uniqIds[i]).getAttribute('hid') + '&';
  560. uri += 'snd=' + document.getElementById(uniqIds[i]).getAttribute('snd') + '&';
  561. uri += 'aabd=' + document.getElementById(uniqIds[i]).getAttribute('aabd') + '&';
  562. uri += 'aabs=' + document.getElementById(uniqIds[i]).getAttribute('aabs');
  563. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  564. }
  565. },
  566. "fallback": function () {
  567. "use strict";
  568. var id = 'datingaffiliationpopup';
  569. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], tarteaucitron.engage(id));
  570. }
  571. };
  572. // disqus
  573. tarteaucitron.services.disqus = {
  574. "key": "disqus",
  575. "type": "comment",
  576. "name": "Disqus",
  577. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  578. "needConsent": true,
  579. "cookies": [],
  580. "js": function () {
  581. "use strict";
  582. if (tarteaucitron.user.disqusShortname === undefined) {
  583. return;
  584. }
  585. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  586. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  587. },
  588. "fallback": function () {
  589. "use strict";
  590. var id = 'disqus';
  591. if (document.getElementById('disqus_thread')) {
  592. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  593. }
  594. }
  595. };
  596. // ekomi
  597. tarteaucitron.services.ekomi = {
  598. "key": "ekomi",
  599. "type": "social",
  600. "name": "eKomi",
  601. "uri": "http://www.ekomi-us.com/us/privacy/",
  602. "needConsent": true,
  603. "cookies": [],
  604. "js": function () {
  605. "use strict";
  606. if (tarteaucitron.user.ekomiCertId === undefined) {
  607. return;
  608. }
  609. window.eKomiIntegrationConfig = [
  610. {certId: tarteaucitron.user.ekomiCertId}
  611. ];
  612. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  613. }
  614. };
  615. // etracker
  616. tarteaucitron.services.etracker = {
  617. "key": "etracker",
  618. "type": "analytic",
  619. "name": "eTracker",
  620. "uri": "https://www.etracker.com/en/data-protection.html",
  621. "needConsent": true,
  622. "cookies": [],
  623. "js": function () {
  624. "use strict";
  625. if (tarteaucitron.user.etracker === undefined) {
  626. return;
  627. }
  628. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  629. }
  630. };
  631. // facebook
  632. tarteaucitron.services.facebook = {
  633. "key": "facebook",
  634. "type": "social",
  635. "name": "Facebook",
  636. "uri": "https://www.facebook.com/policies/cookies/",
  637. "needConsent": true,
  638. "cookies": [],
  639. "js": function () {
  640. "use strict";
  641. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], '');
  642. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  643. if (tarteaucitron.isAjax === true) {
  644. if (typeof FB !== "undefined") {
  645. FB.XFBML.parse();
  646. }
  647. }
  648. },
  649. "fallback": function () {
  650. "use strict";
  651. var id = 'facebook';
  652. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id));
  653. }
  654. };
  655. // facebooklikebox
  656. tarteaucitron.services.facebooklikebox = {
  657. "key": "facebooklikebox",
  658. "type": "social",
  659. "name": "Facebook (like box)",
  660. "uri": "https://www.facebook.com/policies/cookies/",
  661. "needConsent": true,
  662. "cookies": [],
  663. "js": function () {
  664. "use strict";
  665. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  666. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  667. if (tarteaucitron.isAjax === true) {
  668. if (typeof FB !== "undefined") {
  669. FB.XFBML.parse();
  670. }
  671. }
  672. },
  673. "fallback": function () {
  674. "use strict";
  675. var id = 'facebooklikebox';
  676. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  677. }
  678. };
  679. // facebookcomment
  680. tarteaucitron.services.facebookcomment = {
  681. "key": "facebookcomment",
  682. "type": "comment",
  683. "name": "Facebook (commentaire)",
  684. "uri": "https://www.facebook.com/policies/cookies/",
  685. "needConsent": true,
  686. "cookies": [],
  687. "js": function () {
  688. "use strict";
  689. tarteaucitron.fallback(['fb-comments'], '');
  690. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  691. if (tarteaucitron.isAjax === true) {
  692. if (typeof FB !== "undefined") {
  693. FB.XFBML.parse();
  694. }
  695. }
  696. },
  697. "fallback": function () {
  698. "use strict";
  699. var id = 'facebookcomment';
  700. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  701. }
  702. };
  703. // ferank
  704. tarteaucitron.services.ferank = {
  705. "key": "ferank",
  706. "type": "analytic",
  707. "name": "FERank",
  708. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  709. "needConsent": false,
  710. "cookies": [],
  711. "js": function () {
  712. "use strict";
  713. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  714. if (typeof tarteaucitron.user.ferankMore === 'function') {
  715. tarteaucitron.user.ferankMore();
  716. }
  717. });
  718. }
  719. };
  720. // ferank pub
  721. tarteaucitron.services.ferankpub = {
  722. "key": "ferankpub",
  723. "type": "ads",
  724. "name": "FERank (pub)",
  725. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  726. "needConsent": false,
  727. "cookies": [],
  728. "js": function () {
  729. "use strict";
  730. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  731. if (tarteaucitron.isAjax === true) {
  732. if (typeof ferankReady === 'function') {
  733. ferankReady();
  734. }
  735. }
  736. },
  737. "fallback": function () {
  738. "use strict";
  739. var id = 'ferankpub';
  740. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  741. }
  742. };
  743. // get+
  744. tarteaucitron.services.getplus = {
  745. "key": "getplus",
  746. "type": "analytic",
  747. "name": "Get+",
  748. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  749. "needConsent": true,
  750. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  751. "js": function () {
  752. "use strict";
  753. if (tarteaucitron.user.getplusId === undefined) {
  754. return;
  755. }
  756. window.webleads_site_ids = window.webleads_site_ids || [];
  757. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  758. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  759. }
  760. };
  761. // google+
  762. tarteaucitron.services.gplus = {
  763. "key": "gplus",
  764. "type": "social",
  765. "name": "Google+",
  766. "uri": "https://policies.google.com/privacy",
  767. "needConsent": true,
  768. "cookies": [],
  769. "js": function () {
  770. "use strict";
  771. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  772. },
  773. "fallback": function () {
  774. "use strict";
  775. var id = 'gplus';
  776. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  777. }
  778. };
  779. // google+ badge
  780. tarteaucitron.services.gplusbadge = {
  781. "key": "gplusbadge",
  782. "type": "social",
  783. "name": "Google+ (badge)",
  784. "uri": "https://policies.google.com/privacy",
  785. "needConsent": true,
  786. "cookies": [],
  787. "js": function () {
  788. "use strict";
  789. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  790. },
  791. "fallback": function () {
  792. "use strict";
  793. var id = 'gplusbadge';
  794. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  795. }
  796. };
  797. // google adsense
  798. tarteaucitron.services.adsense = {
  799. "key": "adsense",
  800. "type": "ads",
  801. "name": "Google Adsense",
  802. "uri": "http://www.google.com/ads/preferences/",
  803. "needConsent": true,
  804. "cookies": [],
  805. "js": function () {
  806. "use strict";
  807. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  808. },
  809. "fallback": function () {
  810. "use strict";
  811. var id = 'adsense';
  812. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  813. }
  814. };
  815. // google partners badge
  816. tarteaucitron.services.googlepartners = {
  817. "key": "googlepartners",
  818. "type": "ads",
  819. "name": "Google Partners Badge",
  820. "uri": "http://www.google.com/ads/preferences/",
  821. "needConsent": true,
  822. "cookies": [],
  823. "js": function () {
  824. "use strict";
  825. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  826. },
  827. "fallback": function () {
  828. "use strict";
  829. var id = 'googlepartners';
  830. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  831. }
  832. };
  833. // google adsense search (form)
  834. tarteaucitron.services.adsensesearchform = {
  835. "key": "adsensesearchform",
  836. "type": "ads",
  837. "name": "Google Adsense Search (form)",
  838. "uri": "http://www.google.com/ads/preferences/",
  839. "needConsent": true,
  840. "cookies": [],
  841. "js": function () {
  842. "use strict";
  843. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  844. }
  845. };
  846. // google adsense search (result)
  847. tarteaucitron.services.adsensesearchresult = {
  848. "key": "adsensesearchresult",
  849. "type": "ads",
  850. "name": "Google Adsense Search (result)",
  851. "uri": "http://www.google.com/ads/preferences/",
  852. "needConsent": true,
  853. "cookies": [],
  854. "js": function () {
  855. "use strict";
  856. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  857. return;
  858. }
  859. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  860. },
  861. "fallback": function () {
  862. "use strict";
  863. var id = 'adsensesearchresult';
  864. if (document.getElementById('gcse_searchresults')) {
  865. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  866. }
  867. }
  868. };
  869. // googleadwordsconversion
  870. tarteaucitron.services.googleadwordsconversion = {
  871. "key": "googleadwordsconversion",
  872. "type": "ads",
  873. "name": "Google Adwords (conversion)",
  874. "uri": "https://www.google.com/settings/ads",
  875. "needConsent": true,
  876. "cookies": [],
  877. "js": function () {
  878. "use strict";
  879. if (tarteaucitron.user.adwordsconversionId === undefined) {
  880. return;
  881. }
  882. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  883. window.google_trackConversion({
  884. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  885. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  886. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  887. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  888. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  889. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  890. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  891. google_custom_params: {
  892. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  893. parameter2: tarteaucitron.user.adwordsconversionCustom2
  894. }
  895. });
  896. });
  897. }
  898. };
  899. // googleadwordsremarketing
  900. tarteaucitron.services.googleadwordsremarketing = {
  901. "key": "googleadwordsremarketing",
  902. "type": "ads",
  903. "name": "Google Adwords (remarketing)",
  904. "uri": "https://www.google.com/settings/ads",
  905. "needConsent": true,
  906. "cookies": [],
  907. "js": function () {
  908. "use strict";
  909. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  910. return;
  911. }
  912. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  913. window.google_trackConversion({
  914. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  915. google_remarketing_only: true
  916. });
  917. });
  918. }
  919. };
  920. // google analytics (old)
  921. tarteaucitron.services.gajs = {
  922. "key": "gajs",
  923. "type": "analytic",
  924. "name": "Google Analytics (ga.js)",
  925. "uri": "https://support.google.com/analytics/answer/6004245",
  926. "needConsent": true,
  927. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  928. "js": function () {
  929. "use strict";
  930. window._gaq = window._gaq || [];
  931. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  932. if (tarteaucitron.user.gajsAnonymizeIp) {
  933. window._gaq.push (['_gat._anonymizeIp']);
  934. }
  935. if (tarteaucitron.user.gajsPageView) {
  936. window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
  937. } else {
  938. window._gaq.push(['_trackPageview']);
  939. }
  940. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  941. if (typeof tarteaucitron.user.gajsMore === 'function') {
  942. tarteaucitron.user.gajsMore();
  943. }
  944. });
  945. }
  946. };
  947. // google analytics
  948. tarteaucitron.services.analytics = {
  949. "key": "analytics",
  950. "type": "analytic",
  951. "name": "Google Analytics (universal)",
  952. "uri": "https://support.google.com/analytics/answer/6004245",
  953. "needConsent": true,
  954. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  955. "js": function () {
  956. "use strict";
  957. window.GoogleAnalyticsObject = 'ga';
  958. window.ga = window.ga || function () {
  959. window.ga.q = window.ga.q || [];
  960. window.ga.q.push(arguments);
  961. };
  962. window.ga.l = new Date();
  963. tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
  964. var uaCreate = {'cookieExpires': 34128000};
  965. tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
  966. ga('create', tarteaucitron.user.analyticsUa, uaCreate);
  967. if (tarteaucitron.user.analyticsAnonymizeIp) {
  968. ga('set', 'anonymizeIp', true);
  969. }
  970. if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
  971. tarteaucitron.user.analyticsPrepare();
  972. }
  973. if (tarteaucitron.user.analyticsPageView) {
  974. ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
  975. } else {
  976. ga('send', 'pageview');
  977. }
  978. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  979. tarteaucitron.user.analyticsMore();
  980. }
  981. });
  982. }
  983. };
  984. // google analytics
  985. tarteaucitron.services.gtag = {
  986. "key": "gtag",
  987. "type": "analytic",
  988. "name": "Google Analytics (gtag.js)",
  989. "uri": "https://support.google.com/analytics/answer/6004245",
  990. "needConsent": true,
  991. "cookies": (function () {
  992. // Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
  993. var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gtagUa;
  994. gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
  995. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie];
  996. })(),
  997. "js": function () {
  998. "use strict";
  999. window.dataLayer = window.dataLayer || [];
  1000. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  1001. window.gtag = function gtag(){dataLayer.push(arguments);}
  1002. gtag('js', new Date());
  1003. gtag('config', tarteaucitron.user.gtagUa);
  1004. if (typeof tarteaucitron.user.gtagMore === 'function') {
  1005. tarteaucitron.user.gtagMore();
  1006. }
  1007. });
  1008. }
  1009. };
  1010. // google maps
  1011. tarteaucitron.services.googlemaps = {
  1012. "key": "googlemaps",
  1013. "type": "api",
  1014. "name": "Google Maps",
  1015. "uri": "http://www.google.com/ads/preferences/",
  1016. "needConsent": true,
  1017. "cookies": [],
  1018. "js": function () {
  1019. "use strict";
  1020. var mapOptions,
  1021. map,
  1022. uniqIds = [],
  1023. i;
  1024. if (tarteaucitron.user.mapscallback === undefined) {
  1025. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1026. }
  1027. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1028. var googleMapsLibraries = '';
  1029. if (tarteaucitron.user.googlemapsLibraries) {
  1030. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1031. }
  1032. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback + googleMapsLibraries);
  1033. window.tac_googlemaps_callback = function () {
  1034. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1035. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1036. uniqIds.push(uniqId);
  1037. return '<div id="' + uniqId + '" zoom="' + x.getAttribute('zoom') + '" latitude="' + x.getAttribute('latitude') + '" longitude="' + x.getAttribute('longitude') + '" style="width:' + x.offsetWidth + 'px;height:' + x.offsetHeight + 'px"></div>';
  1038. });
  1039. for (i = 0; i < uniqIds.length; i += 1) {
  1040. mapOptions = {
  1041. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1042. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1043. };
  1044. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1045. }
  1046. };
  1047. },
  1048. "fallback": function () {
  1049. "use strict";
  1050. var id = 'googlemaps';
  1051. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1052. }
  1053. };
  1054. // googlemaps search
  1055. tarteaucitron.services.googlemapssearch = {
  1056. "key": "googlemapssearch",
  1057. "type": "api",
  1058. "name": "Google Maps Seard API",
  1059. "uri": "http://www.google.com/ads/preferences/",
  1060. "needConsent": true,
  1061. "cookies": ['nid'],
  1062. "js": function () {
  1063. "use strict";
  1064. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1065. var width = x.getAttribute("width"),
  1066. height = x.getAttribute("height"),
  1067. // url = x.getAttribute("data-url");
  1068. query = escape(x.getAttribute("data-search")),
  1069. key = x.getAttribute("data-api-key");
  1070. // return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1071. return '<iframe width="' + width +'" height="' + height + '" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q='+query+'&key='+key+'" allowfullscreen></iframe> '
  1072. });
  1073. },
  1074. "fallback": function () {
  1075. "use strict";
  1076. var id = 'googlemapssearch';
  1077. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1078. elem.style.width = elem.getAttribute('width') + 'px';
  1079. elem.style.height = elem.getAttribute('height') + 'px';
  1080. return tarteaucitron.engage(id);
  1081. });
  1082. }
  1083. };
  1084. // googlemaps embed iframe
  1085. tarteaucitron.services.googlemapsembed = {
  1086. "key": "googlemapsembed",
  1087. "type": "api",
  1088. "name": "Google Maps Embed",
  1089. "uri": "http://www.google.com/ads/preferences/",
  1090. "needConsent": true,
  1091. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1092. "js": function () {
  1093. "use strict";
  1094. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1095. var width = tarteaucitron.getElemWidth(x),
  1096. height = tarteaucitron.getElemHeight(x),
  1097. url = x.getAttribute("data-url");
  1098. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1099. });
  1100. },
  1101. "fallback": function () {
  1102. "use strict";
  1103. var id = 'googlemapsembed';
  1104. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1105. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1106. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1107. return tarteaucitron.engage(id);
  1108. });
  1109. }
  1110. };
  1111. // google tag manager
  1112. tarteaucitron.services.googletagmanager = {
  1113. "key": "googletagmanager",
  1114. "type": "api",
  1115. "name": "Google Tag Manager",
  1116. "uri": "http://www.google.com/ads/preferences/",
  1117. "needConsent": true,
  1118. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1119. "js": function () {
  1120. "use strict";
  1121. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1122. return;
  1123. }
  1124. window.dataLayer = window.dataLayer || [];
  1125. window.dataLayer.push({
  1126. 'gtm.start': new Date().getTime(),
  1127. event: 'gtm.js'
  1128. });
  1129. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1130. }
  1131. };
  1132. // hubspot
  1133. tarteaucitron.services.hubspot = {
  1134. "key": "hubspot",
  1135. "type": "analytic",
  1136. "name": "Hubspot",
  1137. "uri": "https://legal.hubspot.com/privacy-policy",
  1138. "needConsent": true,
  1139. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1140. "js": function () {
  1141. "use strict";
  1142. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1143. }
  1144. };
  1145. // jsapi
  1146. tarteaucitron.services.jsapi = {
  1147. "key": "jsapi",
  1148. "type": "api",
  1149. "name": "Google jsapi",
  1150. "uri": "http://www.google.com/policies/privacy/",
  1151. "needConsent": true,
  1152. "cookies": [],
  1153. "js": function () {
  1154. "use strict";
  1155. tarteaucitron.addScript('//www.google.com/jsapi');
  1156. }
  1157. };
  1158. // twitterwidgetsapi
  1159. tarteaucitron.services.twitterwidgetsapi = {
  1160. "key": "twitterwidgetsapi",
  1161. "type": "api",
  1162. "name": "Twitter Widgets API",
  1163. "uri": "https://support.twitter.com/articles/20170514",
  1164. "needConsent": true,
  1165. "cookies": [],
  1166. "js": function () {
  1167. "use strict";
  1168. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1169. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1170. },
  1171. "fallback": function () {
  1172. "use strict";
  1173. var id = 'twitterwidgetsapi';
  1174. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1175. }
  1176. };
  1177. // recaptcha
  1178. tarteaucitron.services.recaptcha = {
  1179. "key": "recaptcha",
  1180. "type": "api",
  1181. "name": "reCAPTCHA",
  1182. "uri": "http://www.google.com/policies/privacy/",
  1183. "needConsent": true,
  1184. "cookies": ['nid'],
  1185. "js": function () {
  1186. "use strict";
  1187. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
  1188. tarteaucitron.fallback(['g-recaptcha'], '');
  1189. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  1190. },
  1191. "fallback": function () {
  1192. "use strict";
  1193. var id = 'recaptcha';
  1194. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1195. }
  1196. };
  1197. // linkedin
  1198. tarteaucitron.services.linkedin = {
  1199. "key": "linkedin",
  1200. "type": "social",
  1201. "name": "Linkedin",
  1202. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1203. "needConsent": true,
  1204. "cookies": [],
  1205. "js": function () {
  1206. "use strict";
  1207. tarteaucitron.fallback(['tacLinkedin'], '');
  1208. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1209. if (tarteaucitron.isAjax === true) {
  1210. if (typeof IN !== "undefined") {
  1211. IN.parse();
  1212. }
  1213. }
  1214. },
  1215. "fallback": function () {
  1216. "use strict";
  1217. var id = 'linkedin';
  1218. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1219. }
  1220. };
  1221. // mautic
  1222. tarteaucitron.services.mautic = {
  1223. "key": "mautic",
  1224. "type": "analytic",
  1225. "name": "Mautic",
  1226. "uri": "https://www.mautic.org/privacy-policy/",
  1227. "needConsent": true,
  1228. "cookies": ['mtc_id', 'mtc_sid'],
  1229. "js": function () {
  1230. "use strict";
  1231. if (tarteaucitron.user.mauticurl === undefined) {
  1232. return;
  1233. }
  1234. window['MauticTrackingObject'] = 'mt';
  1235. window['mt'] = window['mt'] || function() {
  1236. (window['mt'].q = window['mt'].q || []).push(arguments);
  1237. };
  1238. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1239. mt('send', 'pageview');
  1240. });
  1241. }
  1242. };
  1243. // microsoftcampaignanalytics
  1244. tarteaucitron.services.microsoftcampaignanalytics = {
  1245. "key": "microsoftcampaignanalytics",
  1246. "type": "analytic",
  1247. "name": "Microsoft Campaign Analytics",
  1248. "uri": "https://privacy.microsoft.com/privacystatement/",
  1249. "needConsent": true,
  1250. "cookies": [],
  1251. "js": function () {
  1252. "use strict";
  1253. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1254. return;
  1255. }
  1256. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1257. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1258. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1259. });
  1260. }
  1261. };
  1262. // pinterest
  1263. tarteaucitron.services.pinterest = {
  1264. "key": "pinterest",
  1265. "type": "social",
  1266. "name": "Pinterest",
  1267. "uri": "https://about.pinterest.com/privacy-policy",
  1268. "needConsent": true,
  1269. "cookies": [],
  1270. "js": function () {
  1271. "use strict";
  1272. tarteaucitron.fallback(['tacPinterest'], '');
  1273. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1274. },
  1275. "fallback": function () {
  1276. "use strict";
  1277. var id = 'pinterest';
  1278. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1279. }
  1280. };
  1281. // prelinker
  1282. tarteaucitron.services.prelinker = {
  1283. "key": "prelinker",
  1284. "type": "ads",
  1285. "name": "Prelinker",
  1286. "uri": "http://www.prelinker.com/index/index/cgu/",
  1287. "needConsent": true,
  1288. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1289. "js": function () {
  1290. "use strict";
  1291. var uniqIds = [],
  1292. i,
  1293. uri;
  1294. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1295. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1296. uniqIds.push(uniqId);
  1297. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1298. });
  1299. for (i = 0; i < uniqIds.length; i += 1) {
  1300. uri = 'http://promo.easy-dating.org/banner/index?';
  1301. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1302. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1303. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1304. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1305. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1306. }
  1307. },
  1308. "fallback": function () {
  1309. "use strict";
  1310. var id = 'prelinker';
  1311. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1312. }
  1313. };
  1314. // prezi
  1315. tarteaucitron.services.prezi = {
  1316. "key": "prezi",
  1317. "type": "video",
  1318. "name": "Prezi",
  1319. "uri": "https://prezi.com/privacy-policy/",
  1320. "needConsent": true,
  1321. "cookies": [],
  1322. "js": function () {
  1323. "use strict";
  1324. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1325. var id = x.getAttribute("data-id"),
  1326. width = x.getAttribute("width"),
  1327. height = x.getAttribute("height"),
  1328. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1329. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1330. });
  1331. },
  1332. "fallback": function () {
  1333. "use strict";
  1334. var id = 'prezi';
  1335. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1336. elem.style.width = elem.getAttribute('width') + 'px';
  1337. elem.style.height = elem.getAttribute('height') + 'px';
  1338. return tarteaucitron.engage(id);
  1339. });
  1340. }
  1341. };
  1342. // pubdirecte
  1343. tarteaucitron.services.pubdirecte = {
  1344. "key": "pubdirecte",
  1345. "type": "ads",
  1346. "name": "Pubdirecte",
  1347. "uri": "http://pubdirecte.com/contact.php",
  1348. "needConsent": true,
  1349. "cookies": [],
  1350. "js": function () {
  1351. "use strict";
  1352. var uniqIds = [],
  1353. i,
  1354. uri;
  1355. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1356. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1357. uniqIds.push(uniqId);
  1358. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1359. });
  1360. for (i = 0; i < uniqIds.length; i += 1) {
  1361. uri = '//www.pubdirecte.com/script/banniere.php?';
  1362. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1363. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1364. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1365. }
  1366. },
  1367. "fallback": function () {
  1368. "use strict";
  1369. var id = 'pubdirecte';
  1370. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1371. }
  1372. };
  1373. // purechat
  1374. tarteaucitron.services.purechat = {
  1375. "key": "purechat",
  1376. "type": "support",
  1377. "name": "PureChat",
  1378. "uri": "https://www.purechat.com/privacy",
  1379. "needConsent": true,
  1380. "cookies": [],
  1381. "js": function () {
  1382. "use strict";
  1383. if (tarteaucitron.user.purechatId === undefined) {
  1384. return;
  1385. }
  1386. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1387. try {
  1388. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1389. } catch (e) {}
  1390. });
  1391. }
  1392. };
  1393. // shareaholic
  1394. tarteaucitron.services.shareaholic = {
  1395. "key": "shareaholic",
  1396. "type": "social",
  1397. "name": "Shareaholic",
  1398. "uri": "https://shareaholic.com/privacy/choices",
  1399. "needConsent": true,
  1400. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1401. "js": function () {
  1402. "use strict";
  1403. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1404. return;
  1405. }
  1406. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1407. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1408. try {
  1409. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1410. } catch (e) {}
  1411. });
  1412. },
  1413. "fallback": function () {
  1414. "use strict";
  1415. var id = 'shareaholic';
  1416. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1417. }
  1418. };
  1419. // shareasale
  1420. tarteaucitron.services.shareasale = {
  1421. "key": "shareasale",
  1422. "type": "ads",
  1423. "name": "ShareASale",
  1424. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1425. "needConsent": true,
  1426. "cookies": [],
  1427. "js": function () {
  1428. "use strict";
  1429. var uniqIds = [],
  1430. i,
  1431. uri;
  1432. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1433. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1434. uniqIds.push(uniqId);
  1435. return '<div id="' + uniqId + '" amount="' + x.getAttribute('amount') + '" tracking="' + x.getAttribute('tracking') + '" transtype="' + x.getAttribute('transtype') + '" persale="' + x.getAttribute('persale') + '" perlead="' + x.getAttribute('perlead') + '" perhit="' + x.getAttribute('perhit') + '" merchantID="' + x.getAttribute('merchantID') + '"></div>';
  1436. });
  1437. for (i = 0; i < uniqIds.length; i += 1) {
  1438. uri = 'https://shareasale.com/sale.cfm?';
  1439. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1440. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1441. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1442. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1443. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1444. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1445. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1446. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1447. }
  1448. },
  1449. "fallback": function () {
  1450. "use strict";
  1451. var id = 'shareasale';
  1452. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1453. }
  1454. };
  1455. // sharethis
  1456. tarteaucitron.services.sharethis = {
  1457. "key": "sharethis",
  1458. "type": "social",
  1459. "name": "ShareThis",
  1460. "uri": "http://www.sharethis.com/legal/privacy/",
  1461. "needConsent": true,
  1462. "cookies": ['__unam'],
  1463. "js": function () {
  1464. "use strict";
  1465. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1466. return;
  1467. }
  1468. var switchTo5x = true,
  1469. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1470. tarteaucitron.fallback(['tacSharethis'], '');
  1471. tarteaucitron.addScript(uri, '', function () {
  1472. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1473. });
  1474. if (tarteaucitron.isAjax === true) {
  1475. if (typeof stButtons !== "undefined") {
  1476. stButtons.locateElements();
  1477. }
  1478. }
  1479. },
  1480. "fallback": function () {
  1481. "use strict";
  1482. var id = 'sharethis';
  1483. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1484. }
  1485. };
  1486. // slideshare
  1487. tarteaucitron.services.slideshare = {
  1488. "key": "slideshare",
  1489. "type": "video",
  1490. "name": "SlideShare",
  1491. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1492. "needConsent": true,
  1493. "cookies": [],
  1494. "js": function () {
  1495. "use strict";
  1496. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1497. var id = x.getAttribute("data-id"),
  1498. width = x.getAttribute("width"),
  1499. height = x.getAttribute("height"),
  1500. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1501. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1502. });
  1503. },
  1504. "fallback": function () {
  1505. "use strict";
  1506. var id = 'slideshare';
  1507. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1508. elem.style.width = elem.getAttribute('width') + 'px';
  1509. elem.style.height = elem.getAttribute('height') + 'px';
  1510. return tarteaucitron.engage(id);
  1511. });
  1512. }
  1513. };
  1514. // statcounter
  1515. tarteaucitron.services.statcounter = {
  1516. "key": "statcounter",
  1517. "type": "analytic",
  1518. "name": "StatCounter",
  1519. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1520. "needConsent": true,
  1521. "cookies": ['sc_is_visitor_unique'],
  1522. "js": function () {
  1523. "use strict";
  1524. var uniqIds = [],
  1525. i,
  1526. uri = '//statcounter.com/counter/counter.js';
  1527. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1528. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1529. uniqIds.push(uniqId);
  1530. return '<div id="' + uniqId + '"></div>';
  1531. });
  1532. for (i = 0; i < uniqIds.length; i += 1) {
  1533. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1534. }
  1535. },
  1536. "fallback": function () {
  1537. "use strict";
  1538. var id = 'statcounter';
  1539. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1540. }
  1541. };
  1542. // timelinejs
  1543. tarteaucitron.services.timelinejs = {
  1544. "key": "timelinejs",
  1545. "type": "api",
  1546. "name": "Timeline JS",
  1547. "uri": "http://timeline.knightlab.com/#help",
  1548. "needConsent": true,
  1549. "cookies": [],
  1550. "js": function () {
  1551. "use strict";
  1552. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1553. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1554. width = x.getAttribute("width"),
  1555. height = x.getAttribute("height"),
  1556. lang = x.getAttribute("lang_2_letter"),
  1557. font = x.getAttribute("font"),
  1558. map = x.getAttribute("map"),
  1559. start_at_end = x.getAttribute("start_at_end"),
  1560. hash_bookmark = x.getAttribute("hash_bookmark"),
  1561. start_at_slide = x.getAttribute("start_at_slide"),
  1562. start_zoom = x.getAttribute("start_zoom"),
  1563. url = '//cdn.knightlab.com/libs/timeline/latest/embed/index.html?source=' + spreadsheet_id + '&font=' + font + '&maptype=' + map + '&lang=' + lang + '&start_at_end=' + start_at_end + '&hash_bookmark=' + hash_bookmark + '&start_at_slide=' + start_at_slide + '&start_zoom_adjust=' + start_zoom + '&height=' + height;
  1564. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1565. });
  1566. },
  1567. "fallback": function () {
  1568. "use strict";
  1569. var id = 'timelinejs';
  1570. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1571. elem.style.width = elem.getAttribute('width') + 'px';
  1572. elem.style.height = elem.getAttribute('height') + 'px';
  1573. return tarteaucitron.engage(id);
  1574. });
  1575. }
  1576. };
  1577. // tagcommander
  1578. tarteaucitron.services.tagcommander = {
  1579. "key": "tagcommander",
  1580. "type": "api",
  1581. "name": "TagCommander",
  1582. "uri": "https://www.commandersact.com/en/privacy/",
  1583. "needConsent": true,
  1584. "cookies": [],
  1585. "js": function () {
  1586. "use strict";
  1587. if (tarteaucitron.user.tagcommanderid === undefined) {
  1588. return;
  1589. }
  1590. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  1591. }
  1592. };
  1593. // typekit
  1594. tarteaucitron.services.typekit = {
  1595. "key": "typekit",
  1596. "type": "api",
  1597. "name": "Typekit (adobe)",
  1598. "uri": "http://www.adobe.com/fr/privacy.html",
  1599. "needConsent": true,
  1600. "cookies": [],
  1601. "js": function () {
  1602. "use strict";
  1603. if (tarteaucitron.user.typekitId === undefined) {
  1604. return;
  1605. }
  1606. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1607. try {
  1608. Typekit.load();
  1609. } catch (e) {}
  1610. });
  1611. }
  1612. };
  1613. // twenga
  1614. tarteaucitron.services.twenga = {
  1615. "key": "twenga",
  1616. "type": "ads",
  1617. "name": "Twenga",
  1618. "uri": "http://www.twenga.com/privacy.php",
  1619. "needConsent": true,
  1620. "cookies": [],
  1621. "js": function () {
  1622. "use strict";
  1623. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1624. return;
  1625. }
  1626. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1627. }
  1628. };
  1629. // twitter
  1630. tarteaucitron.services.twitter = {
  1631. "key": "twitter",
  1632. "type": "social",
  1633. "name": "Twitter",
  1634. "uri": "https://support.twitter.com/articles/20170514",
  1635. "needConsent": true,
  1636. "cookies": [],
  1637. "js": function () {
  1638. "use strict";
  1639. tarteaucitron.fallback(['tacTwitter'], '');
  1640. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1641. },
  1642. "fallback": function () {
  1643. "use strict";
  1644. var id = 'twitter';
  1645. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1646. }
  1647. };
  1648. // twitter embed
  1649. tarteaucitron.services.twitterembed = {
  1650. "key": "twitterembed",
  1651. "type": "social",
  1652. "name": "Twitter (cards)",
  1653. "uri": "https://support.twitter.com/articles/20170514",
  1654. "needConsent": true,
  1655. "cookies": [],
  1656. "js": function () {
  1657. "use strict";
  1658. var uniqIds = [],
  1659. i,
  1660. e,
  1661. html;
  1662. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1663. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1664. uniqIds.push(uniqId);
  1665. html = '<div id="' + uniqId + '" ';
  1666. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1667. html += 'theme="' + x.getAttribute('theme') + '" ';
  1668. html += 'cards="' + x.getAttribute('cards') + '" ';
  1669. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1670. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1671. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1672. html += '></div>';
  1673. return html;
  1674. });
  1675. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1676. for (i = 0; i < uniqIds.length; i += 1) {
  1677. e = document.getElementById(uniqIds[i]);
  1678. twttr.widgets.createTweet(
  1679. e.getAttribute('tweetid'),
  1680. e,
  1681. {
  1682. theme: e.getAttribute('theme'),
  1683. cards: e.getAttribute('cards'),
  1684. conversation: e.getAttribute('conversation'),
  1685. lang: tarteaucitron.getLanguage(),
  1686. dnt: true,
  1687. width: e.getAttribute('data-width'),
  1688. align: e.getAttribute('data-align')
  1689. }
  1690. );
  1691. }
  1692. });
  1693. },
  1694. "fallback": function () {
  1695. "use strict";
  1696. var id = 'twitterembed';
  1697. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1698. elem.style.width = elem.getAttribute('data-width') + 'px';
  1699. return tarteaucitron.engage(id);
  1700. });
  1701. }
  1702. };
  1703. // twitter timeline
  1704. tarteaucitron.services.twittertimeline = {
  1705. "key": "twittertimeline",
  1706. "type": "social",
  1707. "name": "Twitter (timelines)",
  1708. "uri": "https://support.twitter.com/articles/20170514",
  1709. "needConsent": true,
  1710. "cookies": [],
  1711. "js": function () {
  1712. "use strict";
  1713. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1714. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1715. },
  1716. "fallback": function () {
  1717. "use strict";
  1718. var id = 'twittertimeline';
  1719. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1720. }
  1721. };
  1722. // user voice
  1723. tarteaucitron.services.uservoice = {
  1724. "key": "uservoice",
  1725. "type": "support",
  1726. "name": "UserVoice",
  1727. "uri": "https://www.uservoice.com/privacy/",
  1728. "needConsent": true,
  1729. "cookies": [],
  1730. "js": function () {
  1731. "use strict";
  1732. if (tarteaucitron.user.userVoiceApi === undefined) {
  1733. return;
  1734. }
  1735. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1736. }
  1737. };
  1738. // vimeo
  1739. tarteaucitron.services.vimeo = {
  1740. "key": "vimeo",
  1741. "type": "video",
  1742. "name": "Vimeo",
  1743. "uri": "http://vimeo.com/privacy",
  1744. "needConsent": true,
  1745. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1746. "js": function () {
  1747. "use strict";
  1748. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1749. var video_id = x.getAttribute("videoID"),
  1750. video_width = x.getAttribute("width"),
  1751. frame_width = 'width=',
  1752. video_height = x.getAttribute("height"),
  1753. frame_height = 'height=',
  1754. video_frame;
  1755. if (video_id === undefined) {
  1756. return "";
  1757. }
  1758. if (video_width !== undefined) {
  1759. frame_width += '"' + video_width + '" ';
  1760. } else {
  1761. frame_width += '"" ';
  1762. }
  1763. if (video_height !== undefined) {
  1764. frame_height += '"' + video_height + '" ';
  1765. } else {
  1766. frame_height += '"" ';
  1767. }
  1768. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1769. return video_frame;
  1770. });
  1771. },
  1772. "fallback": function () {
  1773. "use strict";
  1774. var id = 'vimeo';
  1775. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1776. elem.style.width = elem.getAttribute('width') + 'px';
  1777. elem.style.height = elem.getAttribute('height') + 'px';
  1778. return tarteaucitron.engage(id);
  1779. });
  1780. }
  1781. };
  1782. // visualrevenue
  1783. tarteaucitron.services.visualrevenue = {
  1784. "key": "visualrevenue",
  1785. "type": "analytic",
  1786. "name": "VisualRevenue",
  1787. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1788. "needConsent": true,
  1789. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1790. "js": function () {
  1791. "use strict";
  1792. if (tarteaucitron.user.visualrevenueId === undefined) {
  1793. return;
  1794. }
  1795. window._vrq = window._vrq || [];
  1796. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1797. window._vrq.push(['automate', true]);
  1798. window._vrq.push(['track', function () {}]);
  1799. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1800. }
  1801. };
  1802. // vshop
  1803. tarteaucitron.services.vshop = {
  1804. "key": "vshop",
  1805. "type": "ads",
  1806. "name": "vShop",
  1807. "uri": "http://vshop.fr/privacy-policy",
  1808. "needConsent": true,
  1809. "cookies": [],
  1810. "js": function () {
  1811. "use strict";
  1812. tarteaucitron.fallback(['vcashW'], '');
  1813. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1814. },
  1815. "fallback": function () {
  1816. "use strict";
  1817. var id = 'vshop';
  1818. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1819. }
  1820. };
  1821. // wysistat
  1822. tarteaucitron.services.wysistat = {
  1823. "key": "wysistat",
  1824. "type": "analytic",
  1825. "name": "Wysistat",
  1826. "uri": "http://wysistat.net/contact/",
  1827. "needConsent": true,
  1828. "cookies": ['Wysistat'],
  1829. "js": function () {
  1830. "use strict";
  1831. if (tarteaucitron.user.wysistat === undefined) {
  1832. return;
  1833. }
  1834. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1835. window.stat(tarteaucitron.user.wysistat.cli, tarteaucitron.user.wysistat.frm, tarteaucitron.user.wysistat.prm, tarteaucitron.user.wysistat.ce, tarteaucitron.user.wysistat.page, tarteaucitron.user.wysistat.roi, tarteaucitron.user.wysistat.prof, tarteaucitron.user.wysistat.cpt);
  1836. });
  1837. }
  1838. };
  1839. // xiti
  1840. tarteaucitron.services.xiti = {
  1841. "key": "xiti",
  1842. "type": "analytic",
  1843. "name": "Xiti",
  1844. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1845. "needConsent": true,
  1846. "cookies": [],
  1847. "js": function () {
  1848. "use strict";
  1849. if (tarteaucitron.user.xitiId === undefined) {
  1850. return;
  1851. }
  1852. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1853. Xt_r,
  1854. Xt_h,
  1855. Xt_i,
  1856. Xt_s,
  1857. div = document.createElement('div');
  1858. try {
  1859. Xt_r = top.document.referrer;
  1860. } catch (e) {
  1861. Xt_r = document.referrer;
  1862. }
  1863. Xt_h = new Date();
  1864. Xt_i = '<img style="display:none" border="0" alt="" ';
  1865. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1866. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1867. if (parseFloat(navigator.appVersion) >= 4) {
  1868. Xt_s = screen;
  1869. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1870. }
  1871. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1872. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1873. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1874. tarteaucitron.user.xitiMore();
  1875. }
  1876. }
  1877. };
  1878. // AT Internet
  1879. tarteaucitron.services.atinternet = {
  1880. "key": "atinternet",
  1881. "type": "analytic",
  1882. "name": "AT Internet",
  1883. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1884. "needConsent": true,
  1885. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  1886. "js": function () {
  1887. "use strict";
  1888. if (tarteaucitron.user.atLibUrl === undefined) {
  1889. return;
  1890. }
  1891. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  1892. if (typeof tarteaucitron.user.atMore === 'function') {
  1893. tarteaucitron.user.atMore();
  1894. }
  1895. })
  1896. }
  1897. };
  1898. // youtube
  1899. tarteaucitron.services.youtube = {
  1900. "key": "youtube",
  1901. "type": "video",
  1902. "name": "YouTube",
  1903. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1904. "needConsent": true,
  1905. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1906. "js": function () {
  1907. "use strict";
  1908. tarteaucitron.fallback(['youtube_player'], function (x) {
  1909. var video_id = x.getAttribute("videoID"),
  1910. video_width = x.getAttribute("width"),
  1911. frame_width = 'width=',
  1912. video_height = x.getAttribute("height"),
  1913. frame_height = 'height=',
  1914. video_frame,
  1915. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1916. if (video_id === undefined) {
  1917. return "";
  1918. }
  1919. if (video_width !== undefined) {
  1920. frame_width += '"' + video_width + '" ';
  1921. } else {
  1922. frame_width += '"" ';
  1923. }
  1924. if (video_height !== undefined) {
  1925. frame_height += '"' + video_height + '" ';
  1926. } else {
  1927. frame_height += '"" ';
  1928. }
  1929. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1930. return video_frame;
  1931. });
  1932. },
  1933. "fallback": function () {
  1934. "use strict";
  1935. var id = 'youtube';
  1936. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1937. elem.style.width = elem.getAttribute('width') + 'px';
  1938. elem.style.height = elem.getAttribute('height') + 'px';
  1939. return tarteaucitron.engage(id);
  1940. });
  1941. }
  1942. };
  1943. // youtube playlist
  1944. tarteaucitron.services.youtubeplaylist = {
  1945. "key": "youtubeplaylist",
  1946. "type": "video",
  1947. "name": "YouTube (playlist)",
  1948. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1949. "needConsent": true,
  1950. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1951. "js": function () {
  1952. "use strict";
  1953. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  1954. var playlist_id = x.getAttribute("playlistID"),
  1955. video_width = x.getAttribute("width"),
  1956. frame_width = 'width=',
  1957. video_height = x.getAttribute("height"),
  1958. frame_height = 'height=',
  1959. video_frame,
  1960. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1961. if (playlist_id === undefined) {
  1962. return "";
  1963. }
  1964. if (video_width !== undefined) {
  1965. frame_width += '"' + video_width + '" ';
  1966. } else {
  1967. frame_width += '"" ';
  1968. }
  1969. if (video_height !== undefined) {
  1970. frame_height += '"' + video_height + '" ';
  1971. } else {
  1972. frame_height += '"" ';
  1973. }
  1974. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0"></iframe>';
  1975. return video_frame;
  1976. });
  1977. },
  1978. "fallback": function () {
  1979. "use strict";
  1980. var id = 'youtubeplaylist';
  1981. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  1982. elem.style.width = elem.getAttribute('width') + 'px';
  1983. elem.style.height = elem.getAttribute('height') + 'px';
  1984. return tarteaucitron.engage(id);
  1985. });
  1986. }
  1987. };
  1988. // zopim
  1989. tarteaucitron.services.zopim = {
  1990. "key": "zopim",
  1991. "type": "support",
  1992. "name": "Zopim",
  1993. "uri": "https://www.zopim.com/privacy",
  1994. "needConsent": true,
  1995. "cookies": ['__zlcid', '__zprivacy'],
  1996. "js": function () {
  1997. "use strict";
  1998. if (tarteaucitron.user.zopimID === undefined) {
  1999. return;
  2000. }
  2001. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  2002. }
  2003. };
  2004. // xiti smartTag
  2005. tarteaucitron.services.xiti_smarttag = {
  2006. "key": "xiti_smarttag",
  2007. "type": "analytic",
  2008. "name": "Xiti (SmartTag)",
  2009. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  2010. "needConsent": true,
  2011. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  2012. "js": function () {
  2013. "use strict";
  2014. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  2015. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  2016. } else {
  2017. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  2018. if (xitiSmarttagId === undefined) {
  2019. return;
  2020. }
  2021. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  2022. }
  2023. }
  2024. };
  2025. // facebook pixel
  2026. tarteaucitron.services.facebookpixel = {
  2027. "key": "facebookpixel",
  2028. "type": "ads",
  2029. "name": "Facebook Pixel",
  2030. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  2031. "needConsent": true,
  2032. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  2033. "js": function () {
  2034. "use strict";
  2035. var n;
  2036. if(window.fbq)return;
  2037. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2038. if(!window._fbq)window._fbq=n;
  2039. n.push=n;
  2040. n.loaded=!0;
  2041. n.version='2.0';
  2042. n.queue=[];
  2043. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2044. fbq('init', tarteaucitron.user.facebookpixelId);
  2045. fbq('track', 'PageView');
  2046. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2047. tarteaucitron.user.facebookpixelMore();
  2048. }
  2049. }
  2050. };
  2051. //Issuu
  2052. tarteaucitron.services.issuu = {
  2053. "key": "issuu",
  2054. "type": "other",
  2055. "name": "Issuu",
  2056. "uri": "https://issuu.com/legal/privacy",
  2057. "needConsent": true,
  2058. "cookies": ['__qca', 'iutk', 'mc'],
  2059. "js": function () {
  2060. "use strict";
  2061. tarteaucitron.fallback(['issuu_player'], function (x) {
  2062. var issuu_id = x.getAttribute("issuuID"),
  2063. issuu_width = x.getAttribute("width"),
  2064. frame_width = 'width=',
  2065. issuu_height = x.getAttribute("height"),
  2066. frame_height = 'height=',
  2067. issuu_frame;
  2068. if (issuu_id === undefined) {
  2069. return "";
  2070. }
  2071. if (issuu_width !== undefined) {
  2072. frame_width += '"' + issuu_width + '" ';
  2073. } else {
  2074. frame_width += '"" ';
  2075. }
  2076. if (issuu_height !== undefined) {
  2077. frame_height += '"' + issuu_height + '" ';
  2078. } else {
  2079. frame_height += '"" ';
  2080. }
  2081. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
  2082. return issuu_frame;
  2083. });
  2084. },
  2085. "fallback": function () {
  2086. "use strict";
  2087. var id = 'issuu';
  2088. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2089. elem.style.width = elem.getAttribute('width') + 'px';
  2090. elem.style.height = elem.getAttribute('height') + 'px';
  2091. return tarteaucitron.engage(id);
  2092. });
  2093. }
  2094. };
  2095. // webmecanik
  2096. tarteaucitron.services.webmecanik = {
  2097. "key": "webmecanik",
  2098. "type": "analytic",
  2099. "name": "Webmecanik",
  2100. "uri": "https://webmecanik.com/tos",
  2101. "needConsent": true,
  2102. "cookies": ['mtc_id', 'mtc_sid'],
  2103. "js": function () {
  2104. "use strict";
  2105. if (tarteaucitron.user.webmecanikurl === undefined) {
  2106. return;
  2107. }
  2108. window['WebmecanikTrackingObject'] = 'mt';
  2109. window['mt'] = window['mt'] || function() {
  2110. (window['mt'].q = window['mt'].q || []).push(arguments);
  2111. };
  2112. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2113. mt('send', 'pageview');
  2114. });
  2115. }
  2116. };
  2117. // google analytics multiple
  2118. tarteaucitron.services.multiplegtag = {
  2119. "key": "multiplegtag",
  2120. "type": "analytic",
  2121. "name": "Google Analytics (gtag.js)",
  2122. "uri": "https://support.google.com/analytics/answer/6004245",
  2123. "needConsent": true,
  2124. "cookies": (function () {
  2125. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2126. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2127. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2128. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2129. });
  2130. }
  2131. return cookies;
  2132. })(),
  2133. "js": function () {
  2134. "use strict";
  2135. window.dataLayer = window.dataLayer || [];
  2136. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2137. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2138. window.gtag = function gtag(){dataLayer.push(arguments);}
  2139. gtag('js', new Date());
  2140. gtag('config', ua);
  2141. });
  2142. });
  2143. }
  2144. };
  2145. // Koban
  2146. tarteaucitron.services.koban = {
  2147. "key": "koban",
  2148. "type": "analytic",
  2149. "name": "Koban",
  2150. "uri": "https://koban.cloud/tos",
  2151. "needConsent": true,
  2152. "cookies": ['kbntrk'],
  2153. "js": function () {
  2154. "use strict";
  2155. if (tarteaucitron.user.kobanurl === undefined) {
  2156. return;
  2157. }
  2158. if (tarteaucitron.user.kobanapi === undefined) {
  2159. return;
  2160. }
  2161. window.KobanObject = 'kb';
  2162. window.kb = window.kb || function() {
  2163. window.kb.q = window.kb.q || [];
  2164. window.kb.q.push(arguments);
  2165. };
  2166. window.kb.l = new Date();
  2167. kb('reg', tarteaucitron.user.kobanapi);
  2168. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  2169. });
  2170. }
  2171. };
  2172. // matomo
  2173. /*
  2174. 1. Set the following variable before the initialization :
  2175. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  2176. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  2177. 2. Push the service :
  2178. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  2179. 3. HTML
  2180. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2181. */
  2182. tarteaucitron.services.matomo = {
  2183. "key": "matomo",
  2184. "type": "analytic",
  2185. "name": "Matomo (formerly known as Piwik)",
  2186. "uri": "https://matomo.org/faq/general/faq_146/",
  2187. "needConsent": false,
  2188. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2189. "js": function () {
  2190. "use strict";
  2191. if (tarteaucitron.user.matomoId === undefined) {
  2192. return;
  2193. }
  2194. window._paq = window._paq || [];
  2195. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2196. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2197. window._paq.push(["setDoNotTrack", 1]);
  2198. window._paq.push(["trackPageView"]);
  2199. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2200. window._paq.push(["enableLinkTracking"]);
  2201. window._paq.push([function() {
  2202. var self = this;
  2203. function getOriginalVisitorCookieTimeout() {
  2204. var now = new Date(),
  2205. nowTs = Math.round(now.getTime() / 1000),
  2206. visitorInfo = self.getVisitorInfo();
  2207. var createTs = parseInt(visitorInfo[2]);
  2208. var cookieTimeout = 33696000; // 13 mois en secondes
  2209. var originalTimeout = createTs + cookieTimeout - nowTs;
  2210. return originalTimeout;
  2211. }
  2212. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  2213. }]);
  2214. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2215. }
  2216. };
  2217. // Hotjar
  2218. /*
  2219. 1. Set the following variable before the initialization :
  2220. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  2221. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  2222. 2. Push the service :
  2223. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  2224. 3. HTML
  2225. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2226. */
  2227. tarteaucitron.services.hotjar = {
  2228. "key": "hotjar",
  2229. "type": "analytic",
  2230. "name": "Hotjar",
  2231. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  2232. "needConsent": true,
  2233. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  2234. "js": function () {
  2235. "use strict";
  2236. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  2237. return;
  2238. }
  2239. window.hj = window.hj || function() {
  2240. (window.hj.q = window.hj.q || []).push(arguments)
  2241. };
  2242. window._hjSettings = {
  2243. hjid: tarteaucitron.user.hotjarId,
  2244. hjsv: tarteaucitron.user.HotjarSv
  2245. };
  2246. var uri = 'https://static.hotjar.com/c/hotjar-';
  2247. var extension = '.js?sv=';
  2248. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  2249. }
  2250. };
  2251. // bing ads universal event tracking
  2252. tarteaucitron.services.bingads = {
  2253. 'key': 'bingads',
  2254. 'type': 'ads',
  2255. 'name': 'Bing Ads Universal Event Tracking',
  2256. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  2257. 'needConsent': true,
  2258. 'cookies': ['_uetmsclkid'],
  2259. 'js': function () {
  2260. 'use strict';
  2261. var u = tarteaucitron.user.bingadsTag || 'uetq';
  2262. window[u] = window[u] || [];
  2263. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  2264. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  2265. if ('bingadsStoreCookies' in tarteaucitron.user) {
  2266. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  2267. }
  2268. bingadsCreate.q = window[u];
  2269. window[u] = new UET(bingadsCreate);
  2270. window[u].push('pageload');
  2271. });
  2272. }
  2273. };
  2274. //Matterport
  2275. /*
  2276. SERVICE INIT
  2277. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  2278. HTML TAG
  2279. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  2280. DELETE IFRAME
  2281. <iframe type="text/html" width="100%" height="550" src="https://my.matterport.com/show/?m=N2Q67sZUNUd&utm_source=hit-content&play=1" frameborder="0" allowfullscreen="allowfullscreen"></iframe>'
  2282. */
  2283. tarteaucitron.services.matterport = {
  2284. "key": "matterport",
  2285. "type": "other",
  2286. "name": "Matterport",
  2287. "uri": "https://matterport.com/es/legal/privacy-policy/",
  2288. "needConsent": true,
  2289. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  2290. "js": function () {
  2291. "use strict";
  2292. tarteaucitron.fallback(['matterport'], function (x) {
  2293. var matterport_id = x.getAttribute("matterportID"),
  2294. matterport_width = x.getAttribute("width"),
  2295. frame_width = 'width=',
  2296. matterport_height = x.getAttribute("height"),
  2297. frame_height = 'height=',
  2298. matterport_parameters = x.getAttribute("parameters"),
  2299. matterport_frame;
  2300. if (matterport_id === undefined) {
  2301. return "";
  2302. }
  2303. if (matterport_width !== undefined) {
  2304. frame_width += '"' + matterport_width + '" ';
  2305. } else {
  2306. frame_width += '"" ';
  2307. }
  2308. if (matterport_height !== undefined) {
  2309. frame_height += '"' + matterport_height + '" ';
  2310. } else {
  2311. frame_height += '"" ';
  2312. }
  2313. if (matterport_parameters === undefined) {
  2314. return "";
  2315. }
  2316. matterport_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="https://my.matterport.com/show/?m=' + matterport_id + '&utm_source=hit-content' + matterport_parameters + '" frameborder="0" allowfullscreen="allowfullscreen"></iframe>';
  2317. return matterport_frame;
  2318. });
  2319. },
  2320. "fallback": function () {
  2321. "use strict";
  2322. var id = 'matterport';
  2323. tarteaucitron.fallback(['matterport'], function (elem) {
  2324. elem.style.width = elem.getAttribute('width') + 'px';
  2325. elem.style.height = elem.getAttribute('height') + 'px';
  2326. return tarteaucitron.engage(id);
  2327. });
  2328. }
  2329. };
  2330. // Adform
  2331. tarteaucitron.services.adform = {
  2332. "key": "adform",
  2333. "type": "ads",
  2334. "name": "Adform",
  2335. "uri": "https://site.adform.com/privacy-center/overview/",
  2336. "needConsent": true,
  2337. "cookies": [],
  2338. "js": function () {
  2339. "use strict";
  2340. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  2341. return;
  2342. }
  2343. window._adftrack = {
  2344. pm: tarteaucitron.user.adformpm,
  2345. divider: encodeURIComponent('|'),
  2346. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  2347. };
  2348. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  2349. }
  2350. };
  2351. // Active Campaign
  2352. tarteaucitron.services.activecampaign = {
  2353. "key": "activecampaign",
  2354. "type": "ads",
  2355. "name": "Active Campaign",
  2356. "uri": "https://www.activecampaign.com/privacy-policy/",
  2357. "needConsent": true,
  2358. "cookies": [],
  2359. "js": function () {
  2360. "use strict";
  2361. if (tarteaucitron.user.actid === undefined) {
  2362. return;
  2363. }
  2364. window.trackcmp_email = '';
  2365. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  2366. }
  2367. };
  2368. // tawk.to
  2369. tarteaucitron.services.tawkto = {
  2370. "key": "tawkto",
  2371. "type": "support",
  2372. "name": "Tawk.to chat",
  2373. "uri": "https://www.tawk.to/data-protection/",
  2374. "needConsent": true,
  2375. "cookies": [],
  2376. "js": function () {
  2377. "use strict";
  2378. if (tarteaucitron.user.tawktoId === undefined) {
  2379. return;
  2380. }
  2381. window.Tawk_API=window.Tawk_API||{};
  2382. window.Tawk_LoadStart=new Date();
  2383. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  2384. }
  2385. };
  2386. // getquanty
  2387. tarteaucitron.services.getquanty = {
  2388. "key": "getquanty",
  2389. "type": "analytic",
  2390. "name": "GetQuanty",
  2391. "uri": "https://www.getquanty.com/mentions-legales/",
  2392. "needConsent": true,
  2393. "cookies": [],
  2394. "js": function () {
  2395. "use strict";
  2396. if (tarteaucitron.user.getguanty === undefined) {
  2397. return;
  2398. }
  2399. window.webleads_site_ids = window.webleads_site_ids || [];
  2400. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  2401. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  2402. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  2403. }
  2404. };