tarteaucitron.services.js 149 KB

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