tarteaucitron.services.js 148 KB

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