tarteaucitron.services.js 148 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098
  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 frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title")),
  15. width = x.getAttribute("width"),
  16. height = x.getAttribute("height"),
  17. url = x.getAttribute("data-url");
  18. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  19. });
  20. },
  21. "fallback": function () {
  22. "use strict";
  23. var id = 'iframe';
  24. tarteaucitron.fallback(['tac_iframe'], function (elem) {
  25. elem.style.width = elem.getAttribute('width') + 'px';
  26. elem.style.height = elem.getAttribute('height') + 'px';
  27. return tarteaucitron.engage(id);
  28. });
  29. }
  30. };
  31. // sharpspring
  32. tarteaucitron.services.sharpspring = {
  33. "key": "sharpspring",
  34. "type": "analytic",
  35. "name": "SharpSpring",
  36. "uri": "https://sharpspring.com/legal/sharpspring-cookie-policy/",
  37. "needConsent": true,
  38. "cookies": ['koitk', '__ss', '__ss_tk', '__ss_referrer'],
  39. "js": function () {
  40. "use strict";
  41. if (tarteaucitron.user.ssId === undefined || tarteaucitron.user.ssAccount === undefined) {
  42. return;
  43. }
  44. window._ss = window._ss || [];
  45. window._ss.push(['_setDomain', 'https://' + tarteaucitron.user.ssId + '.marketingautomation.services/net']);
  46. window._ss.push(['_setAccount', tarteaucitron.user.ssAccount]);
  47. window._ss.push(['_trackPageView']);
  48. window._pa = window._pa || {};
  49. tarteaucitron.addScript('https://' + tarteaucitron.user.ssId + '.marketingautomation.services/client/ss.js');
  50. }
  51. };
  52. // pardot
  53. tarteaucitron.services.pardot = {
  54. "key": "pardot",
  55. "type": "analytic",
  56. "name": "Pardot",
  57. "uri": "https://www.salesforce.com/company/privacy/full_privacy/",
  58. "needConsent": true,
  59. "cookies": ['visitor_id'],
  60. "js": function () {
  61. "use strict";
  62. if (tarteaucitron.user.piAId === undefined || tarteaucitron.user.piCId === undefined) {
  63. return;
  64. }
  65. window.piAId = tarteaucitron.user.piAId;
  66. window.piCId = tarteaucitron.user.piCId;
  67. window.piHostname = 'pi.pardot.com';
  68. tarteaucitron.addScript('https://pi.pardot.com/pd.js');
  69. }
  70. };
  71. // Open Web Analytics
  72. tarteaucitron.services.openwebanalytics = {
  73. "key": "openwebanalytics",
  74. "type": "analytic",
  75. "name": "Open Web Analytics",
  76. "uri": "",
  77. "needConsent": true,
  78. "cookies": [],
  79. "js": function () {
  80. "use strict";
  81. if (tarteaucitron.user.openwebanalyticsId === undefined || tarteaucitron.user.openwebanalyticsHost === undefined) {
  82. return;
  83. }
  84. window.owa_baseUrl = tarteaucitron.user.openwebanalyticsHost;
  85. window.owa_cmds = window.owa_cmds || [];
  86. window.owa_cmds.push(['setSiteId', tarteaucitron.user.openwebanalyticsId]);
  87. window.owa_cmds.push(['trackPageView']);
  88. window.owa_cmds.push(['trackClicks']);
  89. tarteaucitron.addScript(window.owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js');
  90. }
  91. };
  92. // xandr universal pixel
  93. // https://docs.xandr.com/bundle/invest_invest-standard/page/topics/universal-pixel-overview.html
  94. tarteaucitron.services.xandr = {
  95. "key": "xandr",
  96. "type": "ads",
  97. "name": "Xandr (Universal)",
  98. "uri": "https://www.xandr.com/privacy/cookie-policy/",
  99. "needConsent": true,
  100. "cookies": ['uuid2', 'uids', 'sess', 'icu', 'anj', 'usersync'],
  101. "js": function () {
  102. "use strict";
  103. if (tarteaucitron.user.xandrId === undefined) {
  104. return;
  105. }
  106. if (!window.pixie) {
  107. var n = window.pixie = function(e, i, a) {
  108. n.actionQueue.push({
  109. action: e,
  110. actionValue: i,
  111. params: a
  112. })
  113. };
  114. n.actionQueue = [];
  115. }
  116. tarteaucitron.addScript('https://acdn.adnxs.com/dmp/up/pixie.js', '', function() {
  117. window.pixie('init', tarteaucitron.user.xandrId);
  118. window.pixie('event', 'PageView');
  119. });
  120. }
  121. };
  122. // xandr segment
  123. // https://docs.xandr.com/bundle/invest_invest-standard/page/topics/segment-pixels-advanced.html
  124. tarteaucitron.services.xandrsegment = {
  125. "key": "xandrsegment",
  126. "type": "ads",
  127. "name": "Xandr (Segment)",
  128. "uri": "https://www.xandr.com/privacy/cookie-policy/",
  129. "needConsent": true,
  130. "cookies": ['uuid2', 'uids', 'sess', 'icu', 'anj', 'usersync'],
  131. "js": function () {
  132. "use strict";
  133. var uniqIds = [],
  134. i,
  135. uri;
  136. tarteaucitron.fallback(['xandrsegment-canvas'], function (x) {
  137. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  138. uniqIds.push(uniqId);
  139. return '<div id="' + uniqId + '" xandrsegmentAdd="' + (x.getAttribute('xandrsegmentAdd') ?? '') + '" xandrsegmentAddCode="' + (x.getAttribute('xandrsegmentAddCode') ?? '') + '" xandrsegmentRemove="' + (x.getAttribute('xandrsegmentRemove') ?? '') + '" xandrsegmentRemoveCode="' + (x.getAttribute('xandrsegmentRemoveCode') ?? '') + '" xandrsegmentMember="' + (x.getAttribute('xandrsegmentMember') ?? '') + '" xandrsegmentRedir="' + (x.getAttribute('xandrsegmentRedir') ?? '') + '" xandrsegmentValue="' + (x.getAttribute('xandrsegmentValue') ?? '') + '" xandrsegmentOther="' + (x.getAttribute('xandrsegmentOther') ?? '') + '"></div>';
  140. });
  141. for (i = 0; i < uniqIds.length; i += 1) {
  142. uri = '//ib.adnxs.com/seg?t=2&';
  143. uri += 'add=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentAdd') + '&';
  144. uri += 'add_code=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentAddCode') + '&';
  145. uri += 'remove=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentRemove') + '&';
  146. uri += 'remove_code=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentRemoveCode') + '&';
  147. uri += 'member=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentMember') + '&';
  148. uri += 'redir=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentRedir') + '&';
  149. uri += 'value=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentValue') + '&';
  150. uri += 'other=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentOther');
  151. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  152. }
  153. },
  154. "fallback": function () {
  155. "use strict";
  156. var id = 'xandrsegment';
  157. tarteaucitron.fallback(['xandrsegment-canvas'], tarteaucitron.engage(id));
  158. }
  159. };
  160. // xandr conversion
  161. // https://docs.xandr.com/bundle/invest_invest-standard/page/topics/working-with-conversion-pixels.html
  162. tarteaucitron.services.xandrconversion = {
  163. "key": "xandrconversion",
  164. "type": "ads",
  165. "name": "Xandr (Conversion)",
  166. "uri": "https://www.xandr.com/privacy/cookie-policy/",
  167. "needConsent": true,
  168. "cookies": ['uuid2', 'uids', 'sess', 'icu', 'anj', 'usersync'],
  169. "js": function () {
  170. "use strict";
  171. var uniqIds = [],
  172. i,
  173. uri;
  174. tarteaucitron.fallback(['xandrconversion-canvas'], function (x) {
  175. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  176. uniqIds.push(uniqId);
  177. return '<div id="' + uniqId + '" xandrconversionId="' + (x.getAttribute('xandrconversionId') ?? '') + '" xandrconversionSeg="' + (x.getAttribute('xandrconversionSeg') ?? '') + '" xandrconversionOrderId="' + (x.getAttribute('xandrconversionOrderId') ?? '') + '" xandrconversionValue="' + (x.getAttribute('xandrconversionValue') ?? '') + '" xandrconversionRedir="' + (x.getAttribute('xandrconversionRedir') ?? '') + '" xandrconversionOther="' + (x.getAttribute('xandrconversionOther') ?? '') + '"></div>';
  178. });
  179. for (i = 0; i < uniqIds.length; i += 1) {
  180. uri = '//ib.adnxs.com/px?t=2&';
  181. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionId') + '&';
  182. uri += 'seg=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionSeg') + '&';
  183. uri += 'order_id=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionOrderId') + '&';
  184. uri += 'value=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionValue') + '&';
  185. uri += 'redir=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionRedir') + '&';
  186. uri += 'other=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionOther');
  187. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  188. }
  189. },
  190. "fallback": function () {
  191. "use strict";
  192. var id = 'xandrconversion';
  193. tarteaucitron.fallback(['xandrconversion-canvas'], tarteaucitron.engage(id));
  194. }
  195. };
  196. // helloasso
  197. tarteaucitron.services.helloasso = {
  198. "key": "helloasso",
  199. "type": "api",
  200. "name": "HelloAsso",
  201. "uri": "https://www.helloasso.com/confidentialite",
  202. "needConsent": true,
  203. "cookies": [],
  204. "js": function () {
  205. "use strict";
  206. tarteaucitron.fallback(['tac_helloasso'], function (x) {
  207. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'HelloAsso iframe'),
  208. width = x.getAttribute("width"),
  209. height = x.getAttribute("height"),
  210. url = x.getAttribute("data-url");
  211. return '<iframe title="' + frame_title + '" id="haWidget" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency allowfullscreen></iframe>';
  212. });
  213. },
  214. "fallback": function () {
  215. "use strict";
  216. var id = 'helloasso';
  217. tarteaucitron.fallback(['tac_helloasso'], function (elem) {
  218. elem.style.width = elem.getAttribute('width') + 'px';
  219. elem.style.height = elem.getAttribute('height') + 'px';
  220. return tarteaucitron.engage(id);
  221. });
  222. }
  223. };
  224. // podcloud
  225. tarteaucitron.services.podcloud = {
  226. "key": "podcloud",
  227. "type": "video",
  228. "name": "podCloud",
  229. "uri": "https://podcloud.fr/privacy",
  230. "needConsent": true,
  231. "cookies": [],
  232. "js": function () {
  233. "use strict";
  234. tarteaucitron.fallback(['tac_podcloud'], function (x) {
  235. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'podCloud iframe'),
  236. width = x.getAttribute("width"),
  237. height = x.getAttribute("height"),
  238. url = x.getAttribute("data-url");
  239. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency allowfullscreen></iframe>';
  240. });
  241. },
  242. "fallback": function () {
  243. "use strict";
  244. var id = 'podcloud';
  245. tarteaucitron.fallback(['tac_podcloud'], function (elem) {
  246. elem.style.width = elem.getAttribute('width') + 'px';
  247. elem.style.height = elem.getAttribute('height') + 'px';
  248. return tarteaucitron.engage(id);
  249. });
  250. }
  251. };
  252. // facebookpost
  253. tarteaucitron.services.facebookpost = {
  254. "key": "facebookpost",
  255. "type": "social",
  256. "name": "Facebook (post)",
  257. "uri": "https://www.facebook.com/policy.php",
  258. "needConsent": true,
  259. "cookies": [],
  260. "js": function () {
  261. "use strict";
  262. tarteaucitron.fallback(['tac_facebookpost'], function (x) {
  263. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Facebook iframe'),
  264. width = x.getAttribute("width"),
  265. height = x.getAttribute("height"),
  266. url = x.getAttribute("data-url"),
  267. appId = x.getAttribute("data-appid");
  268. return '<iframe title="' + frame_title + '" src="https://www.facebook.com/plugins/post.php?href=' + encodeURIComponent(url) + '&amp;width=' + width + '&amp;show_text=false&amp;appId=' + appId + '&amp;height=' + height + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency allowfullscreen></iframe>';
  269. });
  270. },
  271. "fallback": function () {
  272. "use strict";
  273. var id = 'facebookpost';
  274. tarteaucitron.fallback(['tac_facebookpost'], function (elem) {
  275. elem.style.width = elem.getAttribute('width') + 'px';
  276. elem.style.height = elem.getAttribute('height') + 'px';
  277. return tarteaucitron.engage(id);
  278. });
  279. }
  280. };
  281. // amplitude
  282. tarteaucitron.services.amplitude = {
  283. "key": "amplitude",
  284. "type": "analytic",
  285. "name": "Amplitude",
  286. "uri": "https://amplitude.com/privacy",
  287. "needConsent": true,
  288. "cookies": [],
  289. "js": function () {
  290. "use strict";
  291. if (tarteaucitron.user.amplitude === undefined) {
  292. return;
  293. }
  294. tarteaucitron.addScript('https://cdn.amplitude.com/libs/amplitude-5.8.0-min.gz.js', '', function() {
  295. window.amplitude = {
  296. _q: [],
  297. _iq: {}
  298. };
  299. function s(e,t){e.prototype[t]=function(){this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));return this}}
  300. var o=function(){this._q=[];return this};
  301. var a=["add","append","clearAll","prepend","set","setOnce","unset"];
  302. for(var u=0;u<a.length;u++){s(o,a[u])}
  303. amplitude.Identify=o;
  304. var c=function(){this._q=[];return this};
  305. var l=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"];
  306. for(var p=0;p<l.length;p++){s(c,l[p])}
  307. amplitude.Revenue=c;
  308. var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"];
  309. 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])}}
  310. v(amplitude);
  311. 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]};
  312. amplitude.getInstance().init(tarteaucitron.user.amplitude);
  313. });
  314. }
  315. };
  316. // abtasty
  317. tarteaucitron.services.abtasty = {
  318. "key": "abtasty",
  319. "type": "api",
  320. "name": "ABTasty",
  321. "uri": "https://www.abtasty.com/terms-of-use/",
  322. "needConsent": true,
  323. "cookies": ['ABTasty', 'ABTastySession'],
  324. "js": function () {
  325. "use strict";
  326. if (tarteaucitron.user.abtastyID === undefined) {
  327. return;
  328. }
  329. tarteaucitron.addScript('//try.abtasty.com/'+tarteaucitron.user.abtastyID+'.js');
  330. }
  331. };
  332. // yandex metrica
  333. tarteaucitron.services.metrica = {
  334. "key": "metrica",
  335. "type": "analytic",
  336. "name": "Yandex Metrica",
  337. "uri": "https://yandex.com/legal/confidential/",
  338. "needConsent": true,
  339. "cookies": ['_ym_metrika_enabled','_ym_isad', '_ym_uid', '_ym_d','yabs-sid','_ym_debug','_ym_mp2_substs','_ym_hostIndex','_ym_mp2_track','yandexuid','usst'],
  340. "js": function () {
  341. "use strict";
  342. if (tarteaucitron.user.yandexmetrica === undefined) {
  343. return;
  344. }
  345. tarteaucitron.addScript('https://mc.yandex.ru/metrika/tag.js', '', function() {
  346. (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
  347. 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)})
  348. (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
  349. ym(tarteaucitron.user.yandexmetrica, "init", {
  350. clickmap:true,
  351. trackLinks:true,
  352. accurateTrackBounce:true,
  353. webvisor:true,
  354. ecommerce:"dataLayer"
  355. });
  356. });
  357. }
  358. };
  359. // addthis
  360. tarteaucitron.services.addthis = {
  361. "key": "addthis",
  362. "type": "social",
  363. "name": "AddThis",
  364. "uri": "https://www.addthis.com/privacy/privacy-policy#publisher-visitors",
  365. "needConsent": true,
  366. "cookies": ['__atuvc', '__atuvs'],
  367. "js": function () {
  368. "use strict";
  369. if (tarteaucitron.user.addthisPubId === undefined) {
  370. return;
  371. }
  372. if (tarteaucitron.isAjax === true) {
  373. window.addthis = null;
  374. window._adr = null;
  375. window._atc = null;
  376. window._atd = null;
  377. window._ate = null;
  378. window._atr = null;
  379. window._atw = null;
  380. }
  381. tarteaucitron.fallback(['addthis_inline_share_toolbox'], '');
  382. tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
  383. },
  384. "fallback": function () {
  385. "use strict";
  386. var id = 'addthis';
  387. tarteaucitron.fallback(['addthis_inline_share_toolbox'], tarteaucitron.engage(id));
  388. }
  389. };
  390. // addtoanyfeed
  391. tarteaucitron.services.addtoanyfeed = {
  392. "key": "addtoanyfeed",
  393. "type": "social",
  394. "name": "AddToAny (feed)",
  395. "uri": "https://www.addtoany.com/privacy",
  396. "needConsent": true,
  397. "cookies": [],
  398. "js": function () {
  399. "use strict";
  400. if (tarteaucitron.user.addtoanyfeedUri === undefined) {
  401. return;
  402. }
  403. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  404. window.a2a_config = window.a2a_config || {};
  405. window.a2a_config.linkurl = tarteaucitron.user.addtoanyfeedUri;
  406. tarteaucitron.addScript('//static.addtoany.com/menu/feed.js');
  407. },
  408. "fallback": function () {
  409. "use strict";
  410. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  411. }
  412. };
  413. // addtoanyshare
  414. tarteaucitron.services.addtoanyshare = {
  415. "key": "addtoanyshare",
  416. "type": "social",
  417. "name": "AddToAny (share)",
  418. "uri": "https://www.addtoany.com/privacy",
  419. "needConsent": true,
  420. "cookies": [],
  421. "js": function () {
  422. "use strict";
  423. tarteaucitron.fallback(['tac_addtoanyshare'], '');
  424. tarteaucitron.addScript('//static.addtoany.com/menu/page.js');
  425. },
  426. "fallback": function () {
  427. "use strict";
  428. var id = 'addtoanyshare';
  429. tarteaucitron.fallback(['tac_addtoanyshare'], tarteaucitron.engage(id));
  430. }
  431. };
  432. // aduptech ads
  433. tarteaucitron.services.aduptech_ads = {
  434. "key": "aduptech_ads",
  435. "type": "ads",
  436. "name": "Ad Up Technology (ads)",
  437. "uri": "https://www.adup-tech.com/datenschutz",
  438. "needConsent": true,
  439. "cookies": [],
  440. "js": function () {
  441. "use strict";
  442. var IDENTIFIER = "aduptech_ads",
  443. API_URL = "https://s.d.adup-tech.com/jsapi";
  444. var elements = document.getElementsByClassName(IDENTIFIER);
  445. if (!elements || elements.length === 0) {
  446. return;
  447. }
  448. tarteaucitron.fallback([IDENTIFIER], "");
  449. tarteaucitron.addScript(API_URL, "", function() {
  450. for (var i = 0; i < elements.length; i++) {
  451. var element = elements[i];
  452. if (!element.getAttribute("id")) {
  453. element.setAttribute("id", IDENTIFIER + Math.random().toString(36).substr(2, 9));
  454. }
  455. window.uAd.embed(element.getAttribute("id"), {
  456. placementKey: element.getAttribute("placementKey"),
  457. responsive: Boolean(element.getAttribute("responsive")),
  458. lazy: Boolean(element.getAttribute("lazy")),
  459. adtest: Boolean(element.getAttribute("test")),
  460. query: element.getAttribute("query") || "",
  461. minCpc: element.getAttribute("minCpc") || "",
  462. pageUrl: element.getAttribute("pageUrl") || "",
  463. skip: element.getAttribute("skip") || ""
  464. });
  465. }
  466. });
  467. },
  468. "fallback": function () {
  469. "use strict";
  470. tarteaucitron.fallback(["aduptech_ads"], tarteaucitron.engage("aduptech_ads"));
  471. }
  472. };
  473. // aduptech conversion
  474. tarteaucitron.services.aduptech_conversion = {
  475. "key": "aduptech_conversion",
  476. "type": "ads",
  477. "name": "Ad Up Technology (conversion)",
  478. "uri": "https://www.adup-tech.com/datenschutz",
  479. "needConsent": true,
  480. "cookies": [],
  481. "js": function () {
  482. "use strict";
  483. var IDENTIFIER = "aduptech_conversion",
  484. CONVERSION_PIXEL_BASE_URL = "https://d.adup-tech.com/campaign/conversion";
  485. var elements = document.getElementsByClassName(IDENTIFIER);
  486. if (!elements || elements.length === 0) {
  487. return;
  488. }
  489. tarteaucitron.fallback([IDENTIFIER], "");
  490. for (var i = 0; i < elements.length; i++) {
  491. var element = elements[i];
  492. if (!element.getAttribute("advertiserId") || !element.getAttribute("conversionCode")) {
  493. continue;
  494. }
  495. var url = CONVERSION_PIXEL_BASE_URL +
  496. "/" + encodeURIComponent(element.getAttribute("advertiserId")) +
  497. "?t=" + encodeURIComponent(element.getAttribute("conversionCode"));
  498. if (element.getAttribute("price")) {
  499. url += "&price=" + encodeURIComponent(element.getAttribute("price"));
  500. }
  501. if (element.getAttribute("quantity")) {
  502. url += "&quantity=" + encodeURIComponent(element.getAttribute("quantity"));
  503. }
  504. if (element.getAttribute("total")) {
  505. url += "&total=" + encodeURIComponent(element.getAttribute("total"));
  506. }
  507. if (element.getAttribute("orderId")) {
  508. url += "&order_id=" + encodeURIComponent(element.getAttribute("orderId"));
  509. }
  510. if (element.getAttribute("itemNumber")) {
  511. url += "&item_number=" + encodeURIComponent(element.getAttribute("itemNumber"));
  512. }
  513. if (element.getAttribute("description")) {
  514. url += "&description=" + encodeURIComponent(element.getAttribute("description"));
  515. }
  516. (new Image()).src = url;
  517. }
  518. }
  519. };
  520. // aduptech retargeting
  521. tarteaucitron.services.aduptech_retargeting = {
  522. "key": "aduptech_retargeting",
  523. "type": "ads",
  524. "name": "Ad Up Technology (retargeting)",
  525. "uri": "https://www.adup-tech.com/datenschutz",
  526. "needConsent": true,
  527. "cookies": [],
  528. "js": function () {
  529. "use strict";
  530. var IDENTIFIER = "aduptech_retargeting",
  531. API_URL = "https://s.d.adup-tech.com/services/retargeting.js";
  532. var elements = document.getElementsByClassName(IDENTIFIER);
  533. if (!elements || elements.length === 0) {
  534. return;
  535. }
  536. tarteaucitron.fallback([IDENTIFIER], "");
  537. window.AdUpRetargeting = function(api) {
  538. for (var i = 0; i < elements.length; i++) {
  539. var element = elements[i];
  540. api.init();
  541. api.setAccount(element.getAttribute("account"));
  542. if (element.getAttribute("email")) {
  543. api.setEmail(element.getAttribute("email"));
  544. } else if (element.getAttribute("hashedEmail")) {
  545. api.setHashedEmail(element.getAttribute("hashedEmail"));
  546. }
  547. if (element.getAttribute("product")) {
  548. try {
  549. api.setProduct(JSON.parse(element.getAttribute("product")));
  550. } catch (e) {
  551. api.setProduct(element.getAttribute("product"));
  552. }
  553. }
  554. if (element.getAttribute("transaction")) {
  555. try {
  556. api.setTransaction(JSON.parse(element.getAttribute("transaction")));
  557. } catch (e) {
  558. api.setTransaction(element.getAttribute("transaction"));
  559. }
  560. }
  561. if (element.getAttribute("demarkUser")) {
  562. api.setDemarkUser();
  563. } else if (element.getAttribute("demarkProducts")) {
  564. api.setDemarkProducts();
  565. }
  566. if (element.getAttribute("conversionCode")) {
  567. api.setConversionCode(element.getAttribute("conversionCode"));
  568. }
  569. if (element.getAttribute("device")) {
  570. var setter = "set" + element.getAttribute("device").charAt(0).toUpperCase() + element.getAttribute("device").slice(1);
  571. if (typeof api[setter] === 'function') {
  572. api[setter]();
  573. }
  574. }
  575. if (element.getAttribute("track")) {
  576. var tracker = "track" + element.getAttribute("track").charAt(0).toUpperCase() + element.getAttribute("track").slice(1);
  577. if (typeof api[tracker] === "function") {
  578. api[tracker]();
  579. } else {
  580. api.trackHomepage();
  581. }
  582. }
  583. };
  584. };
  585. tarteaucitron.addScript(API_URL);
  586. }
  587. };
  588. // alexa
  589. tarteaucitron.services.alexa = {
  590. "key": "alexa",
  591. "type": "analytic",
  592. "name": "Alexa",
  593. "uri": "https://www.alexa.com/help/privacy",
  594. "needConsent": true,
  595. "cookies": ['__asc', '__auc'],
  596. "js": function () {
  597. "use strict";
  598. if (tarteaucitron.user.alexaAccountID === undefined) {
  599. return;
  600. }
  601. window._atrk_opts = {
  602. atrk_acct: tarteaucitron.user.alexaAccountID,
  603. domain: window.location.hostname.match(/[^\.]*\.[^.]*$/)[0],
  604. dynamic: true
  605. };
  606. tarteaucitron.addScript('https://d31qbv1cthcecs.cloudfront.net/atrk.js');
  607. }
  608. };
  609. // amazon
  610. tarteaucitron.services.amazon = {
  611. "key": "amazon",
  612. "type": "ads",
  613. "name": "Amazon",
  614. "uri": "https://www.amazon.com/gp/help/customer/display.html/ref=help_search_1-1?ie=UTF8&nodeId=201909010&qid=1544617177&sr=1-1",
  615. "needConsent": true,
  616. "cookies": [],
  617. "js": function () {
  618. "use strict";
  619. tarteaucitron.fallback(['amazon_product'], function (x) {
  620. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Amazon iframe'),
  621. amazonId = x.getAttribute("amazonid"),
  622. productId = x.getAttribute("productid"),
  623. 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',
  624. iframe = '<iframe title="' + frame_title + '" style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" src="' + url + '"></iframe>';
  625. return iframe;
  626. });
  627. },
  628. "fallback": function () {
  629. "use strict";
  630. var id = 'amazon';
  631. tarteaucitron.fallback(['amazon_product'], tarteaucitron.engage(id));
  632. }
  633. };
  634. // calameo
  635. tarteaucitron.services.calameo = {
  636. "key": "calameo",
  637. "type": "video",
  638. "name": "Calameo",
  639. "uri": "https://fr.calameo.com/privacy",
  640. "needConsent": true,
  641. "cookies": [],
  642. "js": function () {
  643. "use strict";
  644. tarteaucitron.fallback(['calameo-canvas'], function (x) {
  645. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Calameo iframe'),
  646. id = x.getAttribute("data-id"),
  647. width = x.getAttribute("width"),
  648. height = x.getAttribute("height"),
  649. url = '//v.calameo.com/?bkcode=' + id;
  650. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  651. });
  652. },
  653. "fallback": function () {
  654. "use strict";
  655. var id = 'calameo';
  656. tarteaucitron.fallback(['calameo-canvas'], function (elem) {
  657. elem.style.width = elem.getAttribute('width') + 'px';
  658. elem.style.height = elem.getAttribute('height') + 'px';
  659. return tarteaucitron.engage(id);
  660. });
  661. }
  662. };
  663. // clicky
  664. tarteaucitron.services.clicky = {
  665. "key": "clicky",
  666. "type": "analytic",
  667. "name": "Clicky",
  668. "uri": "https://clicky.com/terms",
  669. "needConsent": true,
  670. "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],
  671. "js": function () {
  672. "use strict";
  673. if (tarteaucitron.user.clickyId === undefined) {
  674. return;
  675. }
  676. tarteaucitron.addScript('//static.getclicky.com/js', '', function () {
  677. if (typeof clicky.init === 'function') {
  678. clicky.init(tarteaucitron.user.clickyId);
  679. }
  680. if (typeof tarteaucitron.user.clickyMore === 'function') {
  681. tarteaucitron.user.clickyMore();
  682. }
  683. });
  684. }
  685. };
  686. // clicmanager
  687. tarteaucitron.services.clicmanager = {
  688. "key": "clicmanager",
  689. "type": "ads",
  690. "name": "Clicmanager",
  691. "uri": "http://www.clicmanager.fr/infos_legales.php",
  692. "needConsent": true,
  693. "cookies": [],
  694. "js": function () {
  695. "use strict";
  696. var uniqIds = [],
  697. i,
  698. uri;
  699. tarteaucitron.fallback(['clicmanager-canvas'], function (x) {
  700. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  701. uniqIds.push(uniqId);
  702. return '<div id="' + uniqId + '" c="' + x.getAttribute('c') + '" s="' + x.getAttribute('s') + '" t="' + x.getAttribute('t') + '"></div>';
  703. });
  704. for (i = 0; i < uniqIds.length; i += 1) {
  705. uri = '//ads.clicmanager.fr/exe.php?';
  706. uri += 'c=' + document.getElementById(uniqIds[i]).getAttribute('c') + '&';
  707. uri += 's=' + document.getElementById(uniqIds[i]).getAttribute('s') + '&';
  708. uri += 't=' + document.getElementById(uniqIds[i]).getAttribute('t');
  709. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  710. }
  711. },
  712. "fallback": function () {
  713. "use strict";
  714. var id = 'clicmanager';
  715. tarteaucitron.fallback(['clicmanager-canvas'], tarteaucitron.engage(id));
  716. }
  717. };
  718. // compteur
  719. tarteaucitron.services.compteur = {
  720. "key": "compteur",
  721. "type": "analytic",
  722. "name": "Compteur.fr",
  723. "uri": "https://www.compteur.fr/help_privacy_policy.htm",
  724. "needConsent": true,
  725. "cookies": [],
  726. "js": function () {
  727. "use strict";
  728. if (tarteaucitron.user.compteurID === undefined) {
  729. return;
  730. }
  731. tarteaucitron.addScript('https://server2.compteur.fr/log7.js', '', function() {wtslog7(tarteaucitron.user.compteurID,1);});
  732. }
  733. };
  734. // contentsquare
  735. tarteaucitron.services.contentsquare = {
  736. "key": "contentsquare",
  737. "type": "api",
  738. "name": "ContentSquare",
  739. "uri": "https://docs.contentsquare.com/uxa-en/#collected-data",
  740. "needConsent": true,
  741. "cookies": ['_cs_id', '_cs_s', '_cs_vars', '_cs_ex', '_cs_c', '_cs_optout'],
  742. "js": function () {
  743. "use strict";
  744. if (tarteaucitron.user.contentsquareID === undefined) {
  745. return;
  746. }
  747. tarteaucitron.addScript('//t.contentsquare.net/uxa/'+tarteaucitron.user.contentsquareID+'.js');
  748. }
  749. };
  750. // crazyegg
  751. tarteaucitron.services.crazyegg = {
  752. "key": "crazyegg",
  753. "type": "analytic",
  754. "name": "Crazy Egg",
  755. "uri": "https://www.crazyegg.com/privacy",
  756. "needConsent": true,
  757. "cookies": [],
  758. "js": function () {
  759. "use strict";
  760. if (tarteaucitron.user.crazyeggId === undefined) {
  761. return;
  762. }
  763. tarteaucitron.addScript('//script.crazyegg.com/pages/scripts/' + tarteaucitron.user.crazyeggId.substr(0, 4) + '/' + tarteaucitron.user.crazyeggId.substr(4, 4) + '.js');
  764. }
  765. };
  766. // clarity
  767. tarteaucitron.services.clarity = {
  768. "key": "clarity",
  769. "type": "analytic",
  770. "name": "Clarity",
  771. "uri": "https://clarity.microsoft.com/",
  772. "needConsent": true,
  773. "cookies": [],
  774. "js": function () {
  775. "use strict";
  776. window["clarity"]= window["clarity"]||function(){(window["clarity"].q= window["clarity"].q||[]).push(arguments)};
  777. tarteaucitron.addScript('https://www.clarity.ms/tag/' + tarteaucitron.user.clarity);
  778. }
  779. };
  780. // criteo
  781. tarteaucitron.services.criteo = {
  782. "key": "criteo",
  783. "type": "ads",
  784. "name": "Criteo",
  785. "uri": "http://www.criteo.com/privacy/",
  786. "needConsent": true,
  787. "cookies": [],
  788. "js": function () {
  789. "use strict";
  790. document.MAX_ct0 = '';
  791. var uniqIds = [],
  792. i,
  793. uri;
  794. tarteaucitron.fallback(['criteo-canvas'], function (x) {
  795. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  796. uniqIds.push(uniqId);
  797. return '<div id="' + uniqId + '" zoneid="' + x.getAttribute('zoneid') + '"></div>';
  798. });
  799. for (i = 0; i < uniqIds.length; i += 1) {
  800. uri = '//cas.criteo.com/delivery/ajs.php?';
  801. uri += 'zoneid=' + document.getElementById(uniqIds[i]).getAttribute('zoneid');
  802. uri += '&nodis=1&cb=' + Math.floor(Math.random() * 99999999999);
  803. uri += '&loc=' + encodeURI(window.location);
  804. uri += (document.MAX_used !== ',') ? '&exclude=' + document.MAX_used : '';
  805. uri += (document.charset !== undefined ? '&charset=' + document.charset : '');
  806. uri += (document.characterSet !== undefined ? '&charset=' + document.characterSet : '');
  807. uri += (document.referrer !== undefined) ? '&referer=' + encodeURI(document.referrer) : '';
  808. uri += (document.context !== undefined) ? '&context=' + encodeURI(document.context) : '';
  809. uri += ((document.MAX_ct0 !== undefined) && (document.MAX_ct0.substring(0, 4) === 'http')) ? '&ct0=' + encodeURI(document.MAX_ct0) : '';
  810. uri += (document.mmm_fo !== undefined) ? '&mmm_fo=1' : '';
  811. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  812. }
  813. },
  814. "fallback": function () {
  815. "use strict";
  816. var id = 'criteo';
  817. tarteaucitron.fallback(['criteo-canvas'], tarteaucitron.engage(id));
  818. }
  819. };
  820. // artetv
  821. tarteaucitron.services.artetv = {
  822. "key": "artetv",
  823. "type": "video",
  824. "name": "Arte.tv",
  825. "uri": "https://www.arte.tv/sites/fr/corporate/donnees-personnelles/",
  826. "needConsent": true,
  827. "cookies": [],
  828. "js": function () {
  829. "use strict";
  830. tarteaucitron.fallback(['artetv_player'], function (x) {
  831. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Arte.tv iframe'),
  832. video_json = x.getAttribute("json"),
  833. video_width = x.getAttribute("width"),
  834. video_height = x.getAttribute("height"),
  835. video_frame;
  836. if (video_json === undefined) {
  837. return "";
  838. }
  839. video_frame = '<iframe title="' + frame_title + '" style="transition-duration: 0; transition-property: no; margin: 0 auto; position: relative; display: block; background-color: #000000;" src="https://www.arte.tv/player/v5/index.php?json_url=' + video_json + '" width="' + video_width + '" height="' + video_height + '" scrolling="no" allowfullscreen="allowfullscreen"></iframe>';
  840. return video_frame;
  841. });
  842. },
  843. "fallback": function () {
  844. "use strict";
  845. var id = 'artetv';
  846. tarteaucitron.fallback(['artetv_player'], function (elem) {
  847. elem.style.width = elem.getAttribute('width') + 'px';
  848. elem.style.height = elem.getAttribute('height') + 'px';
  849. return tarteaucitron.engage(id);
  850. });
  851. }
  852. };
  853. // dailymotion
  854. tarteaucitron.services.dailymotion = {
  855. "key": "dailymotion",
  856. "type": "video",
  857. "name": "Dailymotion",
  858. "uri": "https://www.dailymotion.com/legal/privacy",
  859. "needConsent": true,
  860. "cookies": ['ts', 'dmvk', 'hist', 'v1st', 's_vi'],
  861. "js": function () {
  862. "use strict";
  863. tarteaucitron.fallback(['dailymotion_player'], function (x) {
  864. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Dailymotion iframe'),
  865. video_id = x.getAttribute("videoID"),
  866. video_width = x.getAttribute("width"),
  867. frame_width = 'width=',
  868. video_height = x.getAttribute("height"),
  869. frame_height = 'height=',
  870. video_frame,
  871. embed_type = x.getAttribute("embedType"),
  872. params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay");
  873. if (video_id === undefined) {
  874. return "";
  875. }
  876. if (video_width !== undefined) {
  877. frame_width += '"' + video_width + '" ';
  878. } else {
  879. frame_width += '"" ';
  880. }
  881. if (video_height !== undefined) {
  882. frame_height += '"' + video_height + '" ';
  883. } else {
  884. frame_height += '"" ';
  885. }
  886. if (embed_type === undefined || !['video', 'playlist'].includes(embed_type) ) {
  887. embed_type = "video";
  888. }
  889. video_frame = '<iframe title="' + frame_title + '" src="//www.dailymotion.com/embed/' + embed_type + '/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
  890. return video_frame;
  891. });
  892. },
  893. "fallback": function () {
  894. "use strict";
  895. var id = 'dailymotion';
  896. tarteaucitron.fallback(['dailymotion_player'], function (elem) {
  897. elem.style.width = elem.getAttribute('width') + 'px';
  898. elem.style.height = elem.getAttribute('height') + 'px';
  899. return tarteaucitron.engage(id);
  900. });
  901. }
  902. };
  903. // dating affiliation
  904. tarteaucitron.services.datingaffiliation = {
  905. "key": "datingaffiliation",
  906. "type": "ads",
  907. "name": "Dating Affiliation",
  908. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  909. "needConsent": true,
  910. "cookies": [],
  911. "js": function () {
  912. "use strict";
  913. tarteaucitron.fallback(['datingaffiliation-canvas'], function (x) {
  914. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Dating Affiliation iframe'),
  915. comfrom = x.getAttribute("data-comfrom"),
  916. r = x.getAttribute("data-r"),
  917. p = x.getAttribute("data-p"),
  918. cf0 = x.getAttribute("data-cf0"),
  919. langue = x.getAttribute("data-langue"),
  920. forward_affiliate = x.getAttribute("data-forwardAffiliate"),
  921. cf2 = x.getAttribute("data-cf2"),
  922. cfsa2 = x.getAttribute("data-cfsa2"),
  923. width = x.getAttribute("width"),
  924. height = x.getAttribute("height"),
  925. url = 'http://www.tools-affil2.com/rotaban/ban.php?' + comfrom;
  926. return '<iframe title="' + frame_title + '" src="' + url + '&r=' + r + '&p=' + p + '&cf0=' + cf0 + '&langue=' + langue + '&forward_affiliate=' + forward_affiliate + '&cf2=' + cf2 + '&cfsa2=' + cfsa2 + '" width="' + width + '" height="' + height + '" marginheight="0" marginwidth="0" scrolling="no"></iframe>';
  927. });
  928. },
  929. "fallback": function () {
  930. "use strict";
  931. var id = 'datingaffiliation';
  932. tarteaucitron.fallback(['datingaffiliation-canvas'], function (elem) {
  933. elem.style.width = elem.getAttribute('width') + 'px';
  934. elem.style.height = elem.getAttribute('height') + 'px';
  935. return tarteaucitron.engage(id);
  936. });
  937. }
  938. };
  939. // dating affiliation popup
  940. tarteaucitron.services.datingaffiliationpopup = {
  941. "key": "datingaffiliationpopup",
  942. "type": "ads",
  943. "name": "Dating Affiliation (Pop Up)",
  944. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  945. "needConsent": true,
  946. "cookies": ['__utma', '__utmb', '__utmc', '__utmt_Tools', '__utmv', '__utmz', '_ga', '_gat', '_gat_UA-65072040-17', '__da-pu-xflirt-ID-pc-o169'],
  947. "js": function () {
  948. "use strict";
  949. var uniqIds = [],
  950. i,
  951. uri;
  952. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], function (x) {
  953. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  954. uniqIds.push(uniqId);
  955. 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>';
  956. });
  957. for (i = 0; i < uniqIds.length; i += 1) {
  958. uri = 'http://www.promotools.biz/da/popunder/script.php?';
  959. uri += 'comfrom=' + document.getElementById(uniqIds[i]).getAttribute('comfrom') + '&';
  960. uri += 'promo=' + document.getElementById(uniqIds[i]).getAttribute('promo') + '&';
  961. uri += 'product_id=' + document.getElementById(uniqIds[i]).getAttribute('productid') + '&';
  962. uri += 'submitconfig=' + document.getElementById(uniqIds[i]).getAttribute('submitconfig') + '&';
  963. uri += 'ur=' + document.getElementById(uniqIds[i]).getAttribute('ur') + '&';
  964. uri += 'brand=' + document.getElementById(uniqIds[i]).getAttribute('brand') + '&';
  965. uri += 'lang=' + document.getElementById(uniqIds[i]).getAttribute('lang') + '&';
  966. uri += 'cf0=' + document.getElementById(uniqIds[i]).getAttribute('cf0') + '&';
  967. uri += 'cf2=' + document.getElementById(uniqIds[i]).getAttribute('cf2') + '&';
  968. uri += 'subid1=' + document.getElementById(uniqIds[i]).getAttribute('subid1') + '&';
  969. uri += 'cfsa2=' + document.getElementById(uniqIds[i]).getAttribute('cfsa2') + '&';
  970. uri += 'subid2=' + document.getElementById(uniqIds[i]).getAttribute('subid2') + '&';
  971. uri += 'nicheId=' + document.getElementById(uniqIds[i]).getAttribute('nicheid') + '&';
  972. uri += 'degreId=' + document.getElementById(uniqIds[i]).getAttribute('degreid') + '&';
  973. uri += 'bt=' + document.getElementById(uniqIds[i]).getAttribute('bt') + '&';
  974. uri += 'vis=' + document.getElementById(uniqIds[i]).getAttribute('vis') + '&';
  975. uri += 'hid=' + document.getElementById(uniqIds[i]).getAttribute('hid') + '&';
  976. uri += 'snd=' + document.getElementById(uniqIds[i]).getAttribute('snd') + '&';
  977. uri += 'aabd=' + document.getElementById(uniqIds[i]).getAttribute('aabd') + '&';
  978. uri += 'aabs=' + document.getElementById(uniqIds[i]).getAttribute('aabs');
  979. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  980. }
  981. },
  982. "fallback": function () {
  983. "use strict";
  984. var id = 'datingaffiliationpopup';
  985. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], tarteaucitron.engage(id));
  986. }
  987. };
  988. // deezer
  989. tarteaucitron.services.deezer = {
  990. "key": "deezer",
  991. "type": "video",
  992. "name": "Deezer",
  993. "uri": "https://www.deezer.com/legal/personal-datas",
  994. "needConsent": true,
  995. "cookies": [],
  996. "js": function () {
  997. "use strict";
  998. tarteaucitron.fallback(['deezer_player'], function (x) {
  999. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Deezer iframe'),
  1000. deezer_id = x.getAttribute("deezerID"),
  1001. deezer_width = x.getAttribute("width"),
  1002. frame_width = 'width=',
  1003. deezer_height = x.getAttribute("height"),
  1004. frame_height = 'height=',
  1005. deezer_frame,
  1006. embed_theme = x.getAttribute("theme"),
  1007. embed_type = x.getAttribute("embedType"),
  1008. radius = x.getAttribute("radius"),
  1009. tracklist = x.getAttribute("tracklist"),
  1010. params;
  1011. if (deezer_id === undefined) {
  1012. return "";
  1013. }
  1014. if (deezer_width !== undefined) {
  1015. frame_width += '"' + deezer_width + '" ';
  1016. } else {
  1017. frame_width += '"" ';
  1018. }
  1019. if (deezer_height !== undefined) {
  1020. frame_height += '"' + deezer_height + '" ';
  1021. } else {
  1022. frame_height += '"" ';
  1023. }
  1024. if (embed_theme === undefined || !['auto', 'light', 'dark'].includes(embed_theme) ) {
  1025. embed_theme = "auto";
  1026. }
  1027. if (embed_type === undefined || !['album', 'track', 'playlist'].includes(embed_type) ) {
  1028. embed_type = "album";
  1029. }
  1030. if (radius === undefined || !['true', 'false'].includes(radius) ) {
  1031. radius = "true";
  1032. }
  1033. if (tracklist === undefined || !['true', 'false'].includes(tracklist) ) {
  1034. tracklist = "true";
  1035. }
  1036. params = 'tracklist=' + tracklist + '&radius=' + radius;
  1037. deezer_frame = '<iframe title="' + frame_title + '" src="//widget.deezer.com/widget/' + embed_theme + '/' + embed_type + '/' + deezer_id + '?' + params + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
  1038. return deezer_frame;
  1039. });
  1040. },
  1041. "fallback": function () {
  1042. "use strict";
  1043. var id = 'deezer';
  1044. tarteaucitron.fallback(['deezer_player'], function (elem) {
  1045. elem.style.width = elem.getAttribute('width') + 'px';
  1046. elem.style.height = elem.getAttribute('height') + 'px';
  1047. return tarteaucitron.engage(id);
  1048. });
  1049. }
  1050. };
  1051. // leadforensics
  1052. tarteaucitron.services.leadforensics = {
  1053. "key": "leadforensics",
  1054. "type": "analytic",
  1055. "name": "LeadForensics",
  1056. "uri": "https://www.leadforensics.com/privacy-policy/",
  1057. "needConsent": true,
  1058. "cookies": ['trackalyzer'],
  1059. "js": function () {
  1060. "use strict";
  1061. if (tarteaucitron.user.leadforensicsSf14gv === undefined ||
  1062. tarteaucitron.user.leadforensicsIidentifier === undefined) {
  1063. return;
  1064. }
  1065. window.sf14gv = tarteaucitron.user.leadforensicsSf14gv;
  1066. (function() {
  1067. var sf14g = document.createElement('script'); sf14g.async = true;
  1068. sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js';
  1069. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s);
  1070. })();
  1071. tarteaucitron.addScript('//secure.leadforensics.com/js/' + tarteaucitron.user.leadforensicsIidentifier + '.js');
  1072. }
  1073. };
  1074. // disqus
  1075. tarteaucitron.services.disqus = {
  1076. "key": "disqus",
  1077. "type": "comment",
  1078. "name": "Disqus",
  1079. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  1080. "needConsent": true,
  1081. "cookies": [],
  1082. "js": function () {
  1083. "use strict";
  1084. if (tarteaucitron.user.disqusShortname === undefined) {
  1085. return;
  1086. }
  1087. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  1088. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  1089. },
  1090. "fallback": function () {
  1091. "use strict";
  1092. var id = 'disqus';
  1093. if (document.getElementById('disqus_thread')) {
  1094. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  1095. }
  1096. }
  1097. };
  1098. // ekomi
  1099. tarteaucitron.services.ekomi = {
  1100. "key": "ekomi",
  1101. "type": "social",
  1102. "name": "eKomi",
  1103. "uri": "http://www.ekomi-us.com/us/privacy/",
  1104. "needConsent": true,
  1105. "cookies": [],
  1106. "js": function () {
  1107. "use strict";
  1108. if (tarteaucitron.user.ekomiCertId === undefined) {
  1109. return;
  1110. }
  1111. window.eKomiIntegrationConfig = [
  1112. {certId: tarteaucitron.user.ekomiCertId}
  1113. ];
  1114. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  1115. }
  1116. };
  1117. // etracker
  1118. tarteaucitron.services.etracker = {
  1119. "key": "etracker",
  1120. "type": "analytic",
  1121. "name": "eTracker",
  1122. "uri": "https://www.etracker.com/en/data-protection.html",
  1123. "needConsent": true,
  1124. "cookies": [],
  1125. "js": function () {
  1126. "use strict";
  1127. if (tarteaucitron.user.etracker === undefined) {
  1128. return;
  1129. }
  1130. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  1131. }
  1132. };
  1133. // facebook
  1134. tarteaucitron.services.facebook = {
  1135. "key": "facebook",
  1136. "type": "social",
  1137. "name": "Facebook",
  1138. "uri": "https://www.facebook.com/policy.php",
  1139. "needConsent": true,
  1140. "cookies": [],
  1141. "js": function () {
  1142. "use strict";
  1143. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], '');
  1144. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  1145. if (tarteaucitron.isAjax === true) {
  1146. if (typeof FB !== "undefined") {
  1147. FB.XFBML.parse();
  1148. }
  1149. }
  1150. },
  1151. "fallback": function () {
  1152. "use strict";
  1153. var id = 'facebook';
  1154. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id));
  1155. }
  1156. };
  1157. // facebooklikebox
  1158. tarteaucitron.services.facebooklikebox = {
  1159. "key": "facebooklikebox",
  1160. "type": "social",
  1161. "name": "Facebook (like box)",
  1162. "uri": "https://www.facebook.com/policy.php",
  1163. "needConsent": true,
  1164. "cookies": [],
  1165. "js": function () {
  1166. "use strict";
  1167. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  1168. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  1169. if (tarteaucitron.isAjax === true) {
  1170. if (typeof FB !== "undefined") {
  1171. FB.XFBML.parse();
  1172. }
  1173. }
  1174. },
  1175. "fallback": function () {
  1176. "use strict";
  1177. var id = 'facebooklikebox';
  1178. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  1179. }
  1180. };
  1181. // facebookcomment
  1182. tarteaucitron.services.facebookcomment = {
  1183. "key": "facebookcomment",
  1184. "type": "comment",
  1185. "name": "Facebook (commentaire)",
  1186. "uri": "https://www.facebook.com/policy.php",
  1187. "needConsent": true,
  1188. "cookies": [],
  1189. "js": function () {
  1190. "use strict";
  1191. tarteaucitron.fallback(['fb-comments'], '');
  1192. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  1193. if (tarteaucitron.isAjax === true) {
  1194. if (typeof FB !== "undefined") {
  1195. FB.XFBML.parse();
  1196. }
  1197. }
  1198. },
  1199. "fallback": function () {
  1200. "use strict";
  1201. var id = 'facebookcomment';
  1202. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  1203. }
  1204. };
  1205. // ferank
  1206. tarteaucitron.services.ferank = {
  1207. "key": "ferank",
  1208. "type": "analytic",
  1209. "name": "FERank",
  1210. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  1211. "needConsent": false,
  1212. "cookies": [],
  1213. "js": function () {
  1214. "use strict";
  1215. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  1216. if (typeof tarteaucitron.user.ferankMore === 'function') {
  1217. tarteaucitron.user.ferankMore();
  1218. }
  1219. });
  1220. }
  1221. };
  1222. // pingdom
  1223. tarteaucitron.services.pingdom = {
  1224. "key": "pingdom",
  1225. "type": "api",
  1226. "name": "Pingdom",
  1227. "uri": "https://www.solarwinds.com/general-data-protection-regulation-cloud",
  1228. "needConsent": true,
  1229. "cookies": [],
  1230. "js": function () {
  1231. "use strict";
  1232. if (tarteaucitron.user.pingdomId === undefined) {
  1233. return;
  1234. }
  1235. window._prum = [['id', tarteaucitron.user.pingdomId], ['mark', 'firstbyte', (new Date()).getTime()]];
  1236. tarteaucitron.addScript('https://rum-static.pingdom.net/prum.min.js');
  1237. }
  1238. };
  1239. // simpleanalytics
  1240. tarteaucitron.services.simpleanalytics = {
  1241. "key": "simpleanalytics",
  1242. "type": "analytic",
  1243. "name": "Simple Analytics",
  1244. "uri": "https://docs.simpleanalytics.com/what-we-collect",
  1245. "needConsent": false,
  1246. "cookies": [],
  1247. "js": function () {
  1248. "use strict";
  1249. tarteaucitron.addScript('https://scripts.simpleanalyticscdn.com/latest.js');
  1250. }
  1251. };
  1252. // stonly
  1253. tarteaucitron.services.stonly = {
  1254. "key": "stonly",
  1255. "type": "api",
  1256. "name": "Stonly",
  1257. "uri": "https://stonly.com/privacy",
  1258. "needConsent": true,
  1259. "cookies": [],
  1260. "js": function () {
  1261. "use strict";
  1262. if (tarteaucitron.user.stonlyId === undefined) {
  1263. return;
  1264. }
  1265. window.STONLY_WID = tarteaucitron.user.stonlyId;
  1266. window.StonlyWidget || ((window.w = window.StonlyWidget = function() {
  1267. window.w._api ? window.w._api.apply(window.w, arguments) : window.w.queue.push(arguments)
  1268. }).queue = []);
  1269. tarteaucitron.addScript('https://stonly.com/js/widget/v2/stonly-widget.js?v=' + Date.now());
  1270. }
  1271. };
  1272. // stripe
  1273. /*tarteaucitron.services.stripe = {
  1274. "key": "stripe",
  1275. "type": "api",
  1276. "name": "Stripe",
  1277. "uri": "https://stripe.com/cookies-policy/legal",
  1278. "needConsent": true,
  1279. "cookies": [],
  1280. "js": function () {
  1281. "use strict";
  1282. tarteaucitron.addScript('https://js.stripe.com/v3/');
  1283. }
  1284. };*/
  1285. // ferank pub
  1286. tarteaucitron.services.ferankpub = {
  1287. "key": "ferankpub",
  1288. "type": "ads",
  1289. "name": "FERank (pub)",
  1290. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  1291. "needConsent": false,
  1292. "cookies": [],
  1293. "js": function () {
  1294. "use strict";
  1295. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  1296. if (tarteaucitron.isAjax === true) {
  1297. if (typeof ferankReady === 'function') {
  1298. ferankReady();
  1299. }
  1300. }
  1301. },
  1302. "fallback": function () {
  1303. "use strict";
  1304. var id = 'ferankpub';
  1305. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  1306. }
  1307. };
  1308. // get+
  1309. tarteaucitron.services.getplus = {
  1310. "key": "getplus",
  1311. "type": "analytic",
  1312. "name": "Get+",
  1313. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  1314. "needConsent": true,
  1315. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  1316. "js": function () {
  1317. "use strict";
  1318. if (tarteaucitron.user.getplusId === undefined) {
  1319. return;
  1320. }
  1321. window.webleads_site_ids = window.webleads_site_ids || [];
  1322. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  1323. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  1324. }
  1325. };
  1326. // google+
  1327. tarteaucitron.services.gplus = {
  1328. "key": "gplus",
  1329. "type": "social",
  1330. "name": "Google+",
  1331. "uri": "https://policies.google.com/privacy",
  1332. "needConsent": true,
  1333. "cookies": [],
  1334. "js": function () {
  1335. "use strict";
  1336. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1337. },
  1338. "fallback": function () {
  1339. "use strict";
  1340. var id = 'gplus';
  1341. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  1342. }
  1343. };
  1344. // google+ badge
  1345. tarteaucitron.services.gplusbadge = {
  1346. "key": "gplusbadge",
  1347. "type": "social",
  1348. "name": "Google+ (badge)",
  1349. "uri": "https://policies.google.com/privacy",
  1350. "needConsent": true,
  1351. "cookies": [],
  1352. "js": function () {
  1353. "use strict";
  1354. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1355. },
  1356. "fallback": function () {
  1357. "use strict";
  1358. var id = 'gplusbadge';
  1359. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  1360. }
  1361. };
  1362. // google adsense
  1363. tarteaucitron.services.adsense = {
  1364. "key": "adsense",
  1365. "type": "ads",
  1366. "name": "Google Adsense",
  1367. "uri": "https://adssettings.google.com/",
  1368. "needConsent": true,
  1369. "cookies": [],
  1370. "js": function () {
  1371. "use strict";
  1372. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  1373. },
  1374. "fallback": function () {
  1375. "use strict";
  1376. var id = 'adsense';
  1377. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  1378. }
  1379. };
  1380. // google partners badge
  1381. tarteaucitron.services.googlepartners = {
  1382. "key": "googlepartners",
  1383. "type": "ads",
  1384. "name": "Google Partners Badge",
  1385. "uri": "https://adssettings.google.com/",
  1386. "needConsent": true,
  1387. "cookies": [],
  1388. "js": function () {
  1389. "use strict";
  1390. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1391. },
  1392. "fallback": function () {
  1393. "use strict";
  1394. var id = 'googlepartners';
  1395. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  1396. }
  1397. };
  1398. // google adsense search (form)
  1399. tarteaucitron.services.adsensesearchform = {
  1400. "key": "adsensesearchform",
  1401. "type": "ads",
  1402. "name": "Google Adsense Search (form)",
  1403. "uri": "https://adssettings.google.com/",
  1404. "needConsent": true,
  1405. "cookies": [],
  1406. "js": function () {
  1407. "use strict";
  1408. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  1409. }
  1410. };
  1411. // google adsense search (result)
  1412. tarteaucitron.services.adsensesearchresult = {
  1413. "key": "adsensesearchresult",
  1414. "type": "ads",
  1415. "name": "Google Adsense Search (result)",
  1416. "uri": "https://adssettings.google.com/",
  1417. "needConsent": true,
  1418. "cookies": [],
  1419. "js": function () {
  1420. "use strict";
  1421. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  1422. return;
  1423. }
  1424. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  1425. },
  1426. "fallback": function () {
  1427. "use strict";
  1428. var id = 'adsensesearchresult';
  1429. if (document.getElementById('gcse_searchresults')) {
  1430. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  1431. }
  1432. }
  1433. };
  1434. // googleadwordsconversion
  1435. tarteaucitron.services.googleadwordsconversion = {
  1436. "key": "googleadwordsconversion",
  1437. "type": "ads",
  1438. "name": "Google Adwords (conversion)",
  1439. "uri": "https://www.google.com/settings/ads",
  1440. "needConsent": true,
  1441. "cookies": [],
  1442. "js": function () {
  1443. "use strict";
  1444. if (tarteaucitron.user.adwordsconversionId === undefined) {
  1445. return;
  1446. }
  1447. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1448. window.google_trackConversion({
  1449. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  1450. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  1451. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  1452. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  1453. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  1454. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  1455. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  1456. google_custom_params: {
  1457. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  1458. parameter2: tarteaucitron.user.adwordsconversionCustom2
  1459. }
  1460. });
  1461. });
  1462. }
  1463. };
  1464. // googleadwordsremarketing
  1465. tarteaucitron.services.googleadwordsremarketing = {
  1466. "key": "googleadwordsremarketing",
  1467. "type": "ads",
  1468. "name": "Google Adwords (remarketing)",
  1469. "uri": "https://www.google.com/settings/ads",
  1470. "needConsent": true,
  1471. "cookies": [],
  1472. "js": function () {
  1473. "use strict";
  1474. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  1475. return;
  1476. }
  1477. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1478. window.google_trackConversion({
  1479. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  1480. google_remarketing_only: true
  1481. });
  1482. });
  1483. }
  1484. };
  1485. // google analytics (old)
  1486. tarteaucitron.services.gajs = {
  1487. "key": "gajs",
  1488. "type": "analytic",
  1489. "name": "Google Analytics (ga.js)",
  1490. "uri": "https://policies.google.com/privacy",
  1491. "needConsent": true,
  1492. "cookies": (function () {
  1493. var googleIdentifier = tarteaucitron.user.gajsUa,
  1494. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1495. tagGCookie = '_ga_' + googleIdentifier;
  1496. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1497. tagGCookie = tagGCookie.replace(/G-/g, '');
  1498. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
  1499. })(),
  1500. "js": function () {
  1501. "use strict";
  1502. window._gaq = window._gaq || [];
  1503. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  1504. if (tarteaucitron.user.gajsAnonymizeIp) {
  1505. window._gaq.push (['_gat._anonymizeIp']);
  1506. }
  1507. if (tarteaucitron.user.gajsPageView) {
  1508. window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
  1509. } else {
  1510. window._gaq.push(['_trackPageview']);
  1511. }
  1512. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  1513. if (typeof tarteaucitron.user.gajsMore === 'function') {
  1514. tarteaucitron.user.gajsMore();
  1515. }
  1516. });
  1517. }
  1518. };
  1519. // google analytics
  1520. tarteaucitron.services.analytics = {
  1521. "key": "analytics",
  1522. "type": "analytic",
  1523. "name": "Google Analytics (universal)",
  1524. "uri": "https://policies.google.com/privacy",
  1525. "needConsent": true,
  1526. "cookies": (function () {
  1527. var googleIdentifier = tarteaucitron.user.analyticsUa,
  1528. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1529. tagGCookie = '_ga_' + googleIdentifier;
  1530. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1531. tagGCookie = tagGCookie.replace(/G-/g, '');
  1532. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
  1533. })(),
  1534. "js": function () {
  1535. "use strict";
  1536. window.GoogleAnalyticsObject = 'ga';
  1537. window.ga = window.ga || function () {
  1538. window.ga.q = window.ga.q || [];
  1539. window.ga.q.push(arguments);
  1540. };
  1541. window.ga.l = new Date();
  1542. tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
  1543. var uaCreate = {'cookieExpires': 34128000};
  1544. tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
  1545. ga('create', tarteaucitron.user.analyticsUa, uaCreate);
  1546. if (tarteaucitron.user.analyticsAnonymizeIp) {
  1547. ga('set', 'anonymizeIp', true);
  1548. }
  1549. if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
  1550. tarteaucitron.user.analyticsPrepare();
  1551. }
  1552. if (tarteaucitron.user.analyticsPageView) {
  1553. ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
  1554. } else {
  1555. ga('send', 'pageview');
  1556. }
  1557. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  1558. tarteaucitron.user.analyticsMore();
  1559. }
  1560. });
  1561. }
  1562. };
  1563. // google analytics
  1564. tarteaucitron.services.gtag = {
  1565. "key": "gtag",
  1566. "type": "analytic",
  1567. "name": "Google Analytics (gtag.js)",
  1568. "uri": "https://policies.google.com/privacy",
  1569. "needConsent": true,
  1570. "cookies": (function () {
  1571. var googleIdentifier = tarteaucitron.user.gtagUa,
  1572. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1573. tagGCookie = '_ga_' + googleIdentifier;
  1574. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1575. tagGCookie = tagGCookie.replace(/G-/g, '');
  1576. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
  1577. })(),
  1578. "js": function () {
  1579. "use strict";
  1580. window.dataLayer = window.dataLayer || [];
  1581. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  1582. window.gtag = function gtag(){dataLayer.push(arguments);}
  1583. gtag('js', new Date());
  1584. if (tarteaucitron.user.gtagCrossdomain) {
  1585. /**
  1586. * https://support.google.com/analytics/answer/7476333?hl=en
  1587. * https://developers.google.com/analytics/devguides/collection/gtagjs/cross-domain
  1588. */
  1589. gtag(
  1590. 'config',
  1591. tarteaucitron.user.gtagUa,
  1592. { 'anonymize_ip': true },
  1593. {linker: {
  1594. domains: tarteaucitron.user.gtagCrossdomain,
  1595. }},
  1596. );
  1597. } else {
  1598. gtag('config', tarteaucitron.user.gtagUa, { 'anonymize_ip': true });
  1599. }
  1600. if (typeof tarteaucitron.user.gtagMore === 'function') {
  1601. tarteaucitron.user.gtagMore();
  1602. }
  1603. });
  1604. }
  1605. };
  1606. // google maps
  1607. tarteaucitron.services.googlemaps = {
  1608. "key": "googlemaps",
  1609. "type": "api",
  1610. "name": "Google Maps",
  1611. "uri": "https://policies.google.com/privacy",
  1612. "needConsent": true,
  1613. "cookies": [],
  1614. "js": function () {
  1615. "use strict";
  1616. var mapOptions,
  1617. map,
  1618. uniqIds = [],
  1619. i;
  1620. if (tarteaucitron.user.mapscallback === undefined) {
  1621. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1622. }
  1623. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1624. var googleMapsLibraries = '';
  1625. if (tarteaucitron.user.googlemapsLibraries) {
  1626. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1627. }
  1628. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback + googleMapsLibraries);
  1629. window.tac_googlemaps_callback = function () {
  1630. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1631. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1632. uniqIds.push(uniqId);
  1633. 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>';
  1634. });
  1635. for (i = 0; i < uniqIds.length; i += 1) {
  1636. mapOptions = {
  1637. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1638. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1639. };
  1640. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1641. new google.maps.Marker({position:{lat:parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10),lng:parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10)},map:map});
  1642. }
  1643. };
  1644. },
  1645. "fallback": function () {
  1646. "use strict";
  1647. var id = 'googlemaps';
  1648. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1649. }
  1650. };
  1651. // googlemaps search
  1652. tarteaucitron.services.googlemapssearch = {
  1653. "key": "googlemapssearch",
  1654. "type": "api",
  1655. "name": "Google Maps Search API",
  1656. "uri": "https://policies.google.com/privacy",
  1657. "needConsent": true,
  1658. "cookies": ['nid'],
  1659. "js": function () {
  1660. "use strict";
  1661. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1662. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google search iframe'),
  1663. width = x.getAttribute("width"),
  1664. height = x.getAttribute("height"),
  1665. // url = x.getAttribute("data-url");
  1666. query = escape(x.getAttribute("data-search")),
  1667. key = x.getAttribute("data-api-key");
  1668. return '<iframe title="' + frame_title + '" width="' + width +'" height="' + height + '" style="border:0" src="https://www.google.com/maps/embed/v1/place?q='+query+'&key='+key+'" allowfullscreen></iframe> '
  1669. });
  1670. },
  1671. "fallback": function () {
  1672. "use strict";
  1673. var id = 'googlemapssearch';
  1674. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1675. elem.style.width = elem.getAttribute('width') + 'px';
  1676. elem.style.height = elem.getAttribute('height') + 'px';
  1677. return tarteaucitron.engage(id);
  1678. });
  1679. }
  1680. };
  1681. // googlemaps embed iframe
  1682. tarteaucitron.services.googlemapsembed = {
  1683. "key": "googlemapsembed",
  1684. "type": "api",
  1685. "name": "Google Maps Embed",
  1686. "uri": "https://policies.google.com/privacy",
  1687. "needConsent": true,
  1688. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1689. "js": function () {
  1690. "use strict";
  1691. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1692. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google maps iframe'),
  1693. width = tarteaucitron.getElemWidth(x),
  1694. height = tarteaucitron.getElemHeight(x),
  1695. url = x.getAttribute("data-url");
  1696. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1697. });
  1698. },
  1699. "fallback": function () {
  1700. "use strict";
  1701. var id = 'googlemapsembed';
  1702. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1703. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1704. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1705. return tarteaucitron.engage(id);
  1706. });
  1707. }
  1708. };
  1709. // google tag manager
  1710. tarteaucitron.services.googletagmanager = {
  1711. "key": "googletagmanager",
  1712. "type": "api",
  1713. "name": "Google Tag Manager",
  1714. "uri": "https://policies.google.com/privacy",
  1715. "needConsent": true,
  1716. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1717. "js": function () {
  1718. "use strict";
  1719. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1720. return;
  1721. }
  1722. window.dataLayer = window.dataLayer || [];
  1723. window.dataLayer.push({
  1724. 'gtm.start': new Date().getTime(),
  1725. event: 'gtm.js'
  1726. });
  1727. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1728. }
  1729. };
  1730. // google tag manager multiple
  1731. tarteaucitron.services.multiplegoogletagmanager = {
  1732. "key": "multiplegoogletagmanager",
  1733. "type": "api",
  1734. "name": "Google Tag Manager",
  1735. "uri": "https://policies.google.com/privacy",
  1736. "needConsent": true,
  1737. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1738. "js": function () {
  1739. "use strict";
  1740. if (tarteaucitron.user.multiplegoogletagmanagerId === undefined) {
  1741. return;
  1742. }
  1743. window.dataLayer = window.dataLayer || [];
  1744. window.dataLayer.push({
  1745. 'gtm.start': new Date().getTime(),
  1746. event: 'gtm.js'
  1747. });
  1748. tarteaucitron.user.multiplegoogletagmanagerId.forEach(function (id) {
  1749. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + id);
  1750. });
  1751. }
  1752. };
  1753. // google webfonts
  1754. tarteaucitron.services.googlefonts = {
  1755. "key": "googlefonts",
  1756. "type": "api",
  1757. "name": "Google Webfonts",
  1758. "uri": "https://policies.google.com/privacy",
  1759. "needConsent": true,
  1760. "cookies": [],
  1761. "js": function () {
  1762. "use strict";
  1763. if (tarteaucitron.user.googleFonts === undefined) {
  1764. return;
  1765. }
  1766. tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
  1767. WebFont.load({
  1768. google: {
  1769. families: tarteaucitron.user.googleFonts
  1770. }
  1771. });
  1772. });
  1773. }
  1774. };
  1775. // hubspot
  1776. tarteaucitron.services.hubspot = {
  1777. "key": "hubspot",
  1778. "type": "analytic",
  1779. "name": "Hubspot",
  1780. "uri": "https://legal.hubspot.com/privacy-policy",
  1781. "needConsent": true,
  1782. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1783. "js": function () {
  1784. "use strict";
  1785. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1786. }
  1787. };
  1788. // instagram
  1789. tarteaucitron.services.instagram = {
  1790. "key": "instagram",
  1791. "type": "social",
  1792. "name": "Instagram",
  1793. "uri": "https://www.instagram.com/legal/privacy/",
  1794. "needConsent": true,
  1795. "cookies": ['shbts', 'sessionid', 'csrftoken', 'rur', 'shbid', 'mid', 'ds_usr_id', 'ig_did', 'ig_cb', 'datr'],
  1796. "js": function () {
  1797. "use strict";
  1798. tarteaucitron.fallback(['instagram_post'], function (x) {
  1799. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Instagram iframe'),
  1800. post_id = x.getAttribute('postId'),
  1801. post_permalink = x.getAttribute('data-instgrm-permalink'),
  1802. embed_width = x.getAttribute('width'),
  1803. embed_height = x.getAttribute('height'),
  1804. frame_width,
  1805. frame_height,
  1806. post_frame;
  1807. if (post_permalink != null) {
  1808. tarteaucitron.addScript('//www.instagram.com/embed.js', 'instagram-embed');
  1809. return '';
  1810. }
  1811. if (post_id === undefined) {
  1812. return "";
  1813. }
  1814. if (embed_width !== undefined) {
  1815. frame_width = 'width="' + embed_width + '" ';
  1816. } else {
  1817. frame_width = '"" ';
  1818. }
  1819. if (embed_height !== undefined) {
  1820. frame_height = 'height="' + embed_height + '" ';
  1821. } else {
  1822. frame_height = '"" ';
  1823. }
  1824. post_frame = '<iframe title="' + frame_title + '" src="//www.instagram.com/' + post_id + '/embed" ' + frame_width + frame_height + '></iframe>';
  1825. return post_frame;
  1826. });
  1827. },
  1828. "fallback": function () {
  1829. "use strict";
  1830. var id = 'instagram';
  1831. tarteaucitron.fallback(['instagram_post'], function (elem) {
  1832. elem.style.width = elem.getAttribute('width') + 'px';
  1833. elem.style.height = elem.getAttribute('height') + 'px';
  1834. return tarteaucitron.engage(id);
  1835. });
  1836. }
  1837. };
  1838. // jsapi
  1839. tarteaucitron.services.jsapi = {
  1840. "key": "jsapi",
  1841. "type": "api",
  1842. "name": "Google jsapi",
  1843. "uri": "https://policies.google.com/privacy",
  1844. "needConsent": true,
  1845. "cookies": [],
  1846. "js": function () {
  1847. "use strict";
  1848. tarteaucitron.addScript('//www.google.com/jsapi');
  1849. }
  1850. };
  1851. // twitterwidgetsapi
  1852. tarteaucitron.services.twitterwidgetsapi = {
  1853. "key": "twitterwidgetsapi",
  1854. "type": "api",
  1855. "name": "Twitter Widgets API",
  1856. "uri": "https://support.twitter.com/articles/20170514",
  1857. "needConsent": true,
  1858. "cookies": [],
  1859. "js": function () {
  1860. "use strict";
  1861. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1862. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1863. },
  1864. "fallback": function () {
  1865. "use strict";
  1866. var id = 'twitterwidgetsapi';
  1867. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1868. }
  1869. };
  1870. // recaptcha
  1871. tarteaucitron.services.recaptcha = {
  1872. "key": "recaptcha",
  1873. "type": "api",
  1874. "name": "reCAPTCHA",
  1875. "uri": "https://policies.google.com/privacy",
  1876. "needConsent": true,
  1877. "cookies": ['nid'],
  1878. "js": function () {
  1879. "use strict";
  1880. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
  1881. tarteaucitron.fallback(['g-recaptcha'], '');
  1882. if (tarteaucitron.user.recaptchaapi === undefined) {
  1883. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  1884. } else {
  1885. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad&render=' + tarteaucitron.user.recaptchaapi);
  1886. }
  1887. },
  1888. "fallback": function () {
  1889. "use strict";
  1890. var id = 'recaptcha';
  1891. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1892. }
  1893. };
  1894. // linkedin
  1895. tarteaucitron.services.linkedin = {
  1896. "key": "linkedin",
  1897. "type": "social",
  1898. "name": "Linkedin",
  1899. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1900. "needConsent": true,
  1901. "cookies": [],
  1902. "js": function () {
  1903. "use strict";
  1904. tarteaucitron.fallback(['tacLinkedin'], '');
  1905. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1906. if (tarteaucitron.isAjax === true) {
  1907. if (typeof IN !== "undefined") {
  1908. IN.parse();
  1909. }
  1910. }
  1911. },
  1912. "fallback": function () {
  1913. "use strict";
  1914. var id = 'linkedin';
  1915. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1916. }
  1917. };
  1918. // mautic
  1919. tarteaucitron.services.mautic = {
  1920. "key": "mautic",
  1921. "type": "analytic",
  1922. "name": "Mautic",
  1923. "uri": "https://www.mautic.org/privacy-policy/",
  1924. "needConsent": true,
  1925. "cookies": ['mtc_id', 'mtc_sid'],
  1926. "js": function () {
  1927. "use strict";
  1928. if (tarteaucitron.user.mauticurl === undefined) {
  1929. return;
  1930. }
  1931. window.MauticTrackingObject = 'mt';
  1932. window.mt = window.mt || function () {
  1933. window.mt.q = window.mt.q || [];
  1934. window.mt.q.push(arguments);
  1935. };
  1936. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1937. mt('send', 'pageview');
  1938. });
  1939. }
  1940. };
  1941. // microsoftcampaignanalytics
  1942. tarteaucitron.services.microsoftcampaignanalytics = {
  1943. "key": "microsoftcampaignanalytics",
  1944. "type": "analytic",
  1945. "name": "Microsoft Campaign Analytics",
  1946. "uri": "https://privacy.microsoft.com/privacystatement/",
  1947. "needConsent": true,
  1948. "cookies": [],
  1949. "js": function () {
  1950. "use strict";
  1951. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1952. return;
  1953. }
  1954. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1955. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1956. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1957. });
  1958. }
  1959. };
  1960. // onesignal
  1961. tarteaucitron.services.onesignal = {
  1962. "key": "onesignal",
  1963. "type": "api",
  1964. "name": "OneSignal",
  1965. "uri": "https://onesignal.com/privacy_policy",
  1966. "needConsent": true,
  1967. "cookies": [],
  1968. "js": function () {
  1969. "use strict";
  1970. if (tarteaucitron.user.onesignalAppId === undefined) {
  1971. return;
  1972. }
  1973. window.OneSignal = window.OneSignal || [];
  1974. window.OneSignal.push(function() {
  1975. window.OneSignal.init({
  1976. appId: tarteaucitron.user.onesignalAppId,
  1977. });
  1978. });
  1979. tarteaucitron.addScript('https://cdn.onesignal.com/sdks/OneSignalSDK.js');
  1980. }
  1981. };
  1982. // pinterest
  1983. tarteaucitron.services.pinterest = {
  1984. "key": "pinterest",
  1985. "type": "social",
  1986. "name": "Pinterest",
  1987. "uri": "https://about.pinterest.com/privacy-policy",
  1988. "needConsent": true,
  1989. "cookies": [],
  1990. "js": function () {
  1991. "use strict";
  1992. tarteaucitron.fallback(['tacPinterest'], '');
  1993. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1994. },
  1995. "fallback": function () {
  1996. "use strict";
  1997. var id = 'pinterest';
  1998. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1999. }
  2000. };
  2001. // prelinker
  2002. tarteaucitron.services.prelinker = {
  2003. "key": "prelinker",
  2004. "type": "ads",
  2005. "name": "Prelinker",
  2006. "uri": "http://www.prelinker.com/index/index/cgu/",
  2007. "needConsent": true,
  2008. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  2009. "js": function () {
  2010. "use strict";
  2011. var uniqIds = [],
  2012. i,
  2013. uri;
  2014. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  2015. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2016. uniqIds.push(uniqId);
  2017. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  2018. });
  2019. for (i = 0; i < uniqIds.length; i += 1) {
  2020. uri = 'http://promo.easy-dating.org/banner/index?';
  2021. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  2022. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  2023. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  2024. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  2025. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2026. }
  2027. },
  2028. "fallback": function () {
  2029. "use strict";
  2030. var id = 'prelinker';
  2031. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  2032. }
  2033. };
  2034. // prezi
  2035. tarteaucitron.services.prezi = {
  2036. "key": "prezi",
  2037. "type": "video",
  2038. "name": "Prezi",
  2039. "uri": "https://prezi.com/privacy-policy/",
  2040. "needConsent": true,
  2041. "cookies": [],
  2042. "js": function () {
  2043. "use strict";
  2044. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  2045. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Prezi iframe'),
  2046. id = x.getAttribute("data-id"),
  2047. width = x.getAttribute("width"),
  2048. height = x.getAttribute("height"),
  2049. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  2050. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  2051. });
  2052. },
  2053. "fallback": function () {
  2054. "use strict";
  2055. var id = 'prezi';
  2056. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  2057. elem.style.width = elem.getAttribute('width') + 'px';
  2058. elem.style.height = elem.getAttribute('height') + 'px';
  2059. return tarteaucitron.engage(id);
  2060. });
  2061. }
  2062. };
  2063. // pubdirecte
  2064. tarteaucitron.services.pubdirecte = {
  2065. "key": "pubdirecte",
  2066. "type": "ads",
  2067. "name": "Pubdirecte",
  2068. "uri": "http://pubdirecte.com/contact.php",
  2069. "needConsent": true,
  2070. "cookies": [],
  2071. "js": function () {
  2072. "use strict";
  2073. var uniqIds = [],
  2074. i,
  2075. uri;
  2076. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  2077. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2078. uniqIds.push(uniqId);
  2079. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  2080. });
  2081. for (i = 0; i < uniqIds.length; i += 1) {
  2082. uri = '//www.pubdirecte.com/script/banniere.php?';
  2083. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  2084. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  2085. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2086. }
  2087. },
  2088. "fallback": function () {
  2089. "use strict";
  2090. var id = 'pubdirecte';
  2091. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  2092. }
  2093. };
  2094. // purechat
  2095. tarteaucitron.services.purechat = {
  2096. "key": "purechat",
  2097. "type": "support",
  2098. "name": "PureChat",
  2099. "uri": "https://www.purechat.com/privacy",
  2100. "needConsent": true,
  2101. "cookies": [],
  2102. "js": function () {
  2103. "use strict";
  2104. if (tarteaucitron.user.purechatId === undefined) {
  2105. return;
  2106. }
  2107. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  2108. try {
  2109. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  2110. } catch (e) {}
  2111. });
  2112. }
  2113. };
  2114. // rumbletalk
  2115. tarteaucitron.services.rumbletalk = {
  2116. "key": "rumbletalk",
  2117. "type": "social",
  2118. "name": "RumbleTalk",
  2119. "needConsent": true,
  2120. "cookies": ['AWSALB'],
  2121. "js": function () {
  2122. "use strict";
  2123. if (tarteaucitron.user.rumbletalkid === undefined) {
  2124. return;
  2125. }
  2126. tarteaucitron.addScript('https://rumbletalk.com/client/?' + tarteaucitron.user.rumbletalkid);
  2127. tarteaucitron.fallback(['rumbletalk'], function (x) {
  2128. var width = tarteaucitron.getElemWidth(x),
  2129. height = tarteaucitron.getElemHeight(x),
  2130. id = x.getAttribute("data-id");
  2131. return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
  2132. });
  2133. },
  2134. "fallback": function () {
  2135. "use strict";
  2136. var id = 'rumbletalk';
  2137. tarteaucitron.fallback(['rumbletalk'], function (elem) {
  2138. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  2139. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  2140. return tarteaucitron.engage(id);
  2141. });
  2142. }
  2143. };
  2144. // shareaholic
  2145. tarteaucitron.services.shareaholic = {
  2146. "key": "shareaholic",
  2147. "type": "social",
  2148. "name": "Shareaholic",
  2149. "uri": "https://shareaholic.com/privacy/choices",
  2150. "needConsent": true,
  2151. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  2152. "js": function () {
  2153. "use strict";
  2154. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  2155. return;
  2156. }
  2157. tarteaucitron.fallback(['shareaholic-canvas'], '');
  2158. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  2159. try {
  2160. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  2161. } catch (e) {}
  2162. });
  2163. },
  2164. "fallback": function () {
  2165. "use strict";
  2166. var id = 'shareaholic';
  2167. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  2168. }
  2169. };
  2170. // shareasale
  2171. tarteaucitron.services.shareasale = {
  2172. "key": "shareasale",
  2173. "type": "ads",
  2174. "name": "ShareASale",
  2175. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  2176. "needConsent": true,
  2177. "cookies": [],
  2178. "js": function () {
  2179. "use strict";
  2180. var uniqIds = [],
  2181. i,
  2182. uri;
  2183. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  2184. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2185. uniqIds.push(uniqId);
  2186. 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>';
  2187. });
  2188. for (i = 0; i < uniqIds.length; i += 1) {
  2189. uri = 'https://shareasale.com/sale.cfm?';
  2190. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  2191. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  2192. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  2193. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  2194. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  2195. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  2196. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  2197. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  2198. }
  2199. },
  2200. "fallback": function () {
  2201. "use strict";
  2202. var id = 'shareasale';
  2203. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  2204. }
  2205. };
  2206. // sharethis
  2207. tarteaucitron.services.sharethis = {
  2208. "key": "sharethis",
  2209. "type": "social",
  2210. "name": "ShareThis",
  2211. "uri": "http://www.sharethis.com/legal/privacy/",
  2212. "needConsent": true,
  2213. "cookies": ['__unam'],
  2214. "js": function () {
  2215. "use strict";
  2216. if (tarteaucitron.user.sharethisPublisher === undefined) {
  2217. return;
  2218. }
  2219. var switchTo5x = true,
  2220. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  2221. tarteaucitron.fallback(['tacSharethis'], '');
  2222. tarteaucitron.addScript(uri, '', function () {
  2223. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  2224. });
  2225. if (tarteaucitron.isAjax === true) {
  2226. if (typeof stButtons !== "undefined") {
  2227. stButtons.locateElements();
  2228. }
  2229. }
  2230. },
  2231. "fallback": function () {
  2232. "use strict";
  2233. var id = 'sharethis';
  2234. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  2235. }
  2236. };
  2237. // slideshare
  2238. tarteaucitron.services.slideshare = {
  2239. "key": "slideshare",
  2240. "type": "video",
  2241. "name": "SlideShare",
  2242. "uri": "https://www.linkedin.com/legal/privacy-policy",
  2243. "needConsent": true,
  2244. "cookies": [],
  2245. "js": function () {
  2246. "use strict";
  2247. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  2248. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Slideshare iframe'),
  2249. id = x.getAttribute("data-id"),
  2250. width = x.getAttribute("width"),
  2251. height = x.getAttribute("height"),
  2252. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  2253. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  2254. });
  2255. },
  2256. "fallback": function () {
  2257. "use strict";
  2258. var id = 'slideshare';
  2259. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  2260. elem.style.width = elem.getAttribute('width') + 'px';
  2261. elem.style.height = elem.getAttribute('height') + 'px';
  2262. return tarteaucitron.engage(id);
  2263. });
  2264. }
  2265. };
  2266. // soundcloud
  2267. tarteaucitron.services.soundcloud = {
  2268. key: 'soundcloud',
  2269. type: 'video',
  2270. name: 'SoundCloud',
  2271. needConsent: true,
  2272. cookies: ['sc_anonymous_id'],
  2273. js: function () {
  2274. "use strict";
  2275. tarteaucitron.fallback(['soundcloud_player'], function (x) {
  2276. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Soundcloud iframe'),
  2277. player_height = x.getAttribute('data-height'),
  2278. frame_height = 'height="' + player_height + '" ',
  2279. playable_id = x.getAttribute('data-playable-id'),
  2280. playable_type = x.getAttribute('data-playable-type'),
  2281. playable_url = x.getAttribute('data-playable-url'),
  2282. color = x.getAttribute('data-color'),
  2283. autoplay = x.getAttribute('data-auto-play'),
  2284. hideRelated = x.getAttribute('data-hide-related'),
  2285. showComments = x.getAttribute('data-show-comments'),
  2286. showUser = x.getAttribute('data-show-user'),
  2287. showReposts = x.getAttribute('data-show-reposts'),
  2288. showTeaser = x.getAttribute('data-show-teaser'),
  2289. visual = x.getAttribute('data-visual'),
  2290. artwork = x.getAttribute('data-artwork');
  2291. var allowAutoplay = autoplay === 'true' ? 'allow="autoplay"' : '';
  2292. if (playable_id === undefined && playable_url === undefined) {
  2293. return "";
  2294. }
  2295. // Allow to embed from API results (playable_type + playable_id)
  2296. var qs = '?url=https%3A//api.soundcloud.com/' + playable_type + '/' + playable_id;
  2297. // Or from raw URL from Soundcloud website
  2298. if (playable_url && playable_url.length >0) qs = '?url=' + escape(playable_url);
  2299. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2300. if (color && color.length > 0) qs += '&color=' + color.replace('#', '%23');
  2301. if (autoplay && autoplay.length > 0) qs += '&auto_play=' + autoplay;
  2302. if (showComments && showComments.length > 0) qs += '&show_comments=' + showComments;
  2303. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2304. if (showUser && showUser.length > 0) qs += '&show_user=' + showUser;
  2305. if (showReposts && showReposts.length > 0) qs += '&show_reposts=' + showReposts;
  2306. if (showTeaser && showTeaser.length > 0) qs += '&show_teaser=' + showTeaser;
  2307. if (visual && visual.length > 0) qs += '&visual=' + visual;
  2308. if (artwork && artwork.length > 0) qs += '&show_artwork=' + artwork;
  2309. return '<iframe title="' + frame_title + '" width="100%" ' + frame_height + ' scrolling="no" ' + allowAutoplay + ' src="https://w.soundcloud.com/player/' + qs + '"></iframe>';
  2310. });
  2311. },
  2312. fallback: function () {
  2313. "use strict";
  2314. tarteaucitron.fallback(['soundcloud_player'], function (elem) {
  2315. elem.style.height = elem.getAttribute('data-height') + 'px';
  2316. return tarteaucitron.engage('soundcloud');
  2317. });
  2318. }
  2319. };
  2320. // spotify
  2321. tarteaucitron.services.spotify = {
  2322. "key": "spotify",
  2323. "type": "video",
  2324. "name": "Spotify",
  2325. "uri": "https://www.spotify.com/us/legal/privacy-policy/",
  2326. "needConsent": true,
  2327. "cookies": ['sp_landing', '_ga', 'sp_ab', 'sp_landingref', 'sp_t', 'sp_usid', 'OptanonConsent', 'sp_m', 'spot'],
  2328. "js": function () {
  2329. "use strict";
  2330. tarteaucitron.fallback(['spotify_player'], function (x) {
  2331. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Spotify iframe'),
  2332. spotify_id = x.getAttribute("spotifyID"),
  2333. spotify_width = x.getAttribute("width"),
  2334. frame_width = 'width=',
  2335. spotify_height = x.getAttribute("height"),
  2336. frame_height = 'height=',
  2337. spotify_frame;
  2338. if (spotify_id === undefined) {
  2339. return "";
  2340. }
  2341. if (spotify_width !== undefined) {
  2342. frame_width += '"' + spotify_width + '" ';
  2343. } else {
  2344. frame_width += '"" ';
  2345. }
  2346. if (spotify_height !== undefined) {
  2347. frame_height += '"' + spotify_height + '" ';
  2348. } else {
  2349. frame_height += '"" ';
  2350. }
  2351. spotify_frame = '<iframe title="' + frame_title + '" src="//open.spotify.com/embed/' + spotify_id + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
  2352. return spotify_frame;
  2353. });
  2354. },
  2355. "fallback": function () {
  2356. "use strict";
  2357. var id = 'spotify';
  2358. tarteaucitron.fallback(['spotify_player'], function (elem) {
  2359. elem.style.width = elem.getAttribute('width') + 'px';
  2360. elem.style.height = elem.getAttribute('height') + 'px';
  2361. return tarteaucitron.engage(id);
  2362. });
  2363. }
  2364. };
  2365. // statcounter
  2366. tarteaucitron.services.statcounter = {
  2367. "key": "statcounter",
  2368. "type": "analytic",
  2369. "name": "StatCounter",
  2370. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  2371. "needConsent": true,
  2372. "cookies": ['sc_is_visitor_unique'],
  2373. "js": function () {
  2374. "use strict";
  2375. var uniqIds = [],
  2376. i,
  2377. uri = '//statcounter.com/counter/counter.js';
  2378. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  2379. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2380. uniqIds.push(uniqId);
  2381. return '<div id="' + uniqId + '"></div>';
  2382. });
  2383. for (i = 0; i < uniqIds.length; i += 1) {
  2384. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2385. }
  2386. },
  2387. "fallback": function () {
  2388. "use strict";
  2389. var id = 'statcounter';
  2390. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  2391. }
  2392. };
  2393. // timelinejs
  2394. tarteaucitron.services.timelinejs = {
  2395. "key": "timelinejs",
  2396. "type": "api",
  2397. "name": "Timeline JS",
  2398. "uri": "http://timeline.knightlab.com/#help",
  2399. "needConsent": true,
  2400. "cookies": [],
  2401. "js": function () {
  2402. "use strict";
  2403. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  2404. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Twitter iframe'),
  2405. spreadsheet_id = x.getAttribute("spreadsheet_id"),
  2406. width = x.getAttribute("width"),
  2407. height = x.getAttribute("height"),
  2408. lang = x.getAttribute("lang_2_letter"),
  2409. font = x.getAttribute("font"),
  2410. map = x.getAttribute("map"),
  2411. start_at_end = x.getAttribute("start_at_end"),
  2412. hash_bookmark = x.getAttribute("hash_bookmark"),
  2413. start_at_slide = x.getAttribute("start_at_slide"),
  2414. start_zoom = x.getAttribute("start_zoom"),
  2415. 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;
  2416. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" allowtransparency allowfullscreen></iframe>';
  2417. });
  2418. },
  2419. "fallback": function () {
  2420. "use strict";
  2421. var id = 'timelinejs';
  2422. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  2423. elem.style.width = elem.getAttribute('width') + 'px';
  2424. elem.style.height = elem.getAttribute('height') + 'px';
  2425. return tarteaucitron.engage(id);
  2426. });
  2427. }
  2428. };
  2429. // tagcommander
  2430. tarteaucitron.services.tagcommander = {
  2431. "key": "tagcommander",
  2432. "type": "api",
  2433. "name": "TagCommander",
  2434. "uri": "https://www.commandersact.com/en/privacy/",
  2435. "needConsent": true,
  2436. "cookies": [],
  2437. "js": function () {
  2438. "use strict";
  2439. if (tarteaucitron.user.tagcommanderid === undefined) {
  2440. return;
  2441. }
  2442. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  2443. }
  2444. };
  2445. // typekit
  2446. tarteaucitron.services.typekit = {
  2447. "key": "typekit",
  2448. "type": "api",
  2449. "name": "Typekit (adobe)",
  2450. "uri": "https://www.adobe.com/privacy.html",
  2451. "needConsent": true,
  2452. "cookies": [],
  2453. "js": function () {
  2454. "use strict";
  2455. if (tarteaucitron.user.typekitId === undefined) {
  2456. return;
  2457. }
  2458. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  2459. try {
  2460. Typekit.load();
  2461. } catch (e) {}
  2462. });
  2463. }
  2464. };
  2465. // twenga
  2466. tarteaucitron.services.twenga = {
  2467. "key": "twenga",
  2468. "type": "ads",
  2469. "name": "Twenga",
  2470. "uri": "http://www.twenga.com/privacy.php",
  2471. "needConsent": true,
  2472. "cookies": [],
  2473. "js": function () {
  2474. "use strict";
  2475. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  2476. return;
  2477. }
  2478. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  2479. }
  2480. };
  2481. // twitter
  2482. tarteaucitron.services.twitter = {
  2483. "key": "twitter",
  2484. "type": "social",
  2485. "name": "Twitter",
  2486. "uri": "https://support.twitter.com/articles/20170514",
  2487. "needConsent": true,
  2488. "cookies": [],
  2489. "js": function () {
  2490. "use strict";
  2491. tarteaucitron.fallback(['tacTwitter'], '');
  2492. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2493. },
  2494. "fallback": function () {
  2495. "use strict";
  2496. var id = 'twitter';
  2497. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  2498. }
  2499. };
  2500. // twitter embed
  2501. tarteaucitron.services.twitterembed = {
  2502. "key": "twitterembed",
  2503. "type": "social",
  2504. "name": "Twitter (cards)",
  2505. "uri": "https://support.twitter.com/articles/20170514",
  2506. "needConsent": true,
  2507. "cookies": [],
  2508. "js": function () {
  2509. "use strict";
  2510. var uniqIds = [],
  2511. i,
  2512. e,
  2513. html;
  2514. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  2515. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2516. uniqIds.push(uniqId);
  2517. html = '<div id="' + uniqId + '" ';
  2518. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  2519. html += 'theme="' + x.getAttribute('theme') + '" ';
  2520. html += 'cards="' + x.getAttribute('cards') + '" ';
  2521. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  2522. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  2523. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  2524. html += '></div>';
  2525. return html;
  2526. });
  2527. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  2528. for (i = 0; i < uniqIds.length; i += 1) {
  2529. e = document.getElementById(uniqIds[i]);
  2530. twttr.widgets.createTweet(
  2531. e.getAttribute('tweetid'),
  2532. e,
  2533. {
  2534. theme: e.getAttribute('theme'),
  2535. cards: e.getAttribute('cards'),
  2536. conversation: e.getAttribute('conversation'),
  2537. lang: tarteaucitron.getLanguage(),
  2538. dnt: true,
  2539. width: e.getAttribute('data-width'),
  2540. align: e.getAttribute('data-align')
  2541. }
  2542. );
  2543. }
  2544. });
  2545. },
  2546. "fallback": function () {
  2547. "use strict";
  2548. var id = 'twitterembed';
  2549. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  2550. elem.style.width = elem.getAttribute('data-width') + 'px';
  2551. return tarteaucitron.engage(id);
  2552. });
  2553. }
  2554. };
  2555. // twitter timeline
  2556. tarteaucitron.services.twittertimeline = {
  2557. "key": "twittertimeline",
  2558. "type": "social",
  2559. "name": "Twitter (timelines)",
  2560. "uri": "https://support.twitter.com/articles/20170514",
  2561. "needConsent": true,
  2562. "cookies": [],
  2563. "js": function () {
  2564. "use strict";
  2565. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  2566. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2567. },
  2568. "fallback": function () {
  2569. "use strict";
  2570. var id = 'twittertimeline';
  2571. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  2572. }
  2573. };
  2574. // twitter universal website tag
  2575. tarteaucitron.services.twitteruwt = {
  2576. "key": "twitteruwt",
  2577. "type": "analytic",
  2578. "name": "Twitter Universal Website Tag",
  2579. "uri": "https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html",
  2580. "needConsent": true,
  2581. "cookies": [],
  2582. "js": function () {
  2583. "use strict";
  2584. window.twq = function () {
  2585. window.twq.exe ? window.twq.exe.apply(window.twq, arguments) : window.twq.queue.push(arguments);
  2586. }
  2587. window.twq.version = '1.1';
  2588. window.twq.queue = [];
  2589. tarteaucitron.addScript('https://static.ads-twitter.com/uwt.js', '', function () {
  2590. window.twq('init', tarteaucitron.user.twitteruwtId);
  2591. window.twq('track', 'PageView');
  2592. });
  2593. }
  2594. };
  2595. // user voice
  2596. tarteaucitron.services.uservoice = {
  2597. "key": "uservoice",
  2598. "type": "support",
  2599. "name": "UserVoice",
  2600. "uri": "https://www.uservoice.com/privacy/",
  2601. "needConsent": true,
  2602. "cookies": [],
  2603. "js": function () {
  2604. "use strict";
  2605. if (tarteaucitron.user.userVoiceApi === undefined) {
  2606. return;
  2607. }
  2608. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  2609. }
  2610. };
  2611. // vimeo
  2612. tarteaucitron.services.vimeo = {
  2613. "key": "vimeo",
  2614. "type": "video",
  2615. "name": "Vimeo",
  2616. "uri": "https://vimeo.com/privacy",
  2617. "needConsent": true,
  2618. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  2619. "js": function () {
  2620. "use strict";
  2621. tarteaucitron.fallback(['vimeo_player'], function (x) {
  2622. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("data-title") || x.getAttribute("title") || 'Vimeo iframe'),
  2623. video_width = x.getAttribute("data-width") || x.getAttribute("width"),
  2624. frame_width = 'width=',
  2625. video_height = x.getAttribute("data-height") || x.getAttribute("height"),
  2626. frame_height = 'height=',
  2627. video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
  2628. video_autopause = x.getAttribute("data-autopause") || '',
  2629. video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
  2630. video_background = x.getAttribute("data-background") || '',
  2631. video_byline = x.getAttribute("data-byline") || x.getAttribute("byline") || '',
  2632. video_color = x.getAttribute("data-color") || '',
  2633. video_controls = x.getAttribute("data-controls") || '',
  2634. video_loop = x.getAttribute("data-loop") || x.getAttribute("loop") || '',
  2635. video_maxheight = x.getAttribute("data-maxheight") || '',
  2636. video_maxwidth = x.getAttribute("data-maxwidth") || '',
  2637. video_muted = x.getAttribute("data-muted") || '',
  2638. video_playsinline = x.getAttribute("data-playsinline") || '',
  2639. video_portrait = x.getAttribute("data-portrait") || x.getAttribute("portrait") || '',
  2640. video_speed = x.getAttribute("data-speed") || '',
  2641. video_title = x.getAttribute("data-title") || x.getAttribute("title") || '',
  2642. video_transparent = x.getAttribute("data-transparent") || '',
  2643. video_frame;
  2644. if (video_id === undefined) {
  2645. return "";
  2646. }
  2647. if (video_width !== undefined) {
  2648. frame_width += '"' + video_width + '" ';
  2649. } else {
  2650. frame_width += '"" ';
  2651. }
  2652. if (video_height !== undefined) {
  2653. frame_height += '"' + video_height + '" ';
  2654. } else {
  2655. frame_height += '"" ';
  2656. }
  2657. var video_qs = "?";
  2658. if (video_title.length > 0) {
  2659. video_qs += "title=" + video_title;
  2660. }
  2661. if (video_byline.length > 0) {
  2662. if (video_qs.length > 0) {
  2663. video_qs += "&";
  2664. }
  2665. video_qs += "byline=" + video_byline;
  2666. }
  2667. if (video_portrait.length > 0) {
  2668. if (video_qs.length > 0) {
  2669. video_qs += "&";
  2670. }
  2671. video_qs += "portrait=" + video_portrait;
  2672. }
  2673. if (video_loop.length > 0) {
  2674. if (video_qs.length > 0) {
  2675. video_qs += "&";
  2676. }
  2677. video_qs += "loop=" + video_loop;
  2678. }
  2679. if (video_autoplay.length > 0) {
  2680. if (video_qs.length > 0) {
  2681. video_qs += "&";
  2682. }
  2683. video_qs += "autoplay=" + video_autoplay;
  2684. }
  2685. if (video_autopause.length > 0) {
  2686. if (video_qs.length > 0) {
  2687. video_qs += "&";
  2688. }
  2689. video_qs += "autopause=" + video_autopause;
  2690. }
  2691. if (video_background.length > 0) {
  2692. if (video_qs.length > 0) {
  2693. video_qs += "&";
  2694. }
  2695. video_qs += "background=" + video_background;
  2696. }
  2697. if (video_color.length > 0) {
  2698. if (video_qs.length > 0) {
  2699. video_qs += "&";
  2700. }
  2701. video_qs += "color=" + video_color;
  2702. }
  2703. if (video_controls.length > 0) {
  2704. if (video_qs.length > 0) {
  2705. video_qs += "&";
  2706. }
  2707. video_qs += "controls=" + video_controls;
  2708. }
  2709. if (video_maxheight.length > 0) {
  2710. if (video_qs.length > 0) {
  2711. video_qs += "&";
  2712. }
  2713. video_qs += "maxheight=" + video_maxheight;
  2714. }
  2715. if (video_maxwidth.length > 0) {
  2716. if (video_qs.length > 0) {
  2717. video_qs += "&";
  2718. }
  2719. video_qs += "maxwidth=" + video_maxwidth;
  2720. }
  2721. if (video_muted.length > 0) {
  2722. if (video_qs.length > 0) {
  2723. video_qs += "&";
  2724. }
  2725. video_qs += "muted=" + video_muted;
  2726. }
  2727. if (video_playsinline.length > 0) {
  2728. if (video_qs.length > 0) {
  2729. video_qs += "&";
  2730. }
  2731. video_qs += "playsinline=" + video_playsinline;
  2732. }
  2733. if (video_speed.length > 0) {
  2734. if (video_qs.length > 0) {
  2735. video_qs += "&";
  2736. }
  2737. video_qs += "speed=" + video_speed;
  2738. }
  2739. if (video_transparent.length > 0) {
  2740. if (video_qs.length > 0) {
  2741. video_qs += "&";
  2742. }
  2743. video_qs += "transparent=" + video_transparent;
  2744. }
  2745. if (video_qs === "?") {
  2746. video_qs = "";
  2747. }
  2748. video_frame = '<iframe title="' + frame_title + '" src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  2749. return video_frame;
  2750. });
  2751. },
  2752. "fallback": function () {
  2753. "use strict";
  2754. var id = 'vimeo';
  2755. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  2756. elem.style.width = elem.getAttribute('width') + 'px';
  2757. elem.style.height = elem.getAttribute('height') + 'px';
  2758. return tarteaucitron.engage(id);
  2759. });
  2760. }
  2761. };
  2762. // visualrevenue
  2763. tarteaucitron.services.visualrevenue = {
  2764. "key": "visualrevenue",
  2765. "type": "analytic",
  2766. "name": "VisualRevenue",
  2767. "uri": "http://www.outbrain.com/legal/privacy-713/",
  2768. "needConsent": true,
  2769. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  2770. "js": function () {
  2771. "use strict";
  2772. if (tarteaucitron.user.visualrevenueId === undefined) {
  2773. return;
  2774. }
  2775. window._vrq = window._vrq || [];
  2776. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  2777. window._vrq.push(['automate', true]);
  2778. window._vrq.push(['track', function () {}]);
  2779. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  2780. }
  2781. };
  2782. // verizon dot tag
  2783. tarteaucitron.services.verizondottag = {
  2784. "key": "verizondottag",
  2785. "type": "analytic",
  2786. "name": "Verizon Dot Tag",
  2787. "uri": "https://developer.verizonmedia.com/native/guide/audience-management/dottags/",
  2788. "needConsent": true,
  2789. "cookies": [],
  2790. "js": function () {
  2791. "use strict";
  2792. window.dotq = window.dotq || [];
  2793. window.dotq.push({
  2794. 'projectId': tarteaucitron.user.verizondottagProjectId,
  2795. 'properties': {'pixelId': tarteaucitron.user.verizondottagPixelId}
  2796. });
  2797. tarteaucitron.addScript('https://s.yimg.com/wi/ytc.js', '', function () {
  2798. const items = window.dotq;
  2799. window.dotq = [];
  2800. window.dotq.push = function (item) {
  2801. YAHOO.ywa.I13N.fireBeacon([item])
  2802. };
  2803. YAHOO.ywa.I13N.fireBeacon(items)
  2804. });
  2805. }
  2806. };
  2807. // vshop
  2808. tarteaucitron.services.vshop = {
  2809. "key": "vshop",
  2810. "type": "ads",
  2811. "name": "vShop",
  2812. "uri": "http://vshop.fr/privacy-policy",
  2813. "needConsent": true,
  2814. "cookies": [],
  2815. "js": function () {
  2816. "use strict";
  2817. tarteaucitron.fallback(['vcashW'], '');
  2818. tarteaucitron.addScript('//vshop.fr/js/w.js');
  2819. },
  2820. "fallback": function () {
  2821. "use strict";
  2822. var id = 'vshop';
  2823. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  2824. }
  2825. };
  2826. // wysistat
  2827. tarteaucitron.services.wysistat = {
  2828. "key": "wysistat",
  2829. "type": "analytic",
  2830. "name": "Wysistat",
  2831. "uri": "http://wysistat.net/contact/",
  2832. "needConsent": true,
  2833. "cookies": ['Wysistat'],
  2834. "js": function () {
  2835. "use strict";
  2836. if (tarteaucitron.user.wysistat === undefined) {
  2837. return;
  2838. }
  2839. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  2840. 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);
  2841. });
  2842. }
  2843. };
  2844. // xiti
  2845. tarteaucitron.services.xiti = {
  2846. "key": "xiti",
  2847. "type": "analytic",
  2848. "name": "Xiti",
  2849. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2850. "needConsent": true,
  2851. "cookies": [],
  2852. "js": function () {
  2853. "use strict";
  2854. if (tarteaucitron.user.xitiId === undefined) {
  2855. return;
  2856. }
  2857. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  2858. Xt_r,
  2859. Xt_h,
  2860. Xt_i,
  2861. Xt_s,
  2862. div = document.createElement('div');
  2863. try {
  2864. Xt_r = top.document.referrer;
  2865. } catch (e) {
  2866. Xt_r = document.referrer;
  2867. }
  2868. Xt_h = new Date();
  2869. Xt_i = '<img style="display:none" border="0" alt="" ';
  2870. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  2871. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  2872. if (parseFloat(navigator.appVersion) >= 4) {
  2873. Xt_s = screen;
  2874. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  2875. }
  2876. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  2877. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  2878. if (typeof tarteaucitron.user.xitiMore === 'function') {
  2879. tarteaucitron.user.xitiMore();
  2880. }
  2881. }
  2882. };
  2883. // AT Internet
  2884. tarteaucitron.services.atinternet = {
  2885. "key": "atinternet",
  2886. "type": "analytic",
  2887. "name": "AT Internet (privacy by design)",
  2888. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2889. "needConsent": true,
  2890. "safeanalytic": false,
  2891. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession'],
  2892. "js": function () {
  2893. "use strict";
  2894. if (tarteaucitron.user.atLibUrl === undefined) {
  2895. return;
  2896. }
  2897. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2898. window.tag = new ATInternet.Tracker.Tag();
  2899. if (typeof tarteaucitron.user.atMore === 'function') {
  2900. tarteaucitron.user.atMore();
  2901. }
  2902. if (typeof window.tag.privacy !== 'undefined') {
  2903. window.tag.privacy.setVisitorOptin();
  2904. }
  2905. if (tarteaucitron.user.atinternetSendData !== false) {
  2906. window.tag.page.send();
  2907. }
  2908. });
  2909. },
  2910. "fallback": function () {
  2911. "use strict";
  2912. if (tarteaucitron.user.atLibUrl === undefined) {
  2913. return;
  2914. }
  2915. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2916. window.tag = new ATInternet.Tracker.Tag();
  2917. if (typeof tarteaucitron.user.atMore === 'function') {
  2918. tarteaucitron.user.atMore();
  2919. }
  2920. if (typeof window.tag.privacy !== 'undefined') {
  2921. var visitorMode = window.tag.privacy.getVisitorMode();
  2922. if (visitorMode !== null && visitorMode.name !== undefined && visitorMode.name == "optout") {
  2923. window.tag.privacy.setVisitorOptout();
  2924. } else {
  2925. window.tag.privacy.setVisitorMode('cnil', 'exempt');
  2926. }
  2927. }
  2928. if (tarteaucitron.user.atinternetSendData !== false) {
  2929. window.tag.page.send();
  2930. }
  2931. });
  2932. }
  2933. };
  2934. // AT Internet
  2935. tarteaucitron.services.atinternethightrack = {
  2936. "key": "atinternethightrack",
  2937. "type": "analytic",
  2938. "name": "AT Internet",
  2939. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2940. "needConsent": true,
  2941. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession'],
  2942. "js": function () {
  2943. "use strict";
  2944. if (tarteaucitron.user.atLibUrl === undefined) {
  2945. return;
  2946. }
  2947. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2948. var tag = new ATInternet.Tracker.Tag();
  2949. if (typeof tarteaucitron.user.atMore === 'function') {
  2950. tarteaucitron.user.atMore();
  2951. }
  2952. })
  2953. }
  2954. };
  2955. // youtube
  2956. tarteaucitron.services.youtube = {
  2957. "key": "youtube",
  2958. "type": "video",
  2959. "name": "YouTube",
  2960. "uri": "https://policies.google.com/privacy",
  2961. "needConsent": true,
  2962. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2963. "js": function () {
  2964. "use strict";
  2965. tarteaucitron.fallback(['youtube_player'], function (x) {
  2966. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Youtube iframe'),
  2967. video_id = x.getAttribute("videoID"),
  2968. video_width = x.getAttribute("width"),
  2969. frame_width = 'width=',
  2970. video_height = x.getAttribute("height"),
  2971. frame_height = 'height=',
  2972. video_frame,
  2973. allowfullscreen = x.getAttribute("allowfullscreen"),
  2974. attrs = ["theme", "rel", "controls", "showinfo", "autoplay", "mute", "start"],
  2975. params = attrs.filter(function (a) {
  2976. return x.getAttribute(a) !== null;
  2977. }).map(function (a) {
  2978. return a + "=" + x.getAttribute(a);
  2979. }).join("&");
  2980. if (video_id === undefined) {
  2981. return "";
  2982. }
  2983. if (video_width !== undefined) {
  2984. frame_width += '"' + video_width + '" ';
  2985. } else {
  2986. frame_width += '"" ';
  2987. }
  2988. if (video_height !== undefined) {
  2989. frame_height += '"' + video_height + '" ';
  2990. } else {
  2991. frame_height += '"" ';
  2992. }
  2993. video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '"' + (allowfullscreen == '0' ? '' : ' allowfullscreen') + '></iframe>';
  2994. return video_frame;
  2995. });
  2996. },
  2997. "fallback": function () {
  2998. "use strict";
  2999. var id = 'youtube';
  3000. tarteaucitron.fallback(['youtube_player'], function (elem) {
  3001. elem.style.width = elem.getAttribute('width') + 'px';
  3002. elem.style.height = elem.getAttribute('height') + 'px';
  3003. return tarteaucitron.engage(id);
  3004. });
  3005. }
  3006. };
  3007. // youtube playlist
  3008. tarteaucitron.services.youtubeplaylist = {
  3009. "key": "youtubeplaylist",
  3010. "type": "video",
  3011. "name": "YouTube (playlist)",
  3012. "uri": "https://policies.google.com/privacy",
  3013. "needConsent": true,
  3014. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  3015. "js": function () {
  3016. "use strict";
  3017. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  3018. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Youtube iframe'),
  3019. playlist_id = x.getAttribute("playlistID"),
  3020. video_width = x.getAttribute("width"),
  3021. frame_width = 'width=',
  3022. video_height = x.getAttribute("height"),
  3023. frame_height = 'height=',
  3024. video_frame,
  3025. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay") + '&mute=' + x.getAttribute("mute");
  3026. if (playlist_id === undefined) {
  3027. return "";
  3028. }
  3029. if (video_width !== undefined) {
  3030. frame_width += '"' + video_width + '" ';
  3031. } else {
  3032. frame_width += '"" ';
  3033. }
  3034. if (video_height !== undefined) {
  3035. frame_height += '"' + video_height + '" ';
  3036. } else {
  3037. frame_height += '"" ';
  3038. }
  3039. video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" allowfullscreen></iframe>';
  3040. return video_frame;
  3041. });
  3042. },
  3043. "fallback": function () {
  3044. "use strict";
  3045. var id = 'youtubeplaylist';
  3046. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  3047. elem.style.width = elem.getAttribute('width') + 'px';
  3048. elem.style.height = elem.getAttribute('height') + 'px';
  3049. return tarteaucitron.engage(id);
  3050. });
  3051. }
  3052. };
  3053. // zopim
  3054. tarteaucitron.services.zopim = {
  3055. "key": "zopim",
  3056. "type": "support",
  3057. "name": "Zopim",
  3058. "uri": "https://www.zopim.com/privacy",
  3059. "needConsent": true,
  3060. "cookies": ['__zlcid', '__zprivacy'],
  3061. "js": function () {
  3062. "use strict";
  3063. if (tarteaucitron.user.zopimID === undefined) {
  3064. return;
  3065. }
  3066. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  3067. }
  3068. };
  3069. // kameleoon
  3070. tarteaucitron.services.kameleoon = {
  3071. "key": "kameleoon",
  3072. "type": "analytic",
  3073. "name": "Kameleoon",
  3074. "uri": "https://www.kameleoon.com/fr/compliance/rgpd",
  3075. "needConsent": true,
  3076. "cookies": [],
  3077. "js": function () {
  3078. "use strict";
  3079. if (tarteaucitron.user.kameleoon !== undefined) {
  3080. tarteaucitron.addScript("https://" + tarteaucitron.user.kameleoon + ".kameleoon.eu/kameleoon.js");
  3081. }
  3082. }
  3083. };
  3084. // linkedin insight
  3085. tarteaucitron.services.linkedininsighttag = {
  3086. "key": "linkedininsighttag",
  3087. "type": "ads",
  3088. "name": "Linkedin Insight",
  3089. "uri": "https://www.linkedin.com/legal/cookie_policy",
  3090. "needConsent": true,
  3091. "cookies": [],
  3092. "js": function () {
  3093. "use strict";
  3094. if (tarteaucitron.user.linkedininsighttag !== undefined) {
  3095. window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
  3096. window._linkedin_data_partner_ids.push(tarteaucitron.user.linkedininsighttag);
  3097. }
  3098. tarteaucitron.addScript('https://snap.licdn.com/li.lms-analytics/insight.min.js');
  3099. }
  3100. };
  3101. // xiti smartTag
  3102. tarteaucitron.services.xiti_smarttag = {
  3103. "key": "xiti_smarttag",
  3104. "type": "analytic",
  3105. "name": "Xiti (SmartTag)",
  3106. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  3107. "needConsent": true,
  3108. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "attvtreman", "attvtsession"],
  3109. "js": function () {
  3110. "use strict";
  3111. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  3112. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  3113. } else {
  3114. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  3115. if (xitiSmarttagId === undefined) {
  3116. return;
  3117. }
  3118. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  3119. }
  3120. }
  3121. };
  3122. // facebook pixel
  3123. tarteaucitron.services.facebookpixel = {
  3124. "key": "facebookpixel",
  3125. "type": "ads",
  3126. "name": "Facebook Pixel",
  3127. "uri": "https://www.facebook.com/policy.php",
  3128. "needConsent": true,
  3129. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  3130. "js": function () {
  3131. "use strict";
  3132. var n;
  3133. if(window.fbq)return;
  3134. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  3135. if(!window._fbq)window._fbq=n;
  3136. n.push=n;
  3137. n.loaded=!0;
  3138. n.version='2.0';
  3139. n.queue=[];
  3140. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  3141. fbq('init', tarteaucitron.user.facebookpixelId);
  3142. fbq('track', 'PageView');
  3143. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  3144. tarteaucitron.user.facebookpixelMore();
  3145. }
  3146. }
  3147. };
  3148. //Issuu
  3149. tarteaucitron.services.issuu = {
  3150. "key": "issuu",
  3151. "type": "other",
  3152. "name": "Issuu",
  3153. "uri": "https://issuu.com/legal/privacy",
  3154. "needConsent": true,
  3155. "cookies": ['__qca', 'iutk', 'mc'],
  3156. "js": function () {
  3157. "use strict";
  3158. tarteaucitron.fallback(['issuu_player'], function (x) {
  3159. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Issuu iframe'),
  3160. issuu_id = x.getAttribute("issuuID"),
  3161. issuu_width = x.getAttribute("width"),
  3162. frame_width = 'width=',
  3163. issuu_height = x.getAttribute("height"),
  3164. frame_height = 'height=',
  3165. issuu_frame,
  3166. issuu_embed;
  3167. if (issuu_id === undefined) {
  3168. return "";
  3169. }
  3170. if (issuu_width !== undefined) {
  3171. frame_width += '"' + issuu_width + '" ';
  3172. } else {
  3173. frame_width += '"" ';
  3174. }
  3175. if (issuu_height !== undefined) {
  3176. frame_height += '"' + issuu_height + '" ';
  3177. } else {
  3178. frame_height += '"" ';
  3179. }
  3180. if (issuu_id.match(/\d+\/\d+/)) { issuu_embed = '#' + issuu_id; } else if (issuu_id.match(/d=(.*)&u=(.*)/)) { issuu_embed = '?' + issuu_id; }
  3181. issuu_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html' + issuu_embed + '"></iframe>';
  3182. return issuu_frame;
  3183. });
  3184. },
  3185. "fallback": function () {
  3186. "use strict";
  3187. var id = 'issuu';
  3188. tarteaucitron.fallback(['issuu_player'], function (elem) {
  3189. elem.style.width = elem.getAttribute('width') + 'px';
  3190. elem.style.height = elem.getAttribute('height') + 'px';
  3191. return tarteaucitron.engage(id);
  3192. });
  3193. }
  3194. };
  3195. // webmecanik
  3196. tarteaucitron.services.webmecanik = {
  3197. "key": "webmecanik",
  3198. "type": "analytic",
  3199. "name": "Webmecanik",
  3200. "uri": "https://webmecanik.com/tos",
  3201. "needConsent": true,
  3202. "cookies": ['mtc_id', 'mtc_sid'],
  3203. "js": function () {
  3204. "use strict";
  3205. if (tarteaucitron.user.webmecanikurl === undefined) {
  3206. return;
  3207. }
  3208. window.MauticTrackingObject = 'mt';
  3209. window.mt = window.mt || function () {
  3210. window.mt.q = window.mt.q || [];
  3211. window.mt.q.push(arguments);
  3212. };
  3213. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  3214. mt('send', 'pageview');
  3215. });
  3216. }
  3217. };
  3218. // google analytics multiple
  3219. tarteaucitron.services.multiplegtag = {
  3220. "key": "multiplegtag",
  3221. "type": "analytic",
  3222. "name": "Google Analytics (gtag.js)",
  3223. "uri": "https://support.google.com/analytics/answer/6004245",
  3224. "needConsent": true,
  3225. "cookies": (function () {
  3226. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  3227. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  3228. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  3229. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  3230. cookies.push('_ga_' + ua.replace(/G-/g, ''));
  3231. });
  3232. }
  3233. return cookies;
  3234. })(),
  3235. "js": function () {
  3236. "use strict";
  3237. window.dataLayer = window.dataLayer || [];
  3238. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  3239. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  3240. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  3241. window.gtag = function gtag(){dataLayer.push(arguments);}
  3242. gtag('js', new Date());
  3243. gtag('config', ua);
  3244. });
  3245. });
  3246. }
  3247. }
  3248. };
  3249. // Koban
  3250. tarteaucitron.services.koban = {
  3251. "key": "koban",
  3252. "type": "analytic",
  3253. "name": "Koban",
  3254. "uri": "https://koban.cloud/tos",
  3255. "needConsent": true,
  3256. "cookies": ['kbntrk'],
  3257. "js": function () {
  3258. "use strict";
  3259. if (tarteaucitron.user.kobanurl === undefined) {
  3260. return;
  3261. }
  3262. if (tarteaucitron.user.kobanapi === undefined) {
  3263. return;
  3264. }
  3265. window.KobanObject = 'kb';
  3266. window.kb = window.kb || function() {
  3267. window.kb.q = window.kb.q || [];
  3268. window.kb.q.push(arguments);
  3269. };
  3270. window.kb.l = new Date();
  3271. kb('reg', tarteaucitron.user.kobanapi);
  3272. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  3273. });
  3274. }
  3275. };
  3276. // matomo
  3277. /*
  3278. 1. Set the following variable before the initialization :
  3279. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  3280. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  3281. 2. Push the service :
  3282. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  3283. 3. HTML
  3284. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  3285. */
  3286. tarteaucitron.services.matomo = {
  3287. "key": "matomo",
  3288. "type": "analytic",
  3289. "name": "Matomo (privacy by design)",
  3290. "uri": "https://matomo.org/faq/general/faq_146/",
  3291. "needConsent": false,
  3292. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3293. "js": function () {
  3294. "use strict";
  3295. if (tarteaucitron.user.matomoId === undefined) {
  3296. return;
  3297. }
  3298. window._paq = window._paq || [];
  3299. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3300. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3301. window._paq.push(["setDoNotTrack", 1]);
  3302. window._paq.push(["trackPageView"]);
  3303. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3304. window._paq.push(["enableLinkTracking"]);
  3305. window._paq.push([function() {
  3306. var self = this;
  3307. function getOriginalVisitorCookieTimeout() {
  3308. var now = new Date(),
  3309. nowTs = Math.round(now.getTime() / 1000),
  3310. visitorInfo = self.getVisitorInfo();
  3311. var createTs = parseInt(visitorInfo[2]);
  3312. var cookieTimeout = 33696000; // 13 mois en secondes
  3313. var originalTimeout = createTs + cookieTimeout - nowTs;
  3314. return originalTimeout;
  3315. }
  3316. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  3317. }]);
  3318. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3319. // waiting for piwik to be ready to check first party cookies
  3320. var interval = setInterval(function() {
  3321. if (typeof Piwik === 'undefined') return
  3322. clearInterval(interval)
  3323. // make piwik/matomo cookie accessible by getting tracker
  3324. Piwik.getTracker();
  3325. // looping throught cookies
  3326. var theCookies = document.cookie.split(';');
  3327. for (var i = 1 ; i <= theCookies.length; i++) {
  3328. var cookie = theCookies[i-1].split('=');
  3329. var cookieName = cookie[0].trim();
  3330. // if cookie starts like a piwik one, register it
  3331. if (cookieName.indexOf('_pk_') === 0) {
  3332. tarteaucitron.services.matomo.cookies.push(cookieName);
  3333. }
  3334. }
  3335. }, 100)
  3336. }
  3337. };
  3338. tarteaucitron.services.matomohightrack = {
  3339. "key": "matomohightrack",
  3340. "type": "analytic",
  3341. "name": "Matomo",
  3342. "uri": "https://matomo.org/faq/general/faq_146/",
  3343. "needConsent": false,
  3344. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3345. "js": function () {
  3346. "use strict";
  3347. if (tarteaucitron.user.matomoId === undefined) {
  3348. return;
  3349. }
  3350. window._paq = window._paq || [];
  3351. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3352. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3353. window._paq.push(["trackPageView"]);
  3354. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3355. window._paq.push(["enableLinkTracking"]);
  3356. window._paq.push([function() {
  3357. var self = this;
  3358. }]);
  3359. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3360. // waiting for piwik to be ready to check first party cookies
  3361. var interval = setInterval(function() {
  3362. if (typeof Piwik === 'undefined') return
  3363. clearInterval(interval)
  3364. Piwik.getTracker();
  3365. var theCookies = document.cookie.split(';');
  3366. for (var i = 1 ; i <= theCookies.length; i++) {
  3367. var cookie = theCookies[i-1].split('=');
  3368. var cookieName = cookie[0].trim();
  3369. if (cookieName.indexOf('_pk_') === 0) {
  3370. tarteaucitron.services.matomo.cookies.push(cookieName);
  3371. }
  3372. }
  3373. }, 100)
  3374. }
  3375. };
  3376. // Hotjar
  3377. /*
  3378. 1. Set the following variable before the initialization :
  3379. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  3380. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  3381. 2. Push the service :
  3382. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  3383. 3. HTML
  3384. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  3385. */
  3386. tarteaucitron.services.hotjar = {
  3387. "key": "hotjar",
  3388. "type": "analytic",
  3389. "name": "Hotjar",
  3390. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  3391. "needConsent": true,
  3392. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage", "_hjAbsoluteSessionInProgress", "_hjIncludeInPageviewSample", "_hjid"],
  3393. "js": function () {
  3394. "use strict";
  3395. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  3396. return;
  3397. }
  3398. window.hj = window.hj || function() {
  3399. (window.hj.q = window.hj.q || []).push(arguments)
  3400. };
  3401. window._hjSettings = {
  3402. hjid: tarteaucitron.user.hotjarId,
  3403. hjsv: tarteaucitron.user.HotjarSv
  3404. };
  3405. var uri = 'https://static.hotjar.com/c/hotjar-';
  3406. var extension = '.js?sv=';
  3407. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  3408. }
  3409. };
  3410. // bing ads universal event tracking
  3411. tarteaucitron.services.bingads = {
  3412. 'key': 'bingads',
  3413. 'type': 'ads',
  3414. 'name': 'Bing Ads Universal Event Tracking',
  3415. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  3416. 'needConsent': true,
  3417. 'cookies': ['_uetmsclkid', '_uetvid', '_uetsid'],
  3418. 'js': function () {
  3419. 'use strict';
  3420. //var u = tarteaucitron.user.bingadsTag || 'uetq';
  3421. window.uetq = window.uetq || [];
  3422. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  3423. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  3424. if ('bingadsStoreCookies' in tarteaucitron.user) {
  3425. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  3426. }
  3427. bingadsCreate.q = window.uetq;
  3428. window.uetq = new UET(bingadsCreate);
  3429. window.uetq.push('pageLoad');
  3430. });
  3431. }
  3432. };
  3433. //Matterport
  3434. tarteaucitron.services.matterport = {
  3435. "key": "matterport",
  3436. "type": "other",
  3437. "name": "Matterport",
  3438. "uri": "https://matterport.com/es/legal/privacy-policy/",
  3439. "needConsent": true,
  3440. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  3441. "js": function () {
  3442. "use strict";
  3443. tarteaucitron.fallback(['matterport'], function (x) {
  3444. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Matterport iframe'),
  3445. matterport_id = x.getAttribute("matterportID"),
  3446. matterport_width = x.getAttribute("width"),
  3447. frame_width = 'width=',
  3448. matterport_height = x.getAttribute("height"),
  3449. frame_height = 'height=',
  3450. matterport_parameters = x.getAttribute("parameters"),
  3451. matterport_frame;
  3452. if (matterport_id === undefined) {
  3453. return "";
  3454. }
  3455. if (matterport_width !== undefined) {
  3456. frame_width += '"' + matterport_width + '" ';
  3457. } else {
  3458. frame_width += '"" ';
  3459. }
  3460. if (matterport_height !== undefined) {
  3461. frame_height += '"' + matterport_height + '" ';
  3462. } else {
  3463. frame_height += '"" ';
  3464. }
  3465. if (matterport_parameters === undefined) {
  3466. return "";
  3467. }
  3468. matterport_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="https://my.matterport.com/show/?m=' + matterport_id + '&utm_source=hit-content' + matterport_parameters + '" allowfullscreen="allowfullscreen"></iframe>';
  3469. return matterport_frame;
  3470. });
  3471. },
  3472. "fallback": function () {
  3473. "use strict";
  3474. var id = 'matterport';
  3475. tarteaucitron.fallback(['matterport'], function (elem) {
  3476. elem.style.width = elem.getAttribute('width') + 'px';
  3477. elem.style.height = elem.getAttribute('height') + 'px';
  3478. return tarteaucitron.engage(id);
  3479. });
  3480. }
  3481. };
  3482. // Adform
  3483. tarteaucitron.services.adform = {
  3484. "key": "adform",
  3485. "type": "ads",
  3486. "name": "Adform",
  3487. "uri": "https://site.adform.com/privacy-center/overview/",
  3488. "needConsent": true,
  3489. "cookies": [],
  3490. "js": function () {
  3491. "use strict";
  3492. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  3493. return;
  3494. }
  3495. window._adftrack = {
  3496. pm: tarteaucitron.user.adformpm,
  3497. divider: encodeURIComponent('|'),
  3498. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  3499. };
  3500. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  3501. }
  3502. };
  3503. // Active Campaign
  3504. tarteaucitron.services.activecampaign = {
  3505. "key": "activecampaign",
  3506. "type": "ads",
  3507. "name": "Active Campaign",
  3508. "uri": "https://www.activecampaign.com/privacy-policy/",
  3509. "needConsent": true,
  3510. "cookies": [],
  3511. "js": function () {
  3512. "use strict";
  3513. if (tarteaucitron.user.actid === undefined) {
  3514. return;
  3515. }
  3516. window.trackcmp_email = '';
  3517. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  3518. }
  3519. };
  3520. // tawk.to
  3521. tarteaucitron.services.tawkto = {
  3522. "key": "tawkto",
  3523. "type": "support",
  3524. "name": "Tawk.to chat",
  3525. "uri": "https://www.tawk.to/data-protection/",
  3526. "needConsent": true,
  3527. "cookies": [],
  3528. "js": function () {
  3529. "use strict";
  3530. if (tarteaucitron.user.tawktoId === undefined) {
  3531. return;
  3532. }
  3533. window.Tawk_API=window.Tawk_API||{};
  3534. window.Tawk_LoadStart=new Date();
  3535. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  3536. }
  3537. };
  3538. // getquanty
  3539. tarteaucitron.services.getquanty = {
  3540. "key": "getquanty",
  3541. "type": "analytic",
  3542. "name": "GetQuanty",
  3543. "uri": "https://www.getquanty.com/mentions-legales/",
  3544. "needConsent": true,
  3545. "cookies": ['_first_pageview', 'eqy_sessionid', 'eqy_siteid','cluid','eqy_company', 'cluid', 'gq_utm', '_jsuid'],
  3546. "js": function () {
  3547. "use strict";
  3548. if (tarteaucitron.user.getguanty === undefined) {
  3549. return;
  3550. }
  3551. tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '&consent=1');
  3552. },
  3553. "fallback": function () {
  3554. "use strict";
  3555. if (tarteaucitron.user.getguanty === undefined) {
  3556. return;
  3557. }
  3558. tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '&notrack=1');
  3559. }
  3560. };
  3561. // emolytics
  3562. tarteaucitron.services.emolytics = {
  3563. "key": "emolytics",
  3564. "type": "analytic",
  3565. "name": "Emolytics",
  3566. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  3567. "needConsent": true,
  3568. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  3569. "js": function () {
  3570. "use strict";
  3571. if (tarteaucitron.user.emolyticsID === undefined) {
  3572. return;
  3573. }
  3574. var scriptEmolytics = document.createElement('script');
  3575. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  3576. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  3577. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  3578. }
  3579. };
  3580. // youtubeapi
  3581. tarteaucitron.services.youtubeapi = {
  3582. "key": "youtubeapi",
  3583. "type": "video",
  3584. "name": "Youtube (Js API)",
  3585. "uri": "https://policies.google.com/privacy/",
  3586. "needConsent": true,
  3587. "cookies": [],
  3588. "js": function () {
  3589. "use strict";
  3590. tarteaucitron.addScript('https://www.youtube.com/player_api');
  3591. }
  3592. };
  3593. // Facil'ITI
  3594. tarteaucitron.services.faciliti = {
  3595. "key": "faciliti",
  3596. "type": "other",
  3597. "name": "Facil'ITI",
  3598. "uri": "https://ws.facil-iti.com/mentions-legales.html",
  3599. "needConsent": true,
  3600. "cookies": ['FACIL_ITI_LS'],
  3601. "js": function () {
  3602. "use strict";
  3603. if (tarteaucitron.user.facilitiID === undefined) {
  3604. return;
  3605. }
  3606. (function(w, d, s, f) {
  3607. w[f] = w[f] || {conf: function () { (w[f].data = w[f].data || []).push(arguments);}};
  3608. var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
  3609. l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
  3610. }(window, document, 'script', 'FACIL_ITI'));
  3611. FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
  3612. }
  3613. };
  3614. // userlike
  3615. tarteaucitron.services.userlike = {
  3616. "key": "userlike",
  3617. "type": "support",
  3618. "name": "Userlike",
  3619. "uri": "https://www.userlike.com/en/terms#privacy-policy",
  3620. "needConsent": true,
  3621. "cookies": ['uslk_s', 'uslk_e'],
  3622. "js": function () {
  3623. "use strict";
  3624. if (tarteaucitron.user.userlikeKey === undefined) {
  3625. return;
  3626. }
  3627. tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
  3628. }
  3629. };
  3630. // adobeanalytics
  3631. tarteaucitron.services.adobeanalytics = {
  3632. "key": "adobeanalytics",
  3633. "type": "analytic",
  3634. "name": "Adobe Analytics",
  3635. "uri": "https://www.adobe.com/privacy/policy.html",
  3636. "needConsent": true,
  3637. "cookies": ['s_ecid', 's_cc', 's_sq', 's_vi', 's_fid'],
  3638. "js": function () {
  3639. "use strict";
  3640. if (tarteaucitron.user.adobeanalyticskey === undefined) {
  3641. return;
  3642. }
  3643. tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js');
  3644. }
  3645. };
  3646. // woopra customer journey analytics
  3647. tarteaucitron.services.woopra = {
  3648. 'key': 'woopra',
  3649. 'type': 'analytic',
  3650. 'name': 'Woopra Customer Journey Analytics',
  3651. 'uri': 'https://www.woopra.com/privacy',
  3652. 'needConsent': true,
  3653. 'cookies': ['wooTracker', 'intercom-session-erbfalba', 'intercom-id-erbfalba'],
  3654. 'js': function () {
  3655. 'use strict';
  3656. //var w = tarteaucitron.user.woopraDomain;
  3657. //window[w] = window[w] || [];
  3658. (function(){
  3659. var t,i,e,n=window,o=document,a=arguments,s="script",r=["config","track","identify","visit","push","call","trackForm","trackClick"],c=function(){var t,i=this;for(i._e=[],t=0;r.length>t;t++)(function(t){i[t]=function(){return i._e.push([t].concat(Array.prototype.slice.call(arguments,0))),i}})(r[t])};for(n._w=n._w||{},t=0;a.length>t;t++)n._w[a[t]]=n[a[t]]=n[a[t]]||new c;i=o.createElement(s),i.async=1,i.src="//static.woopra.com/js/w.js",e=o.getElementsByTagName(s)[0],e.parentNode.insertBefore(i,e)
  3660. })("woopra");
  3661. woopra.config({
  3662. domain: tarteaucitron.user.woopraDomain
  3663. });
  3664. woopra.track();
  3665. }
  3666. };
  3667. // ausha
  3668. tarteaucitron.services.ausha = {
  3669. key: "ausha",
  3670. type: "video",
  3671. name: "Ausha",
  3672. uri: "https://www.ausha.co/protection-personal-data/",
  3673. needConsent: true,
  3674. cookies: [],
  3675. js: function () {
  3676. "use strict";
  3677. tarteaucitron.fallback(['ausha_player'], function (x) {
  3678. var player_height = x.getAttribute('data-height'),
  3679. podcast_id = x.getAttribute('data-podcast-id'),
  3680. player_id = x.getAttribute('data-player-id'),
  3681. playlist = x.getAttribute('data-playlist'),
  3682. color = x.getAttribute('data-color');
  3683. if (podcast_id === undefined) {
  3684. return "";
  3685. }
  3686. var src = 'https://player.ausha.co/index.html?podcastId=' + podcast_id + '&v=3';
  3687. if (playlist && playlist.length > 0) src += '&playlist=' + playlist;
  3688. if (color && color.length > 0) src += '&color=' + color.replace('#', '%23');
  3689. if (player_id && player_id.length > 0) src += '&playerId=' + player_id;
  3690. return '<iframe id="' + player_id + '" loading="lazy" width="100%" height="' + player_height + '" scrolling="no" frameborder="no" src="' + src + '"></iframe>';
  3691. });
  3692. tarteaucitron.addScript('//player.ausha.co/ausha-player.js', 'ausha-player');
  3693. },
  3694. fallback: function () {
  3695. "use strict";
  3696. tarteaucitron.fallback(['ausha_player'], function (elem) {
  3697. elem.style.height = elem.getAttribute('data-height') + 'px';
  3698. return tarteaucitron.engage('ausha');
  3699. });
  3700. }
  3701. };