tarteaucitron.services.js 151 KB

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