tarteaucitron.services.js 110 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135
  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. }
  1163. };
  1164. },
  1165. "fallback": function () {
  1166. "use strict";
  1167. var id = 'googlemaps';
  1168. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1169. }
  1170. };
  1171. // googlemaps search
  1172. tarteaucitron.services.googlemapssearch = {
  1173. "key": "googlemapssearch",
  1174. "type": "api",
  1175. "name": "Google Maps Search API",
  1176. "uri": "https://adssettings.google.com/",
  1177. "needConsent": true,
  1178. "cookies": ['nid'],
  1179. "js": function () {
  1180. "use strict";
  1181. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1182. var width = x.getAttribute("width"),
  1183. height = x.getAttribute("height"),
  1184. // url = x.getAttribute("data-url");
  1185. query = escape(x.getAttribute("data-search")),
  1186. key = x.getAttribute("data-api-key");
  1187. // return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1188. 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> '
  1189. });
  1190. },
  1191. "fallback": function () {
  1192. "use strict";
  1193. var id = 'googlemapssearch';
  1194. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1195. elem.style.width = elem.getAttribute('width') + 'px';
  1196. elem.style.height = elem.getAttribute('height') + 'px';
  1197. return tarteaucitron.engage(id);
  1198. });
  1199. }
  1200. };
  1201. // googlemaps embed iframe
  1202. tarteaucitron.services.googlemapsembed = {
  1203. "key": "googlemapsembed",
  1204. "type": "api",
  1205. "name": "Google Maps Embed",
  1206. "uri": "https://adssettings.google.com/",
  1207. "needConsent": true,
  1208. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1209. "js": function () {
  1210. "use strict";
  1211. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1212. var width = tarteaucitron.getElemWidth(x),
  1213. height = tarteaucitron.getElemHeight(x),
  1214. url = x.getAttribute("data-url");
  1215. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1216. });
  1217. },
  1218. "fallback": function () {
  1219. "use strict";
  1220. var id = 'googlemapsembed';
  1221. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1222. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1223. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1224. return tarteaucitron.engage(id);
  1225. });
  1226. }
  1227. };
  1228. // google tag manager
  1229. tarteaucitron.services.googletagmanager = {
  1230. "key": "googletagmanager",
  1231. "type": "api",
  1232. "name": "Google Tag Manager",
  1233. "uri": "https://adssettings.google.com/",
  1234. "needConsent": true,
  1235. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1236. "js": function () {
  1237. "use strict";
  1238. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1239. return;
  1240. }
  1241. window.dataLayer = window.dataLayer || [];
  1242. window.dataLayer.push({
  1243. 'gtm.start': new Date().getTime(),
  1244. event: 'gtm.js'
  1245. });
  1246. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1247. }
  1248. };
  1249. // google webfonts
  1250. tarteaucitron.services.googlefonts = {
  1251. "key": "googlefonts",
  1252. "type": "api",
  1253. "name": "Google Webfonts",
  1254. "uri": "https://www.google.com/intl/de/policies/privacy/",
  1255. "needConsent": true,
  1256. "cookies": [],
  1257. "js": function () {
  1258. "use strict";
  1259. if (tarteaucitron.user.googleFonts === undefined) {
  1260. return;
  1261. }
  1262. tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
  1263. WebFont.load({
  1264. google: {
  1265. families: tarteaucitron.user.googleFonts
  1266. }
  1267. });
  1268. });
  1269. }
  1270. };
  1271. // hubspot
  1272. tarteaucitron.services.hubspot = {
  1273. "key": "hubspot",
  1274. "type": "analytic",
  1275. "name": "Hubspot",
  1276. "uri": "https://legal.hubspot.com/privacy-policy",
  1277. "needConsent": true,
  1278. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1279. "js": function () {
  1280. "use strict";
  1281. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1282. }
  1283. };
  1284. // jsapi
  1285. tarteaucitron.services.jsapi = {
  1286. "key": "jsapi",
  1287. "type": "api",
  1288. "name": "Google jsapi",
  1289. "uri": "https://policies.google.com/privacy",
  1290. "needConsent": true,
  1291. "cookies": [],
  1292. "js": function () {
  1293. "use strict";
  1294. tarteaucitron.addScript('//www.google.com/jsapi');
  1295. }
  1296. };
  1297. // twitterwidgetsapi
  1298. tarteaucitron.services.twitterwidgetsapi = {
  1299. "key": "twitterwidgetsapi",
  1300. "type": "api",
  1301. "name": "Twitter Widgets API",
  1302. "uri": "https://support.twitter.com/articles/20170514",
  1303. "needConsent": true,
  1304. "cookies": [],
  1305. "js": function () {
  1306. "use strict";
  1307. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1308. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1309. },
  1310. "fallback": function () {
  1311. "use strict";
  1312. var id = 'twitterwidgetsapi';
  1313. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1314. }
  1315. };
  1316. // recaptcha
  1317. tarteaucitron.services.recaptcha = {
  1318. "key": "recaptcha",
  1319. "type": "api",
  1320. "name": "reCAPTCHA",
  1321. "uri": "https://policies.google.com/privacy",
  1322. "needConsent": true,
  1323. "cookies": ['nid'],
  1324. "js": function () {
  1325. "use strict";
  1326. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
  1327. tarteaucitron.fallback(['g-recaptcha'], '');
  1328. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  1329. },
  1330. "fallback": function () {
  1331. "use strict";
  1332. var id = 'recaptcha';
  1333. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1334. }
  1335. };
  1336. // linkedin
  1337. tarteaucitron.services.linkedin = {
  1338. "key": "linkedin",
  1339. "type": "social",
  1340. "name": "Linkedin",
  1341. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1342. "needConsent": true,
  1343. "cookies": [],
  1344. "js": function () {
  1345. "use strict";
  1346. tarteaucitron.fallback(['tacLinkedin'], '');
  1347. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1348. if (tarteaucitron.isAjax === true) {
  1349. if (typeof IN !== "undefined") {
  1350. IN.parse();
  1351. }
  1352. }
  1353. },
  1354. "fallback": function () {
  1355. "use strict";
  1356. var id = 'linkedin';
  1357. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1358. }
  1359. };
  1360. // mautic
  1361. tarteaucitron.services.mautic = {
  1362. "key": "mautic",
  1363. "type": "analytic",
  1364. "name": "Mautic",
  1365. "uri": "https://www.mautic.org/privacy-policy/",
  1366. "needConsent": true,
  1367. "cookies": ['mtc_id', 'mtc_sid'],
  1368. "js": function () {
  1369. "use strict";
  1370. if (tarteaucitron.user.mauticurl === undefined) {
  1371. return;
  1372. }
  1373. window.MauticTrackingObject = 'mt';
  1374. window.mt = window.mt || function () {
  1375. window.mt.q = window.mt.q || [];
  1376. window.mt.q.push(arguments);
  1377. };
  1378. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1379. mt('send', 'pageview');
  1380. });
  1381. }
  1382. };
  1383. // microsoftcampaignanalytics
  1384. tarteaucitron.services.microsoftcampaignanalytics = {
  1385. "key": "microsoftcampaignanalytics",
  1386. "type": "analytic",
  1387. "name": "Microsoft Campaign Analytics",
  1388. "uri": "https://privacy.microsoft.com/privacystatement/",
  1389. "needConsent": true,
  1390. "cookies": [],
  1391. "js": function () {
  1392. "use strict";
  1393. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1394. return;
  1395. }
  1396. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1397. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1398. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1399. });
  1400. }
  1401. };
  1402. // pinterest
  1403. tarteaucitron.services.pinterest = {
  1404. "key": "pinterest",
  1405. "type": "social",
  1406. "name": "Pinterest",
  1407. "uri": "https://about.pinterest.com/privacy-policy",
  1408. "needConsent": true,
  1409. "cookies": [],
  1410. "js": function () {
  1411. "use strict";
  1412. tarteaucitron.fallback(['tacPinterest'], '');
  1413. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1414. },
  1415. "fallback": function () {
  1416. "use strict";
  1417. var id = 'pinterest';
  1418. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1419. }
  1420. };
  1421. // prelinker
  1422. tarteaucitron.services.prelinker = {
  1423. "key": "prelinker",
  1424. "type": "ads",
  1425. "name": "Prelinker",
  1426. "uri": "http://www.prelinker.com/index/index/cgu/",
  1427. "needConsent": true,
  1428. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1429. "js": function () {
  1430. "use strict";
  1431. var uniqIds = [],
  1432. i,
  1433. uri;
  1434. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1435. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1436. uniqIds.push(uniqId);
  1437. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1438. });
  1439. for (i = 0; i < uniqIds.length; i += 1) {
  1440. uri = 'http://promo.easy-dating.org/banner/index?';
  1441. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1442. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1443. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1444. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1445. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1446. }
  1447. },
  1448. "fallback": function () {
  1449. "use strict";
  1450. var id = 'prelinker';
  1451. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1452. }
  1453. };
  1454. // prezi
  1455. tarteaucitron.services.prezi = {
  1456. "key": "prezi",
  1457. "type": "video",
  1458. "name": "Prezi",
  1459. "uri": "https://prezi.com/privacy-policy/",
  1460. "needConsent": true,
  1461. "cookies": [],
  1462. "js": function () {
  1463. "use strict";
  1464. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1465. var id = x.getAttribute("data-id"),
  1466. width = x.getAttribute("width"),
  1467. height = x.getAttribute("height"),
  1468. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1469. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1470. });
  1471. },
  1472. "fallback": function () {
  1473. "use strict";
  1474. var id = 'prezi';
  1475. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1476. elem.style.width = elem.getAttribute('width') + 'px';
  1477. elem.style.height = elem.getAttribute('height') + 'px';
  1478. return tarteaucitron.engage(id);
  1479. });
  1480. }
  1481. };
  1482. // pubdirecte
  1483. tarteaucitron.services.pubdirecte = {
  1484. "key": "pubdirecte",
  1485. "type": "ads",
  1486. "name": "Pubdirecte",
  1487. "uri": "http://pubdirecte.com/contact.php",
  1488. "needConsent": true,
  1489. "cookies": [],
  1490. "js": function () {
  1491. "use strict";
  1492. var uniqIds = [],
  1493. i,
  1494. uri;
  1495. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1496. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1497. uniqIds.push(uniqId);
  1498. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1499. });
  1500. for (i = 0; i < uniqIds.length; i += 1) {
  1501. uri = '//www.pubdirecte.com/script/banniere.php?';
  1502. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1503. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1504. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1505. }
  1506. },
  1507. "fallback": function () {
  1508. "use strict";
  1509. var id = 'pubdirecte';
  1510. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1511. }
  1512. };
  1513. // purechat
  1514. tarteaucitron.services.purechat = {
  1515. "key": "purechat",
  1516. "type": "support",
  1517. "name": "PureChat",
  1518. "uri": "https://www.purechat.com/privacy",
  1519. "needConsent": true,
  1520. "cookies": [],
  1521. "js": function () {
  1522. "use strict";
  1523. if (tarteaucitron.user.purechatId === undefined) {
  1524. return;
  1525. }
  1526. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1527. try {
  1528. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1529. } catch (e) {}
  1530. });
  1531. }
  1532. };
  1533. // rumbletalk
  1534. tarteaucitron.services.rumbletalk = {
  1535. "key": "rumbletalk",
  1536. "type": "social",
  1537. "name": "RumbleTalk",
  1538. "needConsent": true,
  1539. "cookies": ['AWSALB'],
  1540. "js": function () {
  1541. "use strict";
  1542. if (tarteaucitron.user.rumbletalkid === undefined) {
  1543. return;
  1544. }
  1545. tarteaucitron.addScript('https://rumbletalk.com/client/?' + tarteaucitron.user.rumbletalkid);
  1546. tarteaucitron.fallback(['rumbletalk'], function (x) {
  1547. var width = tarteaucitron.getElemWidth(x),
  1548. height = tarteaucitron.getElemHeight(x),
  1549. id = x.getAttribute("data-id");
  1550. return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
  1551. });
  1552. },
  1553. "fallback": function () {
  1554. "use strict";
  1555. var id = 'rumbletalk';
  1556. tarteaucitron.fallback(['rumbletalk'], function (elem) {
  1557. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1558. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1559. return tarteaucitron.engage(id);
  1560. });
  1561. }
  1562. };
  1563. // shareaholic
  1564. tarteaucitron.services.shareaholic = {
  1565. "key": "shareaholic",
  1566. "type": "social",
  1567. "name": "Shareaholic",
  1568. "uri": "https://shareaholic.com/privacy/choices",
  1569. "needConsent": true,
  1570. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1571. "js": function () {
  1572. "use strict";
  1573. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1574. return;
  1575. }
  1576. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1577. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1578. try {
  1579. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1580. } catch (e) {}
  1581. });
  1582. },
  1583. "fallback": function () {
  1584. "use strict";
  1585. var id = 'shareaholic';
  1586. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1587. }
  1588. };
  1589. // shareasale
  1590. tarteaucitron.services.shareasale = {
  1591. "key": "shareasale",
  1592. "type": "ads",
  1593. "name": "ShareASale",
  1594. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1595. "needConsent": true,
  1596. "cookies": [],
  1597. "js": function () {
  1598. "use strict";
  1599. var uniqIds = [],
  1600. i,
  1601. uri;
  1602. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1603. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1604. uniqIds.push(uniqId);
  1605. 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>';
  1606. });
  1607. for (i = 0; i < uniqIds.length; i += 1) {
  1608. uri = 'https://shareasale.com/sale.cfm?';
  1609. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1610. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1611. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1612. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1613. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1614. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1615. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1616. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1617. }
  1618. },
  1619. "fallback": function () {
  1620. "use strict";
  1621. var id = 'shareasale';
  1622. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1623. }
  1624. };
  1625. // sharethis
  1626. tarteaucitron.services.sharethis = {
  1627. "key": "sharethis",
  1628. "type": "social",
  1629. "name": "ShareThis",
  1630. "uri": "http://www.sharethis.com/legal/privacy/",
  1631. "needConsent": true,
  1632. "cookies": ['__unam'],
  1633. "js": function () {
  1634. "use strict";
  1635. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1636. return;
  1637. }
  1638. var switchTo5x = true,
  1639. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1640. tarteaucitron.fallback(['tacSharethis'], '');
  1641. tarteaucitron.addScript(uri, '', function () {
  1642. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1643. });
  1644. if (tarteaucitron.isAjax === true) {
  1645. if (typeof stButtons !== "undefined") {
  1646. stButtons.locateElements();
  1647. }
  1648. }
  1649. },
  1650. "fallback": function () {
  1651. "use strict";
  1652. var id = 'sharethis';
  1653. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1654. }
  1655. };
  1656. // slideshare
  1657. tarteaucitron.services.slideshare = {
  1658. "key": "slideshare",
  1659. "type": "video",
  1660. "name": "SlideShare",
  1661. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1662. "needConsent": true,
  1663. "cookies": [],
  1664. "js": function () {
  1665. "use strict";
  1666. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1667. var id = x.getAttribute("data-id"),
  1668. width = x.getAttribute("width"),
  1669. height = x.getAttribute("height"),
  1670. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1671. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1672. });
  1673. },
  1674. "fallback": function () {
  1675. "use strict";
  1676. var id = 'slideshare';
  1677. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1678. elem.style.width = elem.getAttribute('width') + 'px';
  1679. elem.style.height = elem.getAttribute('height') + 'px';
  1680. return tarteaucitron.engage(id);
  1681. });
  1682. }
  1683. };
  1684. // statcounter
  1685. tarteaucitron.services.statcounter = {
  1686. "key": "statcounter",
  1687. "type": "analytic",
  1688. "name": "StatCounter",
  1689. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1690. "needConsent": true,
  1691. "cookies": ['sc_is_visitor_unique'],
  1692. "js": function () {
  1693. "use strict";
  1694. var uniqIds = [],
  1695. i,
  1696. uri = '//statcounter.com/counter/counter.js';
  1697. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1698. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1699. uniqIds.push(uniqId);
  1700. return '<div id="' + uniqId + '"></div>';
  1701. });
  1702. for (i = 0; i < uniqIds.length; i += 1) {
  1703. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1704. }
  1705. },
  1706. "fallback": function () {
  1707. "use strict";
  1708. var id = 'statcounter';
  1709. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1710. }
  1711. };
  1712. // timelinejs
  1713. tarteaucitron.services.timelinejs = {
  1714. "key": "timelinejs",
  1715. "type": "api",
  1716. "name": "Timeline JS",
  1717. "uri": "http://timeline.knightlab.com/#help",
  1718. "needConsent": true,
  1719. "cookies": [],
  1720. "js": function () {
  1721. "use strict";
  1722. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1723. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1724. width = x.getAttribute("width"),
  1725. height = x.getAttribute("height"),
  1726. lang = x.getAttribute("lang_2_letter"),
  1727. font = x.getAttribute("font"),
  1728. map = x.getAttribute("map"),
  1729. start_at_end = x.getAttribute("start_at_end"),
  1730. hash_bookmark = x.getAttribute("hash_bookmark"),
  1731. start_at_slide = x.getAttribute("start_at_slide"),
  1732. start_zoom = x.getAttribute("start_zoom"),
  1733. 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;
  1734. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1735. });
  1736. },
  1737. "fallback": function () {
  1738. "use strict";
  1739. var id = 'timelinejs';
  1740. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1741. elem.style.width = elem.getAttribute('width') + 'px';
  1742. elem.style.height = elem.getAttribute('height') + 'px';
  1743. return tarteaucitron.engage(id);
  1744. });
  1745. }
  1746. };
  1747. // tagcommander
  1748. tarteaucitron.services.tagcommander = {
  1749. "key": "tagcommander",
  1750. "type": "api",
  1751. "name": "TagCommander",
  1752. "uri": "https://www.commandersact.com/en/privacy/",
  1753. "needConsent": true,
  1754. "cookies": [],
  1755. "js": function () {
  1756. "use strict";
  1757. if (tarteaucitron.user.tagcommanderid === undefined) {
  1758. return;
  1759. }
  1760. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  1761. }
  1762. };
  1763. // typekit
  1764. tarteaucitron.services.typekit = {
  1765. "key": "typekit",
  1766. "type": "api",
  1767. "name": "Typekit (adobe)",
  1768. "uri": "https://www.adobe.com/privacy.html",
  1769. "needConsent": true,
  1770. "cookies": [],
  1771. "js": function () {
  1772. "use strict";
  1773. if (tarteaucitron.user.typekitId === undefined) {
  1774. return;
  1775. }
  1776. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1777. try {
  1778. Typekit.load();
  1779. } catch (e) {}
  1780. });
  1781. }
  1782. };
  1783. // twenga
  1784. tarteaucitron.services.twenga = {
  1785. "key": "twenga",
  1786. "type": "ads",
  1787. "name": "Twenga",
  1788. "uri": "http://www.twenga.com/privacy.php",
  1789. "needConsent": true,
  1790. "cookies": [],
  1791. "js": function () {
  1792. "use strict";
  1793. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1794. return;
  1795. }
  1796. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1797. }
  1798. };
  1799. // twitter
  1800. tarteaucitron.services.twitter = {
  1801. "key": "twitter",
  1802. "type": "social",
  1803. "name": "Twitter",
  1804. "uri": "https://support.twitter.com/articles/20170514",
  1805. "needConsent": true,
  1806. "cookies": [],
  1807. "js": function () {
  1808. "use strict";
  1809. tarteaucitron.fallback(['tacTwitter'], '');
  1810. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1811. },
  1812. "fallback": function () {
  1813. "use strict";
  1814. var id = 'twitter';
  1815. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1816. }
  1817. };
  1818. // twitter embed
  1819. tarteaucitron.services.twitterembed = {
  1820. "key": "twitterembed",
  1821. "type": "social",
  1822. "name": "Twitter (cards)",
  1823. "uri": "https://support.twitter.com/articles/20170514",
  1824. "needConsent": true,
  1825. "cookies": [],
  1826. "js": function () {
  1827. "use strict";
  1828. var uniqIds = [],
  1829. i,
  1830. e,
  1831. html;
  1832. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1833. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1834. uniqIds.push(uniqId);
  1835. html = '<div id="' + uniqId + '" ';
  1836. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1837. html += 'theme="' + x.getAttribute('theme') + '" ';
  1838. html += 'cards="' + x.getAttribute('cards') + '" ';
  1839. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1840. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1841. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1842. html += '></div>';
  1843. return html;
  1844. });
  1845. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1846. for (i = 0; i < uniqIds.length; i += 1) {
  1847. e = document.getElementById(uniqIds[i]);
  1848. twttr.widgets.createTweet(
  1849. e.getAttribute('tweetid'),
  1850. e,
  1851. {
  1852. theme: e.getAttribute('theme'),
  1853. cards: e.getAttribute('cards'),
  1854. conversation: e.getAttribute('conversation'),
  1855. lang: tarteaucitron.getLanguage(),
  1856. dnt: true,
  1857. width: e.getAttribute('data-width'),
  1858. align: e.getAttribute('data-align')
  1859. }
  1860. );
  1861. }
  1862. });
  1863. },
  1864. "fallback": function () {
  1865. "use strict";
  1866. var id = 'twitterembed';
  1867. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1868. elem.style.width = elem.getAttribute('data-width') + 'px';
  1869. return tarteaucitron.engage(id);
  1870. });
  1871. }
  1872. };
  1873. // twitter timeline
  1874. tarteaucitron.services.twittertimeline = {
  1875. "key": "twittertimeline",
  1876. "type": "social",
  1877. "name": "Twitter (timelines)",
  1878. "uri": "https://support.twitter.com/articles/20170514",
  1879. "needConsent": true,
  1880. "cookies": [],
  1881. "js": function () {
  1882. "use strict";
  1883. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1884. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1885. },
  1886. "fallback": function () {
  1887. "use strict";
  1888. var id = 'twittertimeline';
  1889. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1890. }
  1891. };
  1892. // user voice
  1893. tarteaucitron.services.uservoice = {
  1894. "key": "uservoice",
  1895. "type": "support",
  1896. "name": "UserVoice",
  1897. "uri": "https://www.uservoice.com/privacy/",
  1898. "needConsent": true,
  1899. "cookies": [],
  1900. "js": function () {
  1901. "use strict";
  1902. if (tarteaucitron.user.userVoiceApi === undefined) {
  1903. return;
  1904. }
  1905. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1906. }
  1907. };
  1908. // vimeo
  1909. tarteaucitron.services.vimeo = {
  1910. "key": "vimeo",
  1911. "type": "video",
  1912. "name": "Vimeo",
  1913. "uri": "https://vimeo.com/privacy",
  1914. "needConsent": true,
  1915. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1916. "js": function () {
  1917. "use strict";
  1918. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1919. var video_width = x.getAttribute("data-width") || x.getAttribute("width"),
  1920. frame_width = 'width=',
  1921. video_height = x.getAttribute("data-height") || x.getAttribute("height"),
  1922. frame_height = 'height=',
  1923. video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
  1924. video_autopause = x.getAttribute("data-autopause") || '',
  1925. video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
  1926. video_background = x.getAttribute("data-background") || '',
  1927. video_byline = x.getAttribute("data-byline") || x.getAttribute("byline") || '',
  1928. video_color = x.getAttribute("data-color") || '',
  1929. video_controls = x.getAttribute("data-controls") || '',
  1930. video_loop = x.getAttribute("data-loop") || x.getAttribute("loop") || '',
  1931. video_maxheight = x.getAttribute("data-maxheight") || '',
  1932. video_maxwidth = x.getAttribute("data-maxwidth") || '',
  1933. video_muted = x.getAttribute("data-muted") || '',
  1934. video_playsinline = x.getAttribute("data-playsinline") || '',
  1935. video_portrait = x.getAttribute("data-portrait") || x.getAttribute("portrait") || '',
  1936. video_speed = x.getAttribute("data-speed") || '',
  1937. video_title = x.getAttribute("data-title") || x.getAttribute("title") || '',
  1938. video_transparent = x.getAttribute("data-transparent") || '',
  1939. video_frame;
  1940. if (video_id === undefined) {
  1941. return "";
  1942. }
  1943. if (video_width !== undefined) {
  1944. frame_width += '"' + video_width + '" ';
  1945. } else {
  1946. frame_width += '"" ';
  1947. }
  1948. if (video_height !== undefined) {
  1949. frame_height += '"' + video_height + '" ';
  1950. } else {
  1951. frame_height += '"" ';
  1952. }
  1953. var video_qs = "?";
  1954. if (video_title.length > 0) {
  1955. video_qs += "title=" + video_title;
  1956. }
  1957. if (video_byline.length > 0) {
  1958. if (video_qs.length > 0) {
  1959. video_qs += "&";
  1960. }
  1961. video_qs += "byline=" + video_byline;
  1962. }
  1963. if (video_portrait.length > 0) {
  1964. if (video_qs.length > 0) {
  1965. video_qs += "&";
  1966. }
  1967. video_qs += "portrait=" + video_portrait;
  1968. }
  1969. if (video_loop.length > 0) {
  1970. if (video_qs.length > 0) {
  1971. video_qs += "&";
  1972. }
  1973. video_qs += "loop=" + video_loop;
  1974. }
  1975. if (video_autoplay.length > 0) {
  1976. if (video_qs.length > 0) {
  1977. video_qs += "&";
  1978. }
  1979. video_qs += "autoplay=" + video_autoplay;
  1980. }
  1981. if (video_autopause.length > 0) {
  1982. if (video_qs.length > 0) {
  1983. video_qs += "&";
  1984. }
  1985. video_qs += "autopause=" + video_autopause;
  1986. }
  1987. if (video_background.length > 0) {
  1988. if (video_qs.length > 0) {
  1989. video_qs += "&";
  1990. }
  1991. video_qs += "background=" + video_background;
  1992. }
  1993. if (video_color.length > 0) {
  1994. if (video_qs.length > 0) {
  1995. video_qs += "&";
  1996. }
  1997. video_qs += "color=" + video_color;
  1998. }
  1999. if (video_controls.length > 0) {
  2000. if (video_qs.length > 0) {
  2001. video_qs += "&";
  2002. }
  2003. video_qs += "controls=" + video_controls;
  2004. }
  2005. if (video_maxheight.length > 0) {
  2006. if (video_qs.length > 0) {
  2007. video_qs += "&";
  2008. }
  2009. video_qs += "maxheight=" + video_maxheight;
  2010. }
  2011. if (video_maxwidth.length > 0) {
  2012. if (video_qs.length > 0) {
  2013. video_qs += "&";
  2014. }
  2015. video_qs += "maxwidth=" + video_maxwidth;
  2016. }
  2017. if (video_muted.length > 0) {
  2018. if (video_qs.length > 0) {
  2019. video_qs += "&";
  2020. }
  2021. video_qs += "muted=" + video_muted;
  2022. }
  2023. if (video_playsinline.length > 0) {
  2024. if (video_qs.length > 0) {
  2025. video_qs += "&";
  2026. }
  2027. video_qs += "playsinline=" + video_playsinline;
  2028. }
  2029. if (video_speed.length > 0) {
  2030. if (video_qs.length > 0) {
  2031. video_qs += "&";
  2032. }
  2033. video_qs += "speed=" + video_speed;
  2034. }
  2035. if (video_transparent.length > 0) {
  2036. if (video_qs.length > 0) {
  2037. video_qs += "&";
  2038. }
  2039. video_qs += "transparent=" + video_transparent;
  2040. }
  2041. if (video_qs === "?") {
  2042. video_qs = "";
  2043. }
  2044. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  2045. return video_frame;
  2046. });
  2047. },
  2048. "fallback": function () {
  2049. "use strict";
  2050. var id = 'vimeo';
  2051. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  2052. elem.style.width = elem.getAttribute('width') + 'px';
  2053. elem.style.height = elem.getAttribute('height') + 'px';
  2054. return tarteaucitron.engage(id);
  2055. });
  2056. }
  2057. };
  2058. // visualrevenue
  2059. tarteaucitron.services.visualrevenue = {
  2060. "key": "visualrevenue",
  2061. "type": "analytic",
  2062. "name": "VisualRevenue",
  2063. "uri": "http://www.outbrain.com/legal/privacy-713/",
  2064. "needConsent": true,
  2065. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  2066. "js": function () {
  2067. "use strict";
  2068. if (tarteaucitron.user.visualrevenueId === undefined) {
  2069. return;
  2070. }
  2071. window._vrq = window._vrq || [];
  2072. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  2073. window._vrq.push(['automate', true]);
  2074. window._vrq.push(['track', function () {}]);
  2075. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  2076. }
  2077. };
  2078. // vshop
  2079. tarteaucitron.services.vshop = {
  2080. "key": "vshop",
  2081. "type": "ads",
  2082. "name": "vShop",
  2083. "uri": "http://vshop.fr/privacy-policy",
  2084. "needConsent": true,
  2085. "cookies": [],
  2086. "js": function () {
  2087. "use strict";
  2088. tarteaucitron.fallback(['vcashW'], '');
  2089. tarteaucitron.addScript('//vshop.fr/js/w.js');
  2090. },
  2091. "fallback": function () {
  2092. "use strict";
  2093. var id = 'vshop';
  2094. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  2095. }
  2096. };
  2097. // wysistat
  2098. tarteaucitron.services.wysistat = {
  2099. "key": "wysistat",
  2100. "type": "analytic",
  2101. "name": "Wysistat",
  2102. "uri": "http://wysistat.net/contact/",
  2103. "needConsent": true,
  2104. "cookies": ['Wysistat'],
  2105. "js": function () {
  2106. "use strict";
  2107. if (tarteaucitron.user.wysistat === undefined) {
  2108. return;
  2109. }
  2110. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  2111. 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);
  2112. });
  2113. }
  2114. };
  2115. // xiti
  2116. tarteaucitron.services.xiti = {
  2117. "key": "xiti",
  2118. "type": "analytic",
  2119. "name": "Xiti",
  2120. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2121. "needConsent": true,
  2122. "cookies": [],
  2123. "js": function () {
  2124. "use strict";
  2125. if (tarteaucitron.user.xitiId === undefined) {
  2126. return;
  2127. }
  2128. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  2129. Xt_r,
  2130. Xt_h,
  2131. Xt_i,
  2132. Xt_s,
  2133. div = document.createElement('div');
  2134. try {
  2135. Xt_r = top.document.referrer;
  2136. } catch (e) {
  2137. Xt_r = document.referrer;
  2138. }
  2139. Xt_h = new Date();
  2140. Xt_i = '<img style="display:none" border="0" alt="" ';
  2141. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  2142. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  2143. if (parseFloat(navigator.appVersion) >= 4) {
  2144. Xt_s = screen;
  2145. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  2146. }
  2147. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  2148. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  2149. if (typeof tarteaucitron.user.xitiMore === 'function') {
  2150. tarteaucitron.user.xitiMore();
  2151. }
  2152. }
  2153. };
  2154. // AT Internet
  2155. tarteaucitron.services.atinternet = {
  2156. "key": "atinternet",
  2157. "type": "analytic",
  2158. "name": "AT Internet (privacy by design)",
  2159. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2160. "needConsent": false,
  2161. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2162. "js": function () {
  2163. "use strict";
  2164. if (tarteaucitron.user.atLibUrl === undefined) {
  2165. return;
  2166. }
  2167. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2168. var tag = new ATInternet.Tracker.Tag();
  2169. if (typeof tarteaucitron.user.atMore === 'function') {
  2170. tarteaucitron.user.atMore();
  2171. }
  2172. })
  2173. }
  2174. };
  2175. // AT Internet
  2176. tarteaucitron.services.atinternethightrack = {
  2177. "key": "atinternethightrack",
  2178. "type": "analytic",
  2179. "name": "AT Internet",
  2180. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2181. "needConsent": true,
  2182. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2183. "js": function () {
  2184. "use strict";
  2185. if (tarteaucitron.user.atLibUrl === undefined) {
  2186. return;
  2187. }
  2188. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2189. var tag = new ATInternet.Tracker.Tag();
  2190. if (typeof tarteaucitron.user.atMore === 'function') {
  2191. tarteaucitron.user.atMore();
  2192. }
  2193. })
  2194. }
  2195. };
  2196. // youtube
  2197. tarteaucitron.services.youtube = {
  2198. "key": "youtube",
  2199. "type": "video",
  2200. "name": "YouTube",
  2201. "uri": "https://policies.google.com/privacy",
  2202. "needConsent": true,
  2203. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2204. "js": function () {
  2205. "use strict";
  2206. tarteaucitron.fallback(['youtube_player'], function (x) {
  2207. var video_id = x.getAttribute("videoID"),
  2208. video_width = x.getAttribute("width"),
  2209. frame_width = 'width=',
  2210. video_height = x.getAttribute("height"),
  2211. frame_height = 'height=',
  2212. video_frame,
  2213. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2214. if (video_id === undefined) {
  2215. return "";
  2216. }
  2217. if (video_width !== undefined) {
  2218. frame_width += '"' + video_width + '" ';
  2219. } else {
  2220. frame_width += '"" ';
  2221. }
  2222. if (video_height !== undefined) {
  2223. frame_height += '"' + video_height + '" ';
  2224. } else {
  2225. frame_height += '"" ';
  2226. }
  2227. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0" allowfullscreen></iframe>';
  2228. return video_frame;
  2229. });
  2230. },
  2231. "fallback": function () {
  2232. "use strict";
  2233. var id = 'youtube';
  2234. tarteaucitron.fallback(['youtube_player'], function (elem) {
  2235. elem.style.width = elem.getAttribute('width') + 'px';
  2236. elem.style.height = elem.getAttribute('height') + 'px';
  2237. return tarteaucitron.engage(id);
  2238. });
  2239. }
  2240. };
  2241. // youtube playlist
  2242. tarteaucitron.services.youtubeplaylist = {
  2243. "key": "youtubeplaylist",
  2244. "type": "video",
  2245. "name": "YouTube (playlist)",
  2246. "uri": "https://policies.google.com/privacy",
  2247. "needConsent": true,
  2248. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2249. "js": function () {
  2250. "use strict";
  2251. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  2252. var playlist_id = x.getAttribute("playlistID"),
  2253. video_width = x.getAttribute("width"),
  2254. frame_width = 'width=',
  2255. video_height = x.getAttribute("height"),
  2256. frame_height = 'height=',
  2257. video_frame,
  2258. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2259. if (playlist_id === undefined) {
  2260. return "";
  2261. }
  2262. if (video_width !== undefined) {
  2263. frame_width += '"' + video_width + '" ';
  2264. } else {
  2265. frame_width += '"" ';
  2266. }
  2267. if (video_height !== undefined) {
  2268. frame_height += '"' + video_height + '" ';
  2269. } else {
  2270. frame_height += '"" ';
  2271. }
  2272. 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>';
  2273. return video_frame;
  2274. });
  2275. },
  2276. "fallback": function () {
  2277. "use strict";
  2278. var id = 'youtubeplaylist';
  2279. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  2280. elem.style.width = elem.getAttribute('width') + 'px';
  2281. elem.style.height = elem.getAttribute('height') + 'px';
  2282. return tarteaucitron.engage(id);
  2283. });
  2284. }
  2285. };
  2286. // zopim
  2287. tarteaucitron.services.zopim = {
  2288. "key": "zopim",
  2289. "type": "support",
  2290. "name": "Zopim",
  2291. "uri": "https://www.zopim.com/privacy",
  2292. "needConsent": true,
  2293. "cookies": ['__zlcid', '__zprivacy'],
  2294. "js": function () {
  2295. "use strict";
  2296. if (tarteaucitron.user.zopimID === undefined) {
  2297. return;
  2298. }
  2299. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  2300. }
  2301. };
  2302. // xiti smartTag
  2303. tarteaucitron.services.xiti_smarttag = {
  2304. "key": "xiti_smarttag",
  2305. "type": "analytic",
  2306. "name": "Xiti (SmartTag)",
  2307. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  2308. "needConsent": true,
  2309. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  2310. "js": function () {
  2311. "use strict";
  2312. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  2313. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  2314. } else {
  2315. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  2316. if (xitiSmarttagId === undefined) {
  2317. return;
  2318. }
  2319. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  2320. }
  2321. }
  2322. };
  2323. // facebook pixel
  2324. tarteaucitron.services.facebookpixel = {
  2325. "key": "facebookpixel",
  2326. "type": "ads",
  2327. "name": "Facebook Pixel",
  2328. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  2329. "needConsent": true,
  2330. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  2331. "js": function () {
  2332. "use strict";
  2333. var n;
  2334. if(window.fbq)return;
  2335. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2336. if(!window._fbq)window._fbq=n;
  2337. n.push=n;
  2338. n.loaded=!0;
  2339. n.version='2.0';
  2340. n.queue=[];
  2341. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2342. fbq('init', tarteaucitron.user.facebookpixelId);
  2343. fbq('track', 'PageView');
  2344. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2345. tarteaucitron.user.facebookpixelMore();
  2346. }
  2347. }
  2348. };
  2349. //Issuu
  2350. tarteaucitron.services.issuu = {
  2351. "key": "issuu",
  2352. "type": "other",
  2353. "name": "Issuu",
  2354. "uri": "https://issuu.com/legal/privacy",
  2355. "needConsent": true,
  2356. "cookies": ['__qca', 'iutk', 'mc'],
  2357. "js": function () {
  2358. "use strict";
  2359. tarteaucitron.fallback(['issuu_player'], function (x) {
  2360. var issuu_id = x.getAttribute("issuuID"),
  2361. issuu_width = x.getAttribute("width"),
  2362. frame_width = 'width=',
  2363. issuu_height = x.getAttribute("height"),
  2364. frame_height = 'height=',
  2365. issuu_frame;
  2366. if (issuu_id === undefined) {
  2367. return "";
  2368. }
  2369. if (issuu_width !== undefined) {
  2370. frame_width += '"' + issuu_width + '" ';
  2371. } else {
  2372. frame_width += '"" ';
  2373. }
  2374. if (issuu_height !== undefined) {
  2375. frame_height += '"' + issuu_height + '" ';
  2376. } else {
  2377. frame_height += '"" ';
  2378. }
  2379. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
  2380. return issuu_frame;
  2381. });
  2382. },
  2383. "fallback": function () {
  2384. "use strict";
  2385. var id = 'issuu';
  2386. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2387. elem.style.width = elem.getAttribute('width') + 'px';
  2388. elem.style.height = elem.getAttribute('height') + 'px';
  2389. return tarteaucitron.engage(id);
  2390. });
  2391. }
  2392. };
  2393. // webmecanik
  2394. tarteaucitron.services.webmecanik = {
  2395. "key": "webmecanik",
  2396. "type": "analytic",
  2397. "name": "Webmecanik",
  2398. "uri": "https://webmecanik.com/tos",
  2399. "needConsent": true,
  2400. "cookies": ['mtc_id', 'mtc_sid'],
  2401. "js": function () {
  2402. "use strict";
  2403. if (tarteaucitron.user.webmecanikurl === undefined) {
  2404. return;
  2405. }
  2406. window.MauticTrackingObject = 'mt';
  2407. window.mt = window.mt || function () {
  2408. window.mt.q = window.mt.q || [];
  2409. window.mt.q.push(arguments);
  2410. };
  2411. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2412. mt('send', 'pageview');
  2413. });
  2414. }
  2415. };
  2416. // google analytics multiple
  2417. tarteaucitron.services.multiplegtag = {
  2418. "key": "multiplegtag",
  2419. "type": "analytic",
  2420. "name": "Google Analytics (gtag.js)",
  2421. "uri": "https://support.google.com/analytics/answer/6004245",
  2422. "needConsent": true,
  2423. "cookies": (function () {
  2424. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2425. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2426. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2427. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2428. });
  2429. }
  2430. return cookies;
  2431. })(),
  2432. "js": function () {
  2433. "use strict";
  2434. window.dataLayer = window.dataLayer || [];
  2435. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2436. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2437. window.gtag = function gtag(){dataLayer.push(arguments);}
  2438. gtag('js', new Date());
  2439. gtag('config', ua);
  2440. });
  2441. });
  2442. }
  2443. };
  2444. // Koban
  2445. tarteaucitron.services.koban = {
  2446. "key": "koban",
  2447. "type": "analytic",
  2448. "name": "Koban",
  2449. "uri": "https://koban.cloud/tos",
  2450. "needConsent": true,
  2451. "cookies": ['kbntrk'],
  2452. "js": function () {
  2453. "use strict";
  2454. if (tarteaucitron.user.kobanurl === undefined) {
  2455. return;
  2456. }
  2457. if (tarteaucitron.user.kobanapi === undefined) {
  2458. return;
  2459. }
  2460. window.KobanObject = 'kb';
  2461. window.kb = window.kb || function() {
  2462. window.kb.q = window.kb.q || [];
  2463. window.kb.q.push(arguments);
  2464. };
  2465. window.kb.l = new Date();
  2466. kb('reg', tarteaucitron.user.kobanapi);
  2467. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  2468. });
  2469. }
  2470. };
  2471. // matomo
  2472. /*
  2473. 1. Set the following variable before the initialization :
  2474. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  2475. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  2476. 2. Push the service :
  2477. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  2478. 3. HTML
  2479. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2480. */
  2481. tarteaucitron.services.matomo = {
  2482. "key": "matomo",
  2483. "type": "analytic",
  2484. "name": "Matomo (privacy by design)",
  2485. "uri": "https://matomo.org/faq/general/faq_146/",
  2486. "needConsent": false,
  2487. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2488. "js": function () {
  2489. "use strict";
  2490. if (tarteaucitron.user.matomoId === undefined) {
  2491. return;
  2492. }
  2493. window._paq = window._paq || [];
  2494. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2495. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2496. window._paq.push(["setDoNotTrack", 1]);
  2497. window._paq.push(["trackPageView"]);
  2498. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2499. window._paq.push(["enableLinkTracking"]);
  2500. window._paq.push([function() {
  2501. var self = this;
  2502. function getOriginalVisitorCookieTimeout() {
  2503. var now = new Date(),
  2504. nowTs = Math.round(now.getTime() / 1000),
  2505. visitorInfo = self.getVisitorInfo();
  2506. var createTs = parseInt(visitorInfo[2]);
  2507. var cookieTimeout = 33696000; // 13 mois en secondes
  2508. var originalTimeout = createTs + cookieTimeout - nowTs;
  2509. return originalTimeout;
  2510. }
  2511. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  2512. }]);
  2513. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2514. // waiting for piwik to be ready to check first party cookies
  2515. var interval = setInterval(function() {
  2516. if (typeof Piwik === 'undefined') return
  2517. clearInterval(interval)
  2518. // make piwik/matomo cookie accessible by getting tracker
  2519. Piwik.getTracker();
  2520. // looping throught cookies
  2521. var theCookies = document.cookie.split(';');
  2522. for (var i = 1 ; i <= theCookies.length; i++) {
  2523. var cookie = theCookies[i-1].split('=');
  2524. var cookieName = cookie[0].trim();
  2525. // if cookie starts like a piwik one, register it
  2526. if (cookieName.indexOf('_pk_') === 0) {
  2527. tarteaucitron.services.matomo.cookies.push(cookieName);
  2528. }
  2529. }
  2530. }, 100)
  2531. }
  2532. };
  2533. tarteaucitron.services.matomohightrack = {
  2534. "key": "matomohightrack",
  2535. "type": "analytic",
  2536. "name": "Matomo",
  2537. "uri": "https://matomo.org/faq/general/faq_146/",
  2538. "needConsent": true,
  2539. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2540. "js": function () {
  2541. "use strict";
  2542. if (tarteaucitron.user.matomoId === undefined) {
  2543. return;
  2544. }
  2545. window._paq = window._paq || [];
  2546. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2547. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2548. window._paq.push(["trackPageView"]);
  2549. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2550. window._paq.push(["enableLinkTracking"]);
  2551. window._paq.push([function() {
  2552. var self = this;
  2553. }]);
  2554. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2555. // waiting for piwik to be ready to check first party cookies
  2556. var interval = setInterval(function() {
  2557. if (typeof Piwik === 'undefined') return
  2558. clearInterval(interval)
  2559. Piwik.getTracker();
  2560. var theCookies = document.cookie.split(';');
  2561. for (var i = 1 ; i <= theCookies.length; i++) {
  2562. var cookie = theCookies[i-1].split('=');
  2563. var cookieName = cookie[0].trim();
  2564. if (cookieName.indexOf('_pk_') === 0) {
  2565. tarteaucitron.services.matomo.cookies.push(cookieName);
  2566. }
  2567. }
  2568. }, 100)
  2569. }
  2570. };
  2571. // Hotjar
  2572. /*
  2573. 1. Set the following variable before the initialization :
  2574. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  2575. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  2576. 2. Push the service :
  2577. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  2578. 3. HTML
  2579. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2580. */
  2581. tarteaucitron.services.hotjar = {
  2582. "key": "hotjar",
  2583. "type": "analytic",
  2584. "name": "Hotjar",
  2585. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  2586. "needConsent": true,
  2587. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  2588. "js": function () {
  2589. "use strict";
  2590. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  2591. return;
  2592. }
  2593. window.hj = window.hj || function() {
  2594. (window.hj.q = window.hj.q || []).push(arguments)
  2595. };
  2596. window._hjSettings = {
  2597. hjid: tarteaucitron.user.hotjarId,
  2598. hjsv: tarteaucitron.user.HotjarSv
  2599. };
  2600. var uri = 'https://static.hotjar.com/c/hotjar-';
  2601. var extension = '.js?sv=';
  2602. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  2603. }
  2604. };
  2605. // bing ads universal event tracking
  2606. tarteaucitron.services.bingads = {
  2607. 'key': 'bingads',
  2608. 'type': 'ads',
  2609. 'name': 'Bing Ads Universal Event Tracking',
  2610. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  2611. 'needConsent': true,
  2612. 'cookies': ['_uetmsclkid'],
  2613. 'js': function () {
  2614. 'use strict';
  2615. var u = tarteaucitron.user.bingadsTag || 'uetq';
  2616. window[u] = window[u] || [];
  2617. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  2618. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  2619. if ('bingadsStoreCookies' in tarteaucitron.user) {
  2620. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  2621. }
  2622. bingadsCreate.q = window[u];
  2623. window[u] = new UET(bingadsCreate);
  2624. window[u].push('pageLoad');
  2625. });
  2626. }
  2627. };
  2628. //Matterport
  2629. /*
  2630. SERVICE INIT
  2631. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  2632. HTML TAG
  2633. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  2634. DELETE IFRAME
  2635. <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>'
  2636. */
  2637. tarteaucitron.services.matterport = {
  2638. "key": "matterport",
  2639. "type": "other",
  2640. "name": "Matterport",
  2641. "uri": "https://matterport.com/es/legal/privacy-policy/",
  2642. "needConsent": true,
  2643. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  2644. "js": function () {
  2645. "use strict";
  2646. tarteaucitron.fallback(['matterport'], function (x) {
  2647. var matterport_id = x.getAttribute("matterportID"),
  2648. matterport_width = x.getAttribute("width"),
  2649. frame_width = 'width=',
  2650. matterport_height = x.getAttribute("height"),
  2651. frame_height = 'height=',
  2652. matterport_parameters = x.getAttribute("parameters"),
  2653. matterport_frame;
  2654. if (matterport_id === undefined) {
  2655. return "";
  2656. }
  2657. if (matterport_width !== undefined) {
  2658. frame_width += '"' + matterport_width + '" ';
  2659. } else {
  2660. frame_width += '"" ';
  2661. }
  2662. if (matterport_height !== undefined) {
  2663. frame_height += '"' + matterport_height + '" ';
  2664. } else {
  2665. frame_height += '"" ';
  2666. }
  2667. if (matterport_parameters === undefined) {
  2668. return "";
  2669. }
  2670. 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>';
  2671. return matterport_frame;
  2672. });
  2673. },
  2674. "fallback": function () {
  2675. "use strict";
  2676. var id = 'matterport';
  2677. tarteaucitron.fallback(['matterport'], function (elem) {
  2678. elem.style.width = elem.getAttribute('width') + 'px';
  2679. elem.style.height = elem.getAttribute('height') + 'px';
  2680. return tarteaucitron.engage(id);
  2681. });
  2682. }
  2683. };
  2684. // Adform
  2685. tarteaucitron.services.adform = {
  2686. "key": "adform",
  2687. "type": "ads",
  2688. "name": "Adform",
  2689. "uri": "https://site.adform.com/privacy-center/overview/",
  2690. "needConsent": true,
  2691. "cookies": [],
  2692. "js": function () {
  2693. "use strict";
  2694. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  2695. return;
  2696. }
  2697. window._adftrack = {
  2698. pm: tarteaucitron.user.adformpm,
  2699. divider: encodeURIComponent('|'),
  2700. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  2701. };
  2702. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  2703. }
  2704. };
  2705. // Active Campaign
  2706. tarteaucitron.services.activecampaign = {
  2707. "key": "activecampaign",
  2708. "type": "ads",
  2709. "name": "Active Campaign",
  2710. "uri": "https://www.activecampaign.com/privacy-policy/",
  2711. "needConsent": true,
  2712. "cookies": [],
  2713. "js": function () {
  2714. "use strict";
  2715. if (tarteaucitron.user.actid === undefined) {
  2716. return;
  2717. }
  2718. window.trackcmp_email = '';
  2719. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  2720. }
  2721. };
  2722. // tawk.to
  2723. tarteaucitron.services.tawkto = {
  2724. "key": "tawkto",
  2725. "type": "support",
  2726. "name": "Tawk.to chat",
  2727. "uri": "https://www.tawk.to/data-protection/",
  2728. "needConsent": true,
  2729. "cookies": [],
  2730. "js": function () {
  2731. "use strict";
  2732. if (tarteaucitron.user.tawktoId === undefined) {
  2733. return;
  2734. }
  2735. window.Tawk_API=window.Tawk_API||{};
  2736. window.Tawk_LoadStart=new Date();
  2737. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  2738. }
  2739. };
  2740. // getquanty
  2741. tarteaucitron.services.getquanty = {
  2742. "key": "getquanty",
  2743. "type": "analytic",
  2744. "name": "GetQuanty",
  2745. "uri": "https://www.getquanty.com/mentions-legales/",
  2746. "needConsent": true,
  2747. "cookies": [],
  2748. "js": function () {
  2749. "use strict";
  2750. if (tarteaucitron.user.getguanty === undefined) {
  2751. return;
  2752. }
  2753. window.webleads_site_ids = window.webleads_site_ids || [];
  2754. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  2755. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  2756. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  2757. }
  2758. };
  2759. // emolytics
  2760. tarteaucitron.services.emolytics = {
  2761. "key": "emolytics",
  2762. "type": "analytic",
  2763. "name": "Emolytics",
  2764. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  2765. "needConsent": true,
  2766. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  2767. "js": function () {
  2768. "use strict";
  2769. if (tarteaucitron.user.emolyticsID === undefined) {
  2770. return;
  2771. }
  2772. var scriptEmolytics = document.createElement('script');
  2773. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  2774. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  2775. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  2776. }
  2777. };
  2778. // youtubeapi
  2779. tarteaucitron.services.youtubeapi = {
  2780. "key": "youtubeapi",
  2781. "type": "video",
  2782. "name": "Youtube (Js API)",
  2783. "uri": "https://policies.google.com/privacy/",
  2784. "needConsent": true,
  2785. "cookies": [],
  2786. "js": function () {
  2787. "use strict";
  2788. tarteaucitron.addScript('https://www.youtube.com/player_api');
  2789. }
  2790. };
  2791. // Facil'ITI
  2792. tarteaucitron.services.faciliti = {
  2793. "key": "faciliti",
  2794. "type": "other",
  2795. "name": "Facil'ITI",
  2796. "uri": "https://ws.facil-iti.com/mentions-legales.html",
  2797. "needConsent": true,
  2798. "cookies": ['FACIL_ITI_LS'],
  2799. "js": function () {
  2800. "use strict";
  2801. if (tarteaucitron.user.facilitiID === undefined) {
  2802. return;
  2803. }
  2804. (function(w, d, s, f) {
  2805. w[f] = w[f] || {conf: function () { (w[f].data = w[f].data || []).push(arguments);}};
  2806. var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
  2807. l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
  2808. }(window, document, 'script', 'FACIL_ITI'));
  2809. FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
  2810. }
  2811. };
  2812. // userlike
  2813. tarteaucitron.services.userlike = {
  2814. "key": "userlike",
  2815. "type": "support",
  2816. "name": "Userlike",
  2817. "uri": "https://www.userlike.com/en/terms#privacy-policy",
  2818. "needConsent": true,
  2819. "cookies": ['uslk_s', 'uslk_e'],
  2820. "js": function () {
  2821. "use strict";
  2822. if (tarteaucitron.user.userlikeKey === undefined) {
  2823. return;
  2824. }
  2825. tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
  2826. }
  2827. };
  2828. // adobeanalytics
  2829. tarteaucitron.services.adobeanalytics = {
  2830. "key": "adobeanalytics",
  2831. "type": "analytic",
  2832. "name": "Adobe Analytics",
  2833. "uri": "https://www.adobe.com/privacy/policy.html",
  2834. "needConsent": true,
  2835. "cookies": ['s_ecid', 's_cc', 's_sq', 's_vi', 's_fid'],
  2836. "js": function () {
  2837. "use strict";
  2838. if (tarteaucitron.user.adobeanalyticskey === undefined) {
  2839. return;
  2840. }
  2841. tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js');
  2842. }
  2843. };