tarteaucitron.services.js 148 KB

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