tarteaucitron.services.js 150 KB

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