tarteaucitron.services.js 138 KB

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