tarteaucitron.services.js 101 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844
  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.com/gp/help/customer/display.html/ref=help_search_1-1?ie=UTF8&nodeId=201909010&qid=1544617177&sr=1-1",
  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. // leadforensics
  573. tarteaucitron.services.leadforensics = {
  574. "key": "leadforensics",
  575. "type": "analytic",
  576. "name": "LeadForensics",
  577. "uri": "https://www.leadforensics.com/privacy-policy/",
  578. "needConsent": true,
  579. "cookies": ['trackalyzer'],
  580. "js": function () {
  581. "use strict";
  582. if (tarteaucitron.user.leadforensicsSf14gv === undefined ||
  583. tarteaucitron.user.leadforensicsIidentifier === undefined) {
  584. return;
  585. }
  586. window.sf14gv = tarteaucitron.user.leadforensicsSf14gv;
  587. (function() {
  588. var sf14g = document.createElement('script'); sf14g.type = 'text/javascript'; sf14g.async = true;
  589. sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js';
  590. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s);
  591. })();
  592. tarteaucitron.addScript('//secure.leadforensics.com/js/' + tarteaucitron.user.leadforensicsIidentifier + '.js');
  593. }
  594. };
  595. // disqus
  596. tarteaucitron.services.disqus = {
  597. "key": "disqus",
  598. "type": "comment",
  599. "name": "Disqus",
  600. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  601. "needConsent": true,
  602. "cookies": [],
  603. "js": function () {
  604. "use strict";
  605. if (tarteaucitron.user.disqusShortname === undefined) {
  606. return;
  607. }
  608. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  609. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  610. },
  611. "fallback": function () {
  612. "use strict";
  613. var id = 'disqus';
  614. if (document.getElementById('disqus_thread')) {
  615. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  616. }
  617. }
  618. };
  619. // ekomi
  620. tarteaucitron.services.ekomi = {
  621. "key": "ekomi",
  622. "type": "social",
  623. "name": "eKomi",
  624. "uri": "http://www.ekomi-us.com/us/privacy/",
  625. "needConsent": true,
  626. "cookies": [],
  627. "js": function () {
  628. "use strict";
  629. if (tarteaucitron.user.ekomiCertId === undefined) {
  630. return;
  631. }
  632. window.eKomiIntegrationConfig = [
  633. {certId: tarteaucitron.user.ekomiCertId}
  634. ];
  635. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  636. }
  637. };
  638. // etracker
  639. tarteaucitron.services.etracker = {
  640. "key": "etracker",
  641. "type": "analytic",
  642. "name": "eTracker",
  643. "uri": "https://www.etracker.com/en/data-protection.html",
  644. "needConsent": true,
  645. "cookies": [],
  646. "js": function () {
  647. "use strict";
  648. if (tarteaucitron.user.etracker === undefined) {
  649. return;
  650. }
  651. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  652. }
  653. };
  654. // facebook
  655. tarteaucitron.services.facebook = {
  656. "key": "facebook",
  657. "type": "social",
  658. "name": "Facebook",
  659. "uri": "https://www.facebook.com/policies/cookies/",
  660. "needConsent": true,
  661. "cookies": [],
  662. "js": function () {
  663. "use strict";
  664. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], '');
  665. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  666. if (tarteaucitron.isAjax === true) {
  667. if (typeof FB !== "undefined") {
  668. FB.XFBML.parse();
  669. }
  670. }
  671. },
  672. "fallback": function () {
  673. "use strict";
  674. var id = 'facebook';
  675. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id));
  676. }
  677. };
  678. // facebooklikebox
  679. tarteaucitron.services.facebooklikebox = {
  680. "key": "facebooklikebox",
  681. "type": "social",
  682. "name": "Facebook (like box)",
  683. "uri": "https://www.facebook.com/policies/cookies/",
  684. "needConsent": true,
  685. "cookies": [],
  686. "js": function () {
  687. "use strict";
  688. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  689. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  690. if (tarteaucitron.isAjax === true) {
  691. if (typeof FB !== "undefined") {
  692. FB.XFBML.parse();
  693. }
  694. }
  695. },
  696. "fallback": function () {
  697. "use strict";
  698. var id = 'facebooklikebox';
  699. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  700. }
  701. };
  702. // facebookcomment
  703. tarteaucitron.services.facebookcomment = {
  704. "key": "facebookcomment",
  705. "type": "comment",
  706. "name": "Facebook (commentaire)",
  707. "uri": "https://www.facebook.com/policies/cookies/",
  708. "needConsent": true,
  709. "cookies": [],
  710. "js": function () {
  711. "use strict";
  712. tarteaucitron.fallback(['fb-comments'], '');
  713. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  714. if (tarteaucitron.isAjax === true) {
  715. if (typeof FB !== "undefined") {
  716. FB.XFBML.parse();
  717. }
  718. }
  719. },
  720. "fallback": function () {
  721. "use strict";
  722. var id = 'facebookcomment';
  723. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  724. }
  725. };
  726. // ferank
  727. tarteaucitron.services.ferank = {
  728. "key": "ferank",
  729. "type": "analytic",
  730. "name": "FERank",
  731. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  732. "needConsent": false,
  733. "cookies": [],
  734. "js": function () {
  735. "use strict";
  736. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  737. if (typeof tarteaucitron.user.ferankMore === 'function') {
  738. tarteaucitron.user.ferankMore();
  739. }
  740. });
  741. }
  742. };
  743. // ferank pub
  744. tarteaucitron.services.ferankpub = {
  745. "key": "ferankpub",
  746. "type": "ads",
  747. "name": "FERank (pub)",
  748. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  749. "needConsent": false,
  750. "cookies": [],
  751. "js": function () {
  752. "use strict";
  753. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  754. if (tarteaucitron.isAjax === true) {
  755. if (typeof ferankReady === 'function') {
  756. ferankReady();
  757. }
  758. }
  759. },
  760. "fallback": function () {
  761. "use strict";
  762. var id = 'ferankpub';
  763. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  764. }
  765. };
  766. // get+
  767. tarteaucitron.services.getplus = {
  768. "key": "getplus",
  769. "type": "analytic",
  770. "name": "Get+",
  771. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  772. "needConsent": true,
  773. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  774. "js": function () {
  775. "use strict";
  776. if (tarteaucitron.user.getplusId === undefined) {
  777. return;
  778. }
  779. window.webleads_site_ids = window.webleads_site_ids || [];
  780. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  781. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  782. }
  783. };
  784. // google+
  785. tarteaucitron.services.gplus = {
  786. "key": "gplus",
  787. "type": "social",
  788. "name": "Google+",
  789. "uri": "https://policies.google.com/privacy",
  790. "needConsent": true,
  791. "cookies": [],
  792. "js": function () {
  793. "use strict";
  794. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  795. },
  796. "fallback": function () {
  797. "use strict";
  798. var id = 'gplus';
  799. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  800. }
  801. };
  802. // google+ badge
  803. tarteaucitron.services.gplusbadge = {
  804. "key": "gplusbadge",
  805. "type": "social",
  806. "name": "Google+ (badge)",
  807. "uri": "https://policies.google.com/privacy",
  808. "needConsent": true,
  809. "cookies": [],
  810. "js": function () {
  811. "use strict";
  812. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  813. },
  814. "fallback": function () {
  815. "use strict";
  816. var id = 'gplusbadge';
  817. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  818. }
  819. };
  820. // google adsense
  821. tarteaucitron.services.adsense = {
  822. "key": "adsense",
  823. "type": "ads",
  824. "name": "Google Adsense",
  825. "uri": "https://adssettings.google.com/",
  826. "needConsent": true,
  827. "cookies": [],
  828. "js": function () {
  829. "use strict";
  830. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  831. },
  832. "fallback": function () {
  833. "use strict";
  834. var id = 'adsense';
  835. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  836. }
  837. };
  838. // google partners badge
  839. tarteaucitron.services.googlepartners = {
  840. "key": "googlepartners",
  841. "type": "ads",
  842. "name": "Google Partners Badge",
  843. "uri": "https://adssettings.google.com/",
  844. "needConsent": true,
  845. "cookies": [],
  846. "js": function () {
  847. "use strict";
  848. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  849. },
  850. "fallback": function () {
  851. "use strict";
  852. var id = 'googlepartners';
  853. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  854. }
  855. };
  856. // google adsense search (form)
  857. tarteaucitron.services.adsensesearchform = {
  858. "key": "adsensesearchform",
  859. "type": "ads",
  860. "name": "Google Adsense Search (form)",
  861. "uri": "https://adssettings.google.com/",
  862. "needConsent": true,
  863. "cookies": [],
  864. "js": function () {
  865. "use strict";
  866. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  867. }
  868. };
  869. // google adsense search (result)
  870. tarteaucitron.services.adsensesearchresult = {
  871. "key": "adsensesearchresult",
  872. "type": "ads",
  873. "name": "Google Adsense Search (result)",
  874. "uri": "https://adssettings.google.com/",
  875. "needConsent": true,
  876. "cookies": [],
  877. "js": function () {
  878. "use strict";
  879. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  880. return;
  881. }
  882. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  883. },
  884. "fallback": function () {
  885. "use strict";
  886. var id = 'adsensesearchresult';
  887. if (document.getElementById('gcse_searchresults')) {
  888. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  889. }
  890. }
  891. };
  892. // googleadwordsconversion
  893. tarteaucitron.services.googleadwordsconversion = {
  894. "key": "googleadwordsconversion",
  895. "type": "ads",
  896. "name": "Google Adwords (conversion)",
  897. "uri": "https://www.google.com/settings/ads",
  898. "needConsent": true,
  899. "cookies": [],
  900. "js": function () {
  901. "use strict";
  902. if (tarteaucitron.user.adwordsconversionId === undefined) {
  903. return;
  904. }
  905. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  906. window.google_trackConversion({
  907. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  908. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  909. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  910. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  911. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  912. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  913. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  914. google_custom_params: {
  915. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  916. parameter2: tarteaucitron.user.adwordsconversionCustom2
  917. }
  918. });
  919. });
  920. }
  921. };
  922. // googleadwordsremarketing
  923. tarteaucitron.services.googleadwordsremarketing = {
  924. "key": "googleadwordsremarketing",
  925. "type": "ads",
  926. "name": "Google Adwords (remarketing)",
  927. "uri": "https://www.google.com/settings/ads",
  928. "needConsent": true,
  929. "cookies": [],
  930. "js": function () {
  931. "use strict";
  932. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  933. return;
  934. }
  935. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  936. window.google_trackConversion({
  937. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  938. google_remarketing_only: true
  939. });
  940. });
  941. }
  942. };
  943. // google analytics (old)
  944. tarteaucitron.services.gajs = {
  945. "key": "gajs",
  946. "type": "analytic",
  947. "name": "Google Analytics (ga.js)",
  948. "uri": "https://support.google.com/analytics/answer/6004245",
  949. "needConsent": true,
  950. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  951. "js": function () {
  952. "use strict";
  953. window._gaq = window._gaq || [];
  954. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  955. if (tarteaucitron.user.gajsAnonymizeIp) {
  956. window._gaq.push (['_gat._anonymizeIp']);
  957. }
  958. if (tarteaucitron.user.gajsPageView) {
  959. window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
  960. } else {
  961. window._gaq.push(['_trackPageview']);
  962. }
  963. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  964. if (typeof tarteaucitron.user.gajsMore === 'function') {
  965. tarteaucitron.user.gajsMore();
  966. }
  967. });
  968. }
  969. };
  970. // google analytics
  971. tarteaucitron.services.analytics = {
  972. "key": "analytics",
  973. "type": "analytic",
  974. "name": "Google Analytics (universal)",
  975. "uri": "https://support.google.com/analytics/answer/6004245",
  976. "needConsent": true,
  977. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  978. "js": function () {
  979. "use strict";
  980. window.GoogleAnalyticsObject = 'ga';
  981. window.ga = window.ga || function () {
  982. window.ga.q = window.ga.q || [];
  983. window.ga.q.push(arguments);
  984. };
  985. window.ga.l = new Date();
  986. tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
  987. var uaCreate = {'cookieExpires': 34128000};
  988. tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
  989. ga('create', tarteaucitron.user.analyticsUa, uaCreate);
  990. if (tarteaucitron.user.analyticsAnonymizeIp) {
  991. ga('set', 'anonymizeIp', true);
  992. }
  993. if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
  994. tarteaucitron.user.analyticsPrepare();
  995. }
  996. if (tarteaucitron.user.analyticsPageView) {
  997. ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
  998. } else {
  999. ga('send', 'pageview');
  1000. }
  1001. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  1002. tarteaucitron.user.analyticsMore();
  1003. }
  1004. });
  1005. }
  1006. };
  1007. // google analytics
  1008. tarteaucitron.services.gtag = {
  1009. "key": "gtag",
  1010. "type": "analytic",
  1011. "name": "Google Analytics (gtag.js)",
  1012. "uri": "https://support.google.com/analytics/answer/6004245",
  1013. "needConsent": true,
  1014. "cookies": (function () {
  1015. // Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
  1016. var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gtagUa;
  1017. gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
  1018. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie];
  1019. })(),
  1020. "js": function () {
  1021. "use strict";
  1022. window.dataLayer = window.dataLayer || [];
  1023. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  1024. window.gtag = function gtag(){dataLayer.push(arguments);}
  1025. gtag('js', new Date());
  1026. gtag('config', tarteaucitron.user.gtagUa);
  1027. if (typeof tarteaucitron.user.gtagMore === 'function') {
  1028. tarteaucitron.user.gtagMore();
  1029. }
  1030. });
  1031. }
  1032. };
  1033. // google maps
  1034. tarteaucitron.services.googlemaps = {
  1035. "key": "googlemaps",
  1036. "type": "api",
  1037. "name": "Google Maps",
  1038. "uri": "https://adssettings.google.com/",
  1039. "needConsent": true,
  1040. "cookies": [],
  1041. "js": function () {
  1042. "use strict";
  1043. var mapOptions,
  1044. map,
  1045. uniqIds = [],
  1046. i;
  1047. if (tarteaucitron.user.mapscallback === undefined) {
  1048. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1049. }
  1050. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1051. var googleMapsLibraries = '';
  1052. if (tarteaucitron.user.googlemapsLibraries) {
  1053. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1054. }
  1055. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback + googleMapsLibraries);
  1056. window.tac_googlemaps_callback = function () {
  1057. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1058. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1059. uniqIds.push(uniqId);
  1060. 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>';
  1061. });
  1062. for (i = 0; i < uniqIds.length; i += 1) {
  1063. mapOptions = {
  1064. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1065. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1066. };
  1067. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1068. }
  1069. };
  1070. },
  1071. "fallback": function () {
  1072. "use strict";
  1073. var id = 'googlemaps';
  1074. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1075. }
  1076. };
  1077. // googlemaps search
  1078. tarteaucitron.services.googlemapssearch = {
  1079. "key": "googlemapssearch",
  1080. "type": "api",
  1081. "name": "Google Maps Search API",
  1082. "uri": "https://adssettings.google.com/",
  1083. "needConsent": true,
  1084. "cookies": ['nid'],
  1085. "js": function () {
  1086. "use strict";
  1087. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1088. var width = x.getAttribute("width"),
  1089. height = x.getAttribute("height"),
  1090. // url = x.getAttribute("data-url");
  1091. query = escape(x.getAttribute("data-search")),
  1092. key = x.getAttribute("data-api-key");
  1093. // return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1094. 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> '
  1095. });
  1096. },
  1097. "fallback": function () {
  1098. "use strict";
  1099. var id = 'googlemapssearch';
  1100. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1101. elem.style.width = elem.getAttribute('width') + 'px';
  1102. elem.style.height = elem.getAttribute('height') + 'px';
  1103. return tarteaucitron.engage(id);
  1104. });
  1105. }
  1106. };
  1107. // googlemaps embed iframe
  1108. tarteaucitron.services.googlemapsembed = {
  1109. "key": "googlemapsembed",
  1110. "type": "api",
  1111. "name": "Google Maps Embed",
  1112. "uri": "https://adssettings.google.com/",
  1113. "needConsent": true,
  1114. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1115. "js": function () {
  1116. "use strict";
  1117. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1118. var width = tarteaucitron.getElemWidth(x),
  1119. height = tarteaucitron.getElemHeight(x),
  1120. url = x.getAttribute("data-url");
  1121. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1122. });
  1123. },
  1124. "fallback": function () {
  1125. "use strict";
  1126. var id = 'googlemapsembed';
  1127. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1128. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1129. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1130. return tarteaucitron.engage(id);
  1131. });
  1132. }
  1133. };
  1134. // google tag manager
  1135. tarteaucitron.services.googletagmanager = {
  1136. "key": "googletagmanager",
  1137. "type": "api",
  1138. "name": "Google Tag Manager",
  1139. "uri": "https://adssettings.google.com/",
  1140. "needConsent": true,
  1141. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1142. "js": function () {
  1143. "use strict";
  1144. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1145. return;
  1146. }
  1147. window.dataLayer = window.dataLayer || [];
  1148. window.dataLayer.push({
  1149. 'gtm.start': new Date().getTime(),
  1150. event: 'gtm.js'
  1151. });
  1152. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1153. }
  1154. };
  1155. // hubspot
  1156. tarteaucitron.services.hubspot = {
  1157. "key": "hubspot",
  1158. "type": "analytic",
  1159. "name": "Hubspot",
  1160. "uri": "https://legal.hubspot.com/privacy-policy",
  1161. "needConsent": true,
  1162. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1163. "js": function () {
  1164. "use strict";
  1165. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1166. }
  1167. };
  1168. // jsapi
  1169. tarteaucitron.services.jsapi = {
  1170. "key": "jsapi",
  1171. "type": "api",
  1172. "name": "Google jsapi",
  1173. "uri": "https://policies.google.com/privacy",
  1174. "needConsent": true,
  1175. "cookies": [],
  1176. "js": function () {
  1177. "use strict";
  1178. tarteaucitron.addScript('//www.google.com/jsapi');
  1179. }
  1180. };
  1181. // twitterwidgetsapi
  1182. tarteaucitron.services.twitterwidgetsapi = {
  1183. "key": "twitterwidgetsapi",
  1184. "type": "api",
  1185. "name": "Twitter Widgets API",
  1186. "uri": "https://support.twitter.com/articles/20170514",
  1187. "needConsent": true,
  1188. "cookies": [],
  1189. "js": function () {
  1190. "use strict";
  1191. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1192. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1193. },
  1194. "fallback": function () {
  1195. "use strict";
  1196. var id = 'twitterwidgetsapi';
  1197. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1198. }
  1199. };
  1200. // recaptcha
  1201. tarteaucitron.services.recaptcha = {
  1202. "key": "recaptcha",
  1203. "type": "api",
  1204. "name": "reCAPTCHA",
  1205. "uri": "https://policies.google.com/privacy",
  1206. "needConsent": true,
  1207. "cookies": ['nid'],
  1208. "js": function () {
  1209. "use strict";
  1210. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
  1211. tarteaucitron.fallback(['g-recaptcha'], '');
  1212. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  1213. },
  1214. "fallback": function () {
  1215. "use strict";
  1216. var id = 'recaptcha';
  1217. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1218. }
  1219. };
  1220. // linkedin
  1221. tarteaucitron.services.linkedin = {
  1222. "key": "linkedin",
  1223. "type": "social",
  1224. "name": "Linkedin",
  1225. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1226. "needConsent": true,
  1227. "cookies": [],
  1228. "js": function () {
  1229. "use strict";
  1230. tarteaucitron.fallback(['tacLinkedin'], '');
  1231. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1232. if (tarteaucitron.isAjax === true) {
  1233. if (typeof IN !== "undefined") {
  1234. IN.parse();
  1235. }
  1236. }
  1237. },
  1238. "fallback": function () {
  1239. "use strict";
  1240. var id = 'linkedin';
  1241. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1242. }
  1243. };
  1244. // mautic
  1245. tarteaucitron.services.mautic = {
  1246. "key": "mautic",
  1247. "type": "analytic",
  1248. "name": "Mautic",
  1249. "uri": "https://www.mautic.org/privacy-policy/",
  1250. "needConsent": true,
  1251. "cookies": ['mtc_id', 'mtc_sid'],
  1252. "js": function () {
  1253. "use strict";
  1254. if (tarteaucitron.user.mauticurl === undefined) {
  1255. return;
  1256. }
  1257. window['MauticTrackingObject'] = 'mt';
  1258. window['mt'] = window['mt'] || function() {
  1259. (window['mt'].q = window['mt'].q || []).push(arguments);
  1260. };
  1261. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1262. mt('send', 'pageview');
  1263. });
  1264. }
  1265. };
  1266. // microsoftcampaignanalytics
  1267. tarteaucitron.services.microsoftcampaignanalytics = {
  1268. "key": "microsoftcampaignanalytics",
  1269. "type": "analytic",
  1270. "name": "Microsoft Campaign Analytics",
  1271. "uri": "https://privacy.microsoft.com/privacystatement/",
  1272. "needConsent": true,
  1273. "cookies": [],
  1274. "js": function () {
  1275. "use strict";
  1276. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1277. return;
  1278. }
  1279. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1280. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1281. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1282. });
  1283. }
  1284. };
  1285. // pinterest
  1286. tarteaucitron.services.pinterest = {
  1287. "key": "pinterest",
  1288. "type": "social",
  1289. "name": "Pinterest",
  1290. "uri": "https://about.pinterest.com/privacy-policy",
  1291. "needConsent": true,
  1292. "cookies": [],
  1293. "js": function () {
  1294. "use strict";
  1295. tarteaucitron.fallback(['tacPinterest'], '');
  1296. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1297. },
  1298. "fallback": function () {
  1299. "use strict";
  1300. var id = 'pinterest';
  1301. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1302. }
  1303. };
  1304. // prelinker
  1305. tarteaucitron.services.prelinker = {
  1306. "key": "prelinker",
  1307. "type": "ads",
  1308. "name": "Prelinker",
  1309. "uri": "http://www.prelinker.com/index/index/cgu/",
  1310. "needConsent": true,
  1311. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1312. "js": function () {
  1313. "use strict";
  1314. var uniqIds = [],
  1315. i,
  1316. uri;
  1317. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1318. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1319. uniqIds.push(uniqId);
  1320. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1321. });
  1322. for (i = 0; i < uniqIds.length; i += 1) {
  1323. uri = 'http://promo.easy-dating.org/banner/index?';
  1324. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1325. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1326. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1327. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1328. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1329. }
  1330. },
  1331. "fallback": function () {
  1332. "use strict";
  1333. var id = 'prelinker';
  1334. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1335. }
  1336. };
  1337. // prezi
  1338. tarteaucitron.services.prezi = {
  1339. "key": "prezi",
  1340. "type": "video",
  1341. "name": "Prezi",
  1342. "uri": "https://prezi.com/privacy-policy/",
  1343. "needConsent": true,
  1344. "cookies": [],
  1345. "js": function () {
  1346. "use strict";
  1347. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1348. var id = x.getAttribute("data-id"),
  1349. width = x.getAttribute("width"),
  1350. height = x.getAttribute("height"),
  1351. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1352. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1353. });
  1354. },
  1355. "fallback": function () {
  1356. "use strict";
  1357. var id = 'prezi';
  1358. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1359. elem.style.width = elem.getAttribute('width') + 'px';
  1360. elem.style.height = elem.getAttribute('height') + 'px';
  1361. return tarteaucitron.engage(id);
  1362. });
  1363. }
  1364. };
  1365. // pubdirecte
  1366. tarteaucitron.services.pubdirecte = {
  1367. "key": "pubdirecte",
  1368. "type": "ads",
  1369. "name": "Pubdirecte",
  1370. "uri": "http://pubdirecte.com/contact.php",
  1371. "needConsent": true,
  1372. "cookies": [],
  1373. "js": function () {
  1374. "use strict";
  1375. var uniqIds = [],
  1376. i,
  1377. uri;
  1378. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1379. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1380. uniqIds.push(uniqId);
  1381. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1382. });
  1383. for (i = 0; i < uniqIds.length; i += 1) {
  1384. uri = '//www.pubdirecte.com/script/banniere.php?';
  1385. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1386. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1387. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1388. }
  1389. },
  1390. "fallback": function () {
  1391. "use strict";
  1392. var id = 'pubdirecte';
  1393. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1394. }
  1395. };
  1396. // purechat
  1397. tarteaucitron.services.purechat = {
  1398. "key": "purechat",
  1399. "type": "support",
  1400. "name": "PureChat",
  1401. "uri": "https://www.purechat.com/privacy",
  1402. "needConsent": true,
  1403. "cookies": [],
  1404. "js": function () {
  1405. "use strict";
  1406. if (tarteaucitron.user.purechatId === undefined) {
  1407. return;
  1408. }
  1409. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1410. try {
  1411. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1412. } catch (e) {}
  1413. });
  1414. }
  1415. };
  1416. // shareaholic
  1417. tarteaucitron.services.shareaholic = {
  1418. "key": "shareaholic",
  1419. "type": "social",
  1420. "name": "Shareaholic",
  1421. "uri": "https://shareaholic.com/privacy/choices",
  1422. "needConsent": true,
  1423. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1424. "js": function () {
  1425. "use strict";
  1426. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1427. return;
  1428. }
  1429. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1430. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1431. try {
  1432. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1433. } catch (e) {}
  1434. });
  1435. },
  1436. "fallback": function () {
  1437. "use strict";
  1438. var id = 'shareaholic';
  1439. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1440. }
  1441. };
  1442. // shareasale
  1443. tarteaucitron.services.shareasale = {
  1444. "key": "shareasale",
  1445. "type": "ads",
  1446. "name": "ShareASale",
  1447. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1448. "needConsent": true,
  1449. "cookies": [],
  1450. "js": function () {
  1451. "use strict";
  1452. var uniqIds = [],
  1453. i,
  1454. uri;
  1455. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1456. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1457. uniqIds.push(uniqId);
  1458. 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>';
  1459. });
  1460. for (i = 0; i < uniqIds.length; i += 1) {
  1461. uri = 'https://shareasale.com/sale.cfm?';
  1462. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1463. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1464. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1465. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1466. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1467. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1468. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1469. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1470. }
  1471. },
  1472. "fallback": function () {
  1473. "use strict";
  1474. var id = 'shareasale';
  1475. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1476. }
  1477. };
  1478. // sharethis
  1479. tarteaucitron.services.sharethis = {
  1480. "key": "sharethis",
  1481. "type": "social",
  1482. "name": "ShareThis",
  1483. "uri": "http://www.sharethis.com/legal/privacy/",
  1484. "needConsent": true,
  1485. "cookies": ['__unam'],
  1486. "js": function () {
  1487. "use strict";
  1488. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1489. return;
  1490. }
  1491. var switchTo5x = true,
  1492. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1493. tarteaucitron.fallback(['tacSharethis'], '');
  1494. tarteaucitron.addScript(uri, '', function () {
  1495. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1496. });
  1497. if (tarteaucitron.isAjax === true) {
  1498. if (typeof stButtons !== "undefined") {
  1499. stButtons.locateElements();
  1500. }
  1501. }
  1502. },
  1503. "fallback": function () {
  1504. "use strict";
  1505. var id = 'sharethis';
  1506. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1507. }
  1508. };
  1509. // slideshare
  1510. tarteaucitron.services.slideshare = {
  1511. "key": "slideshare",
  1512. "type": "video",
  1513. "name": "SlideShare",
  1514. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1515. "needConsent": true,
  1516. "cookies": [],
  1517. "js": function () {
  1518. "use strict";
  1519. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1520. var id = x.getAttribute("data-id"),
  1521. width = x.getAttribute("width"),
  1522. height = x.getAttribute("height"),
  1523. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1524. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1525. });
  1526. },
  1527. "fallback": function () {
  1528. "use strict";
  1529. var id = 'slideshare';
  1530. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1531. elem.style.width = elem.getAttribute('width') + 'px';
  1532. elem.style.height = elem.getAttribute('height') + 'px';
  1533. return tarteaucitron.engage(id);
  1534. });
  1535. }
  1536. };
  1537. // statcounter
  1538. tarteaucitron.services.statcounter = {
  1539. "key": "statcounter",
  1540. "type": "analytic",
  1541. "name": "StatCounter",
  1542. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1543. "needConsent": true,
  1544. "cookies": ['sc_is_visitor_unique'],
  1545. "js": function () {
  1546. "use strict";
  1547. var uniqIds = [],
  1548. i,
  1549. uri = '//statcounter.com/counter/counter.js';
  1550. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1551. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1552. uniqIds.push(uniqId);
  1553. return '<div id="' + uniqId + '"></div>';
  1554. });
  1555. for (i = 0; i < uniqIds.length; i += 1) {
  1556. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1557. }
  1558. },
  1559. "fallback": function () {
  1560. "use strict";
  1561. var id = 'statcounter';
  1562. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1563. }
  1564. };
  1565. // timelinejs
  1566. tarteaucitron.services.timelinejs = {
  1567. "key": "timelinejs",
  1568. "type": "api",
  1569. "name": "Timeline JS",
  1570. "uri": "http://timeline.knightlab.com/#help",
  1571. "needConsent": true,
  1572. "cookies": [],
  1573. "js": function () {
  1574. "use strict";
  1575. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1576. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1577. width = x.getAttribute("width"),
  1578. height = x.getAttribute("height"),
  1579. lang = x.getAttribute("lang_2_letter"),
  1580. font = x.getAttribute("font"),
  1581. map = x.getAttribute("map"),
  1582. start_at_end = x.getAttribute("start_at_end"),
  1583. hash_bookmark = x.getAttribute("hash_bookmark"),
  1584. start_at_slide = x.getAttribute("start_at_slide"),
  1585. start_zoom = x.getAttribute("start_zoom"),
  1586. 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;
  1587. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1588. });
  1589. },
  1590. "fallback": function () {
  1591. "use strict";
  1592. var id = 'timelinejs';
  1593. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1594. elem.style.width = elem.getAttribute('width') + 'px';
  1595. elem.style.height = elem.getAttribute('height') + 'px';
  1596. return tarteaucitron.engage(id);
  1597. });
  1598. }
  1599. };
  1600. // tagcommander
  1601. tarteaucitron.services.tagcommander = {
  1602. "key": "tagcommander",
  1603. "type": "api",
  1604. "name": "TagCommander",
  1605. "uri": "https://www.commandersact.com/en/privacy/",
  1606. "needConsent": true,
  1607. "cookies": [],
  1608. "js": function () {
  1609. "use strict";
  1610. if (tarteaucitron.user.tagcommanderid === undefined) {
  1611. return;
  1612. }
  1613. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  1614. }
  1615. };
  1616. // typekit
  1617. tarteaucitron.services.typekit = {
  1618. "key": "typekit",
  1619. "type": "api",
  1620. "name": "Typekit (adobe)",
  1621. "uri": "https://www.adobe.com/privacy.html",
  1622. "needConsent": true,
  1623. "cookies": [],
  1624. "js": function () {
  1625. "use strict";
  1626. if (tarteaucitron.user.typekitId === undefined) {
  1627. return;
  1628. }
  1629. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1630. try {
  1631. Typekit.load();
  1632. } catch (e) {}
  1633. });
  1634. }
  1635. };
  1636. // twenga
  1637. tarteaucitron.services.twenga = {
  1638. "key": "twenga",
  1639. "type": "ads",
  1640. "name": "Twenga",
  1641. "uri": "http://www.twenga.com/privacy.php",
  1642. "needConsent": true,
  1643. "cookies": [],
  1644. "js": function () {
  1645. "use strict";
  1646. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1647. return;
  1648. }
  1649. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1650. }
  1651. };
  1652. // twitter
  1653. tarteaucitron.services.twitter = {
  1654. "key": "twitter",
  1655. "type": "social",
  1656. "name": "Twitter",
  1657. "uri": "https://support.twitter.com/articles/20170514",
  1658. "needConsent": true,
  1659. "cookies": [],
  1660. "js": function () {
  1661. "use strict";
  1662. tarteaucitron.fallback(['tacTwitter'], '');
  1663. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1664. },
  1665. "fallback": function () {
  1666. "use strict";
  1667. var id = 'twitter';
  1668. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1669. }
  1670. };
  1671. // twitter embed
  1672. tarteaucitron.services.twitterembed = {
  1673. "key": "twitterembed",
  1674. "type": "social",
  1675. "name": "Twitter (cards)",
  1676. "uri": "https://support.twitter.com/articles/20170514",
  1677. "needConsent": true,
  1678. "cookies": [],
  1679. "js": function () {
  1680. "use strict";
  1681. var uniqIds = [],
  1682. i,
  1683. e,
  1684. html;
  1685. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1686. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1687. uniqIds.push(uniqId);
  1688. html = '<div id="' + uniqId + '" ';
  1689. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1690. html += 'theme="' + x.getAttribute('theme') + '" ';
  1691. html += 'cards="' + x.getAttribute('cards') + '" ';
  1692. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1693. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1694. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1695. html += '></div>';
  1696. return html;
  1697. });
  1698. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1699. for (i = 0; i < uniqIds.length; i += 1) {
  1700. e = document.getElementById(uniqIds[i]);
  1701. twttr.widgets.createTweet(
  1702. e.getAttribute('tweetid'),
  1703. e,
  1704. {
  1705. theme: e.getAttribute('theme'),
  1706. cards: e.getAttribute('cards'),
  1707. conversation: e.getAttribute('conversation'),
  1708. lang: tarteaucitron.getLanguage(),
  1709. dnt: true,
  1710. width: e.getAttribute('data-width'),
  1711. align: e.getAttribute('data-align')
  1712. }
  1713. );
  1714. }
  1715. });
  1716. },
  1717. "fallback": function () {
  1718. "use strict";
  1719. var id = 'twitterembed';
  1720. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1721. elem.style.width = elem.getAttribute('data-width') + 'px';
  1722. return tarteaucitron.engage(id);
  1723. });
  1724. }
  1725. };
  1726. // twitter timeline
  1727. tarteaucitron.services.twittertimeline = {
  1728. "key": "twittertimeline",
  1729. "type": "social",
  1730. "name": "Twitter (timelines)",
  1731. "uri": "https://support.twitter.com/articles/20170514",
  1732. "needConsent": true,
  1733. "cookies": [],
  1734. "js": function () {
  1735. "use strict";
  1736. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1737. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1738. },
  1739. "fallback": function () {
  1740. "use strict";
  1741. var id = 'twittertimeline';
  1742. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1743. }
  1744. };
  1745. // user voice
  1746. tarteaucitron.services.uservoice = {
  1747. "key": "uservoice",
  1748. "type": "support",
  1749. "name": "UserVoice",
  1750. "uri": "https://www.uservoice.com/privacy/",
  1751. "needConsent": true,
  1752. "cookies": [],
  1753. "js": function () {
  1754. "use strict";
  1755. if (tarteaucitron.user.userVoiceApi === undefined) {
  1756. return;
  1757. }
  1758. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1759. }
  1760. };
  1761. // vimeo
  1762. tarteaucitron.services.vimeo = {
  1763. "key": "vimeo",
  1764. "type": "video",
  1765. "name": "Vimeo",
  1766. "uri": "https://vimeo.com/privacy",
  1767. "needConsent": true,
  1768. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1769. "js": function () {
  1770. "use strict";
  1771. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1772. var video_width = x.getAttribute("data-width") || x.getAttribute("width"),
  1773. frame_width = 'width=',
  1774. video_height = x.getAttribute("data-height") || x.getAttribute("height"),
  1775. frame_height = 'height=',
  1776. video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
  1777. video_autopause = x.getAttribute("data-autopause") || '',
  1778. video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
  1779. video_background = x.getAttribute("data-background") || '',
  1780. video_byline = x.getAttribute("data-byline") || x.getAttribute("byline") || '',
  1781. video_color = x.getAttribute("data-color") || '',
  1782. video_controls = x.getAttribute("data-controls") || '',
  1783. video_loop = x.getAttribute("data-loop") || x.getAttribute("loop") || '',
  1784. video_maxheight = x.getAttribute("data-maxheight") || '',
  1785. video_maxwidth = x.getAttribute("data-maxwidth") || '',
  1786. video_muted = x.getAttribute("data-muted") || '',
  1787. video_playsinline = x.getAttribute("data-playsinline") || '',
  1788. video_portrait = x.getAttribute("data-portrait") || x.getAttribute("portrait") || '',
  1789. video_speed = x.getAttribute("data-speed") || '',
  1790. video_title = x.getAttribute("data-title") || x.getAttribute("title") || '',
  1791. video_transparent = x.getAttribute("data-transparent") || '',
  1792. video_frame;
  1793. var video_qs = '';
  1794. if (video_id === undefined) {
  1795. return "";
  1796. }
  1797. if (video_width !== undefined) {
  1798. frame_width += '"' + video_width + '" ';
  1799. } else {
  1800. frame_width += '"" ';
  1801. }
  1802. if (video_height !== undefined) {
  1803. frame_height += '"' + video_height + '" ';
  1804. } else {
  1805. frame_height += '"" ';
  1806. }
  1807. if (video_title.length > 0 || video_byline.length > 0 || video_portrait.length > 0) {
  1808. video_qs = "?";
  1809. if (video_title.length > 0) {
  1810. video_qs += "title=" + video_title;
  1811. }
  1812. if (video_byline.length > 0) {
  1813. if (video_qs.length > 1) {
  1814. video_qs += "&";
  1815. }
  1816. video_qs += "byline=" + video_byline;
  1817. }
  1818. if (video_portrait.length > 0) {
  1819. if (video_qs.length > 1) {
  1820. video_qs += "&";
  1821. }
  1822. video_qs += "portrait=" + video_portrait;
  1823. }
  1824. if (video_loop.length > 0) {
  1825. if (video_qs.length > 1) {
  1826. video_qs += "&";
  1827. }
  1828. video_qs += "loop=" + video_loop;
  1829. }
  1830. if (video_autoplay.length > 0) {
  1831. if (video_qs.length > 1) {
  1832. video_qs += "&";
  1833. }
  1834. video_qs += "autoplay=" + video_autoplay;
  1835. }
  1836. if (video_autopause.length > 0) {
  1837. if (video_qs.length > 1) {
  1838. video_qs += "&";
  1839. }
  1840. video_qs += "autopause=" + video_autopause;
  1841. }
  1842. if (video_background.length > 0) {
  1843. if (video_qs.length > 1) {
  1844. video_qs += "&";
  1845. }
  1846. video_qs += "background=" + video_background;
  1847. }
  1848. if (video_color.length > 0) {
  1849. if (video_qs.length > 1) {
  1850. video_qs += "&";
  1851. }
  1852. video_qs += "color=" + video_color;
  1853. }
  1854. if (video_controls.length > 0) {
  1855. if (video_qs.length > 1) {
  1856. video_qs += "&";
  1857. }
  1858. video_qs += "controls=" + video_controls;
  1859. }
  1860. if (video_maxheight.length > 0) {
  1861. if (video_qs.length > 1) {
  1862. video_qs += "&";
  1863. }
  1864. video_qs += "maxheight=" + video_maxheight;
  1865. }
  1866. if (video_maxwidth.length > 0) {
  1867. if (video_qs.length > 1) {
  1868. video_qs += "&";
  1869. }
  1870. video_qs += "maxwidth=" + video_maxwidth;
  1871. }
  1872. if (video_muted.length > 0) {
  1873. if (video_qs.length > 1) {
  1874. video_qs += "&";
  1875. }
  1876. video_qs += "muted=" + video_muted;
  1877. }
  1878. if (video_playsinline.length > 0) {
  1879. if (video_qs.length > 1) {
  1880. video_qs += "&";
  1881. }
  1882. video_qs += "playsinline=" + video_playsinline;
  1883. }
  1884. if (video_speed.length > 0) {
  1885. if (video_qs.length > 1) {
  1886. video_qs += "&";
  1887. }
  1888. video_qs += "speed=" + video_speed;
  1889. }
  1890. if (video_transparent.length > 0) {
  1891. if (video_qs.length > 1) {
  1892. video_qs += "&";
  1893. }
  1894. video_qs += "transparent=" + video_transparent;
  1895. }
  1896. }
  1897. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1898. return video_frame;
  1899. });
  1900. },
  1901. "fallback": function () {
  1902. "use strict";
  1903. var id = 'vimeo';
  1904. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1905. elem.style.width = elem.getAttribute('width') + 'px';
  1906. elem.style.height = elem.getAttribute('height') + 'px';
  1907. return tarteaucitron.engage(id);
  1908. });
  1909. }
  1910. };
  1911. // visualrevenue
  1912. tarteaucitron.services.visualrevenue = {
  1913. "key": "visualrevenue",
  1914. "type": "analytic",
  1915. "name": "VisualRevenue",
  1916. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1917. "needConsent": true,
  1918. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1919. "js": function () {
  1920. "use strict";
  1921. if (tarteaucitron.user.visualrevenueId === undefined) {
  1922. return;
  1923. }
  1924. window._vrq = window._vrq || [];
  1925. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1926. window._vrq.push(['automate', true]);
  1927. window._vrq.push(['track', function () {}]);
  1928. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1929. }
  1930. };
  1931. // vshop
  1932. tarteaucitron.services.vshop = {
  1933. "key": "vshop",
  1934. "type": "ads",
  1935. "name": "vShop",
  1936. "uri": "http://vshop.fr/privacy-policy",
  1937. "needConsent": true,
  1938. "cookies": [],
  1939. "js": function () {
  1940. "use strict";
  1941. tarteaucitron.fallback(['vcashW'], '');
  1942. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1943. },
  1944. "fallback": function () {
  1945. "use strict";
  1946. var id = 'vshop';
  1947. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1948. }
  1949. };
  1950. // wysistat
  1951. tarteaucitron.services.wysistat = {
  1952. "key": "wysistat",
  1953. "type": "analytic",
  1954. "name": "Wysistat",
  1955. "uri": "http://wysistat.net/contact/",
  1956. "needConsent": true,
  1957. "cookies": ['Wysistat'],
  1958. "js": function () {
  1959. "use strict";
  1960. if (tarteaucitron.user.wysistat === undefined) {
  1961. return;
  1962. }
  1963. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1964. 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);
  1965. });
  1966. }
  1967. };
  1968. // xiti
  1969. tarteaucitron.services.xiti = {
  1970. "key": "xiti",
  1971. "type": "analytic",
  1972. "name": "Xiti",
  1973. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  1974. "needConsent": true,
  1975. "cookies": [],
  1976. "js": function () {
  1977. "use strict";
  1978. if (tarteaucitron.user.xitiId === undefined) {
  1979. return;
  1980. }
  1981. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1982. Xt_r,
  1983. Xt_h,
  1984. Xt_i,
  1985. Xt_s,
  1986. div = document.createElement('div');
  1987. try {
  1988. Xt_r = top.document.referrer;
  1989. } catch (e) {
  1990. Xt_r = document.referrer;
  1991. }
  1992. Xt_h = new Date();
  1993. Xt_i = '<img style="display:none" border="0" alt="" ';
  1994. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1995. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1996. if (parseFloat(navigator.appVersion) >= 4) {
  1997. Xt_s = screen;
  1998. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1999. }
  2000. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  2001. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  2002. if (typeof tarteaucitron.user.xitiMore === 'function') {
  2003. tarteaucitron.user.xitiMore();
  2004. }
  2005. }
  2006. };
  2007. // AT Internet
  2008. tarteaucitron.services.atinternet = {
  2009. "key": "atinternet",
  2010. "type": "analytic",
  2011. "name": "AT Internet",
  2012. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2013. "needConsent": true,
  2014. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2015. "js": function () {
  2016. "use strict";
  2017. if (tarteaucitron.user.atLibUrl === undefined) {
  2018. return;
  2019. }
  2020. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2021. var tag = new ATInternet.Tracker.Tag();
  2022. if (typeof tarteaucitron.user.atMore === 'function') {
  2023. tarteaucitron.user.atMore();
  2024. }
  2025. })
  2026. }
  2027. };
  2028. // youtube
  2029. tarteaucitron.services.youtube = {
  2030. "key": "youtube",
  2031. "type": "video",
  2032. "name": "YouTube",
  2033. "uri": "https://policies.google.com/privacy",
  2034. "needConsent": true,
  2035. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2036. "js": function () {
  2037. "use strict";
  2038. tarteaucitron.fallback(['youtube_player'], function (x) {
  2039. var video_id = x.getAttribute("videoID"),
  2040. video_width = x.getAttribute("width"),
  2041. frame_width = 'width=',
  2042. video_height = x.getAttribute("height"),
  2043. frame_height = 'height=',
  2044. video_frame,
  2045. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2046. if (video_id === undefined) {
  2047. return "";
  2048. }
  2049. if (video_width !== undefined) {
  2050. frame_width += '"' + video_width + '" ';
  2051. } else {
  2052. frame_width += '"" ';
  2053. }
  2054. if (video_height !== undefined) {
  2055. frame_height += '"' + video_height + '" ';
  2056. } else {
  2057. frame_height += '"" ';
  2058. }
  2059. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0" allowfullscreen></iframe>';
  2060. return video_frame;
  2061. });
  2062. },
  2063. "fallback": function () {
  2064. "use strict";
  2065. var id = 'youtube';
  2066. tarteaucitron.fallback(['youtube_player'], function (elem) {
  2067. elem.style.width = elem.getAttribute('width') + 'px';
  2068. elem.style.height = elem.getAttribute('height') + 'px';
  2069. return tarteaucitron.engage(id);
  2070. });
  2071. }
  2072. };
  2073. // youtube playlist
  2074. tarteaucitron.services.youtubeplaylist = {
  2075. "key": "youtubeplaylist",
  2076. "type": "video",
  2077. "name": "YouTube (playlist)",
  2078. "uri": "https://policies.google.com/privacy",
  2079. "needConsent": true,
  2080. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2081. "js": function () {
  2082. "use strict";
  2083. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  2084. var playlist_id = x.getAttribute("playlistID"),
  2085. video_width = x.getAttribute("width"),
  2086. frame_width = 'width=',
  2087. video_height = x.getAttribute("height"),
  2088. frame_height = 'height=',
  2089. video_frame,
  2090. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2091. if (playlist_id === undefined) {
  2092. return "";
  2093. }
  2094. if (video_width !== undefined) {
  2095. frame_width += '"' + video_width + '" ';
  2096. } else {
  2097. frame_width += '"" ';
  2098. }
  2099. if (video_height !== undefined) {
  2100. frame_height += '"' + video_height + '" ';
  2101. } else {
  2102. frame_height += '"" ';
  2103. }
  2104. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0" allowfullscreen></iframe>';
  2105. return video_frame;
  2106. });
  2107. },
  2108. "fallback": function () {
  2109. "use strict";
  2110. var id = 'youtubeplaylist';
  2111. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  2112. elem.style.width = elem.getAttribute('width') + 'px';
  2113. elem.style.height = elem.getAttribute('height') + 'px';
  2114. return tarteaucitron.engage(id);
  2115. });
  2116. }
  2117. };
  2118. // zopim
  2119. tarteaucitron.services.zopim = {
  2120. "key": "zopim",
  2121. "type": "support",
  2122. "name": "Zopim",
  2123. "uri": "https://www.zopim.com/privacy",
  2124. "needConsent": true,
  2125. "cookies": ['__zlcid', '__zprivacy'],
  2126. "js": function () {
  2127. "use strict";
  2128. if (tarteaucitron.user.zopimID === undefined) {
  2129. return;
  2130. }
  2131. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  2132. }
  2133. };
  2134. // xiti smartTag
  2135. tarteaucitron.services.xiti_smarttag = {
  2136. "key": "xiti_smarttag",
  2137. "type": "analytic",
  2138. "name": "Xiti (SmartTag)",
  2139. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  2140. "needConsent": true,
  2141. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  2142. "js": function () {
  2143. "use strict";
  2144. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  2145. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  2146. } else {
  2147. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  2148. if (xitiSmarttagId === undefined) {
  2149. return;
  2150. }
  2151. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  2152. }
  2153. }
  2154. };
  2155. // facebook pixel
  2156. tarteaucitron.services.facebookpixel = {
  2157. "key": "facebookpixel",
  2158. "type": "ads",
  2159. "name": "Facebook Pixel",
  2160. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  2161. "needConsent": true,
  2162. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  2163. "js": function () {
  2164. "use strict";
  2165. var n;
  2166. if(window.fbq)return;
  2167. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2168. if(!window._fbq)window._fbq=n;
  2169. n.push=n;
  2170. n.loaded=!0;
  2171. n.version='2.0';
  2172. n.queue=[];
  2173. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2174. fbq('init', tarteaucitron.user.facebookpixelId);
  2175. fbq('track', 'PageView');
  2176. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2177. tarteaucitron.user.facebookpixelMore();
  2178. }
  2179. }
  2180. };
  2181. //Issuu
  2182. tarteaucitron.services.issuu = {
  2183. "key": "issuu",
  2184. "type": "other",
  2185. "name": "Issuu",
  2186. "uri": "https://issuu.com/legal/privacy",
  2187. "needConsent": true,
  2188. "cookies": ['__qca', 'iutk', 'mc'],
  2189. "js": function () {
  2190. "use strict";
  2191. tarteaucitron.fallback(['issuu_player'], function (x) {
  2192. var issuu_id = x.getAttribute("issuuID"),
  2193. issuu_width = x.getAttribute("width"),
  2194. frame_width = 'width=',
  2195. issuu_height = x.getAttribute("height"),
  2196. frame_height = 'height=',
  2197. issuu_frame;
  2198. if (issuu_id === undefined) {
  2199. return "";
  2200. }
  2201. if (issuu_width !== undefined) {
  2202. frame_width += '"' + issuu_width + '" ';
  2203. } else {
  2204. frame_width += '"" ';
  2205. }
  2206. if (issuu_height !== undefined) {
  2207. frame_height += '"' + issuu_height + '" ';
  2208. } else {
  2209. frame_height += '"" ';
  2210. }
  2211. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
  2212. return issuu_frame;
  2213. });
  2214. },
  2215. "fallback": function () {
  2216. "use strict";
  2217. var id = 'issuu';
  2218. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2219. elem.style.width = elem.getAttribute('width') + 'px';
  2220. elem.style.height = elem.getAttribute('height') + 'px';
  2221. return tarteaucitron.engage(id);
  2222. });
  2223. }
  2224. };
  2225. // webmecanik
  2226. tarteaucitron.services.webmecanik = {
  2227. "key": "webmecanik",
  2228. "type": "analytic",
  2229. "name": "Webmecanik",
  2230. "uri": "https://webmecanik.com/tos",
  2231. "needConsent": true,
  2232. "cookies": ['mtc_id', 'mtc_sid'],
  2233. "js": function () {
  2234. "use strict";
  2235. if (tarteaucitron.user.webmecanikurl === undefined) {
  2236. return;
  2237. }
  2238. window['WebmecanikTrackingObject'] = 'mt';
  2239. window['mt'] = window['mt'] || function() {
  2240. (window['mt'].q = window['mt'].q || []).push(arguments);
  2241. };
  2242. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2243. mt('send', 'pageview');
  2244. });
  2245. }
  2246. };
  2247. // google analytics multiple
  2248. tarteaucitron.services.multiplegtag = {
  2249. "key": "multiplegtag",
  2250. "type": "analytic",
  2251. "name": "Google Analytics (gtag.js)",
  2252. "uri": "https://support.google.com/analytics/answer/6004245",
  2253. "needConsent": true,
  2254. "cookies": (function () {
  2255. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2256. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2257. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2258. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2259. });
  2260. }
  2261. return cookies;
  2262. })(),
  2263. "js": function () {
  2264. "use strict";
  2265. window.dataLayer = window.dataLayer || [];
  2266. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2267. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2268. window.gtag = function gtag(){dataLayer.push(arguments);}
  2269. gtag('js', new Date());
  2270. gtag('config', ua);
  2271. });
  2272. });
  2273. }
  2274. };
  2275. // Koban
  2276. tarteaucitron.services.koban = {
  2277. "key": "koban",
  2278. "type": "analytic",
  2279. "name": "Koban",
  2280. "uri": "https://koban.cloud/tos",
  2281. "needConsent": true,
  2282. "cookies": ['kbntrk'],
  2283. "js": function () {
  2284. "use strict";
  2285. if (tarteaucitron.user.kobanurl === undefined) {
  2286. return;
  2287. }
  2288. if (tarteaucitron.user.kobanapi === undefined) {
  2289. return;
  2290. }
  2291. window.KobanObject = 'kb';
  2292. window.kb = window.kb || function() {
  2293. window.kb.q = window.kb.q || [];
  2294. window.kb.q.push(arguments);
  2295. };
  2296. window.kb.l = new Date();
  2297. kb('reg', tarteaucitron.user.kobanapi);
  2298. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  2299. });
  2300. }
  2301. };
  2302. // matomo
  2303. /*
  2304. 1. Set the following variable before the initialization :
  2305. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  2306. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  2307. 2. Push the service :
  2308. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  2309. 3. HTML
  2310. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2311. */
  2312. tarteaucitron.services.matomo = {
  2313. "key": "matomo",
  2314. "type": "analytic",
  2315. "name": "Matomo (formerly known as Piwik)",
  2316. "uri": "https://matomo.org/faq/general/faq_146/",
  2317. "needConsent": false,
  2318. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2319. "js": function () {
  2320. "use strict";
  2321. if (tarteaucitron.user.matomoId === undefined) {
  2322. return;
  2323. }
  2324. window._paq = window._paq || [];
  2325. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2326. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2327. window._paq.push(["setDoNotTrack", 1]);
  2328. window._paq.push(["trackPageView"]);
  2329. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2330. window._paq.push(["enableLinkTracking"]);
  2331. window._paq.push([function() {
  2332. var self = this;
  2333. function getOriginalVisitorCookieTimeout() {
  2334. var now = new Date(),
  2335. nowTs = Math.round(now.getTime() / 1000),
  2336. visitorInfo = self.getVisitorInfo();
  2337. var createTs = parseInt(visitorInfo[2]);
  2338. var cookieTimeout = 33696000; // 13 mois en secondes
  2339. var originalTimeout = createTs + cookieTimeout - nowTs;
  2340. return originalTimeout;
  2341. }
  2342. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  2343. }]);
  2344. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2345. // waiting for piwik to be ready to check first party cookies
  2346. var interval = setInterval(function() {
  2347. if (typeof Piwik === 'undefined') return
  2348. clearInterval(interval)
  2349. // make piwik/matomo cookie accessible by getting tracker
  2350. Piwik.getTracker();
  2351. // looping throught cookies
  2352. var theCookies = document.cookie.split(';');
  2353. for (var i = 1 ; i <= theCookies.length; i++) {
  2354. var cookie = theCookies[i-1].split('=');
  2355. var cookieName = cookie[0].trim();
  2356. // if cookie starts like a piwik one, register it
  2357. if (cookieName.indexOf('_pk_') === 0) {
  2358. tarteaucitron.services.matomo.cookies.push(cookieName);
  2359. }
  2360. }
  2361. }, 100)
  2362. }
  2363. };
  2364. // Hotjar
  2365. /*
  2366. 1. Set the following variable before the initialization :
  2367. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  2368. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  2369. 2. Push the service :
  2370. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  2371. 3. HTML
  2372. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2373. */
  2374. tarteaucitron.services.hotjar = {
  2375. "key": "hotjar",
  2376. "type": "analytic",
  2377. "name": "Hotjar",
  2378. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  2379. "needConsent": true,
  2380. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  2381. "js": function () {
  2382. "use strict";
  2383. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  2384. return;
  2385. }
  2386. window.hj = window.hj || function() {
  2387. (window.hj.q = window.hj.q || []).push(arguments)
  2388. };
  2389. window._hjSettings = {
  2390. hjid: tarteaucitron.user.hotjarId,
  2391. hjsv: tarteaucitron.user.HotjarSv
  2392. };
  2393. var uri = 'https://static.hotjar.com/c/hotjar-';
  2394. var extension = '.js?sv=';
  2395. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  2396. }
  2397. };
  2398. // bing ads universal event tracking
  2399. tarteaucitron.services.bingads = {
  2400. 'key': 'bingads',
  2401. 'type': 'ads',
  2402. 'name': 'Bing Ads Universal Event Tracking',
  2403. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  2404. 'needConsent': true,
  2405. 'cookies': ['_uetmsclkid'],
  2406. 'js': function () {
  2407. 'use strict';
  2408. var u = tarteaucitron.user.bingadsTag || 'uetq';
  2409. window[u] = window[u] || [];
  2410. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  2411. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  2412. if ('bingadsStoreCookies' in tarteaucitron.user) {
  2413. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  2414. }
  2415. bingadsCreate.q = window[u];
  2416. window[u] = new UET(bingadsCreate);
  2417. window[u].push('pageLoad');
  2418. });
  2419. }
  2420. };
  2421. //Matterport
  2422. /*
  2423. SERVICE INIT
  2424. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  2425. HTML TAG
  2426. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  2427. DELETE IFRAME
  2428. <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>'
  2429. */
  2430. tarteaucitron.services.matterport = {
  2431. "key": "matterport",
  2432. "type": "other",
  2433. "name": "Matterport",
  2434. "uri": "https://matterport.com/es/legal/privacy-policy/",
  2435. "needConsent": true,
  2436. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  2437. "js": function () {
  2438. "use strict";
  2439. tarteaucitron.fallback(['matterport'], function (x) {
  2440. var matterport_id = x.getAttribute("matterportID"),
  2441. matterport_width = x.getAttribute("width"),
  2442. frame_width = 'width=',
  2443. matterport_height = x.getAttribute("height"),
  2444. frame_height = 'height=',
  2445. matterport_parameters = x.getAttribute("parameters"),
  2446. matterport_frame;
  2447. if (matterport_id === undefined) {
  2448. return "";
  2449. }
  2450. if (matterport_width !== undefined) {
  2451. frame_width += '"' + matterport_width + '" ';
  2452. } else {
  2453. frame_width += '"" ';
  2454. }
  2455. if (matterport_height !== undefined) {
  2456. frame_height += '"' + matterport_height + '" ';
  2457. } else {
  2458. frame_height += '"" ';
  2459. }
  2460. if (matterport_parameters === undefined) {
  2461. return "";
  2462. }
  2463. 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>';
  2464. return matterport_frame;
  2465. });
  2466. },
  2467. "fallback": function () {
  2468. "use strict";
  2469. var id = 'matterport';
  2470. tarteaucitron.fallback(['matterport'], function (elem) {
  2471. elem.style.width = elem.getAttribute('width') + 'px';
  2472. elem.style.height = elem.getAttribute('height') + 'px';
  2473. return tarteaucitron.engage(id);
  2474. });
  2475. }
  2476. };
  2477. // Adform
  2478. tarteaucitron.services.adform = {
  2479. "key": "adform",
  2480. "type": "ads",
  2481. "name": "Adform",
  2482. "uri": "https://site.adform.com/privacy-center/overview/",
  2483. "needConsent": true,
  2484. "cookies": [],
  2485. "js": function () {
  2486. "use strict";
  2487. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  2488. return;
  2489. }
  2490. window._adftrack = {
  2491. pm: tarteaucitron.user.adformpm,
  2492. divider: encodeURIComponent('|'),
  2493. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  2494. };
  2495. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  2496. }
  2497. };
  2498. // Active Campaign
  2499. tarteaucitron.services.activecampaign = {
  2500. "key": "activecampaign",
  2501. "type": "ads",
  2502. "name": "Active Campaign",
  2503. "uri": "https://www.activecampaign.com/privacy-policy/",
  2504. "needConsent": true,
  2505. "cookies": [],
  2506. "js": function () {
  2507. "use strict";
  2508. if (tarteaucitron.user.actid === undefined) {
  2509. return;
  2510. }
  2511. window.trackcmp_email = '';
  2512. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  2513. }
  2514. };
  2515. // tawk.to
  2516. tarteaucitron.services.tawkto = {
  2517. "key": "tawkto",
  2518. "type": "support",
  2519. "name": "Tawk.to chat",
  2520. "uri": "https://www.tawk.to/data-protection/",
  2521. "needConsent": true,
  2522. "cookies": [],
  2523. "js": function () {
  2524. "use strict";
  2525. if (tarteaucitron.user.tawktoId === undefined) {
  2526. return;
  2527. }
  2528. window.Tawk_API=window.Tawk_API||{};
  2529. window.Tawk_LoadStart=new Date();
  2530. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  2531. }
  2532. };
  2533. // getquanty
  2534. tarteaucitron.services.getquanty = {
  2535. "key": "getquanty",
  2536. "type": "analytic",
  2537. "name": "GetQuanty",
  2538. "uri": "https://www.getquanty.com/mentions-legales/",
  2539. "needConsent": true,
  2540. "cookies": [],
  2541. "js": function () {
  2542. "use strict";
  2543. if (tarteaucitron.user.getguanty === undefined) {
  2544. return;
  2545. }
  2546. window.webleads_site_ids = window.webleads_site_ids || [];
  2547. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  2548. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  2549. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  2550. }
  2551. };
  2552. // emolytics
  2553. tarteaucitron.services.emolytics = {
  2554. "key": "emolytics",
  2555. "type": "analytic",
  2556. "name": "Emolytics",
  2557. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  2558. "needConsent": true,
  2559. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  2560. "js": function () {
  2561. "use strict";
  2562. if (tarteaucitron.user.emolyticsID === undefined) {
  2563. return;
  2564. }
  2565. var scriptEmolytics = document.createElement('script');
  2566. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  2567. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  2568. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  2569. }
  2570. };
  2571. // youtubeapi
  2572. tarteaucitron.services.youtubeapi = {
  2573. "key": "youtubeapi",
  2574. "type": "video",
  2575. "name": "Youtube (Js API)",
  2576. "uri": "https://policies.google.com/privacy/",
  2577. "needConsent": true,
  2578. "cookies": [],
  2579. "js": function () {
  2580. "use strict";
  2581. tarteaucitron.addScript('https://www.youtube.com/player_api');
  2582. }
  2583. };