tarteaucitron.services.js 112 KB

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