tarteaucitron.services.js 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795
  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 + '" frameborder="0" 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 id="haWidget" src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" 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 src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" 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/help/325807937506242",
  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 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 + '" frameborder="0" 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_sharing_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_sharing_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 style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" 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 src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" 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 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 + '" frameborder="0" 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 src="//www.dailymotion.com/embed/' + embed_type + '/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" 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 src="' + url + '&r=' + r + '&p=' + p + '&cf0=' + cf0 + '&langue=' + langue + '&forward_affiliate=' + forward_affiliate + '&cf2=' + cf2 + '&cfsa2=' + cfsa2 + '" width="' + width + '" height="' + height + '" frameborder="0" 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. // leadforensics
  844. tarteaucitron.services.leadforensics = {
  845. "key": "leadforensics",
  846. "type": "analytic",
  847. "name": "LeadForensics",
  848. "uri": "https://www.leadforensics.com/privacy-policy/",
  849. "needConsent": true,
  850. "cookies": ['trackalyzer'],
  851. "js": function () {
  852. "use strict";
  853. if (tarteaucitron.user.leadforensicsSf14gv === undefined ||
  854. tarteaucitron.user.leadforensicsIidentifier === undefined) {
  855. return;
  856. }
  857. window.sf14gv = tarteaucitron.user.leadforensicsSf14gv;
  858. (function() {
  859. var sf14g = document.createElement('script'); sf14g.async = true;
  860. sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js';
  861. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s);
  862. })();
  863. tarteaucitron.addScript('//secure.leadforensics.com/js/' + tarteaucitron.user.leadforensicsIidentifier + '.js');
  864. }
  865. };
  866. // disqus
  867. tarteaucitron.services.disqus = {
  868. "key": "disqus",
  869. "type": "comment",
  870. "name": "Disqus",
  871. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  872. "needConsent": true,
  873. "cookies": [],
  874. "js": function () {
  875. "use strict";
  876. if (tarteaucitron.user.disqusShortname === undefined) {
  877. return;
  878. }
  879. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  880. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  881. },
  882. "fallback": function () {
  883. "use strict";
  884. var id = 'disqus';
  885. if (document.getElementById('disqus_thread')) {
  886. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  887. }
  888. }
  889. };
  890. // ekomi
  891. tarteaucitron.services.ekomi = {
  892. "key": "ekomi",
  893. "type": "social",
  894. "name": "eKomi",
  895. "uri": "http://www.ekomi-us.com/us/privacy/",
  896. "needConsent": true,
  897. "cookies": [],
  898. "js": function () {
  899. "use strict";
  900. if (tarteaucitron.user.ekomiCertId === undefined) {
  901. return;
  902. }
  903. window.eKomiIntegrationConfig = [
  904. {certId: tarteaucitron.user.ekomiCertId}
  905. ];
  906. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  907. }
  908. };
  909. // etracker
  910. tarteaucitron.services.etracker = {
  911. "key": "etracker",
  912. "type": "analytic",
  913. "name": "eTracker",
  914. "uri": "https://www.etracker.com/en/data-protection.html",
  915. "needConsent": true,
  916. "cookies": [],
  917. "js": function () {
  918. "use strict";
  919. if (tarteaucitron.user.etracker === undefined) {
  920. return;
  921. }
  922. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  923. }
  924. };
  925. // facebook
  926. tarteaucitron.services.facebook = {
  927. "key": "facebook",
  928. "type": "social",
  929. "name": "Facebook",
  930. "uri": "https://www.facebook.com/policies/cookies/",
  931. "needConsent": true,
  932. "cookies": [],
  933. "js": function () {
  934. "use strict";
  935. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], '');
  936. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  937. if (tarteaucitron.isAjax === true) {
  938. if (typeof FB !== "undefined") {
  939. FB.XFBML.parse();
  940. }
  941. }
  942. },
  943. "fallback": function () {
  944. "use strict";
  945. var id = 'facebook';
  946. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id));
  947. }
  948. };
  949. // facebooklikebox
  950. tarteaucitron.services.facebooklikebox = {
  951. "key": "facebooklikebox",
  952. "type": "social",
  953. "name": "Facebook (like box)",
  954. "uri": "https://www.facebook.com/policies/cookies/",
  955. "needConsent": true,
  956. "cookies": [],
  957. "js": function () {
  958. "use strict";
  959. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  960. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  961. if (tarteaucitron.isAjax === true) {
  962. if (typeof FB !== "undefined") {
  963. FB.XFBML.parse();
  964. }
  965. }
  966. },
  967. "fallback": function () {
  968. "use strict";
  969. var id = 'facebooklikebox';
  970. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  971. }
  972. };
  973. // facebookcomment
  974. tarteaucitron.services.facebookcomment = {
  975. "key": "facebookcomment",
  976. "type": "comment",
  977. "name": "Facebook (commentaire)",
  978. "uri": "https://www.facebook.com/policies/cookies/",
  979. "needConsent": true,
  980. "cookies": [],
  981. "js": function () {
  982. "use strict";
  983. tarteaucitron.fallback(['fb-comments'], '');
  984. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  985. if (tarteaucitron.isAjax === true) {
  986. if (typeof FB !== "undefined") {
  987. FB.XFBML.parse();
  988. }
  989. }
  990. },
  991. "fallback": function () {
  992. "use strict";
  993. var id = 'facebookcomment';
  994. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  995. }
  996. };
  997. // ferank
  998. tarteaucitron.services.ferank = {
  999. "key": "ferank",
  1000. "type": "analytic",
  1001. "name": "FERank",
  1002. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  1003. "needConsent": false,
  1004. "cookies": [],
  1005. "js": function () {
  1006. "use strict";
  1007. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  1008. if (typeof tarteaucitron.user.ferankMore === 'function') {
  1009. tarteaucitron.user.ferankMore();
  1010. }
  1011. });
  1012. }
  1013. };
  1014. // pingdom
  1015. tarteaucitron.services.pingdom = {
  1016. "key": "pingdom",
  1017. "type": "api",
  1018. "name": "Pingdom",
  1019. "uri": "https://www.solarwinds.com/general-data-protection-regulation-cloud",
  1020. "needConsent": true,
  1021. "cookies": [],
  1022. "js": function () {
  1023. "use strict";
  1024. if (tarteaucitron.user.pingdomId === undefined) {
  1025. return;
  1026. }
  1027. window._prum = [['id', tarteaucitron.user.pingdomId], ['mark', 'firstbyte', (new Date()).getTime()]];
  1028. tarteaucitron.addScript('https://rum-static.pingdom.net/prum.min.js');
  1029. }
  1030. };
  1031. // simpleanalytics
  1032. tarteaucitron.services.simpleanalytics = {
  1033. "key": "simpleanalytics",
  1034. "type": "analytic",
  1035. "name": "Simple Analytics",
  1036. "uri": "https://docs.simpleanalytics.com/what-we-collect",
  1037. "needConsent": false,
  1038. "cookies": [],
  1039. "js": function () {
  1040. "use strict";
  1041. tarteaucitron.addScript('https://scripts.simpleanalyticscdn.com/latest.js');
  1042. }
  1043. };
  1044. // stonly
  1045. tarteaucitron.services.stonly = {
  1046. "key": "stonly",
  1047. "type": "api",
  1048. "name": "Stonly",
  1049. "uri": "https://stonly.com/privacy",
  1050. "needConsent": true,
  1051. "cookies": [],
  1052. "js": function () {
  1053. "use strict";
  1054. if (tarteaucitron.user.stonlyId === undefined) {
  1055. return;
  1056. }
  1057. window.STONLY_WID = tarteaucitron.user.stonlyId;
  1058. window.StonlyWidget || ((window.w = window.StonlyWidget = function() {
  1059. window.w._api ? window.w._api.apply(window.w, arguments) : window.w.queue.push(arguments)
  1060. }).queue = []);
  1061. tarteaucitron.addScript('https://stonly.com/js/widget/v2/stonly-widget.js?v=' + Date.now());
  1062. }
  1063. };
  1064. // stripe
  1065. /*tarteaucitron.services.stripe = {
  1066. "key": "stripe",
  1067. "type": "api",
  1068. "name": "Stripe",
  1069. "uri": "https://stripe.com/cookies-policy/legal",
  1070. "needConsent": true,
  1071. "cookies": [],
  1072. "js": function () {
  1073. "use strict";
  1074. tarteaucitron.addScript('https://js.stripe.com/v3/');
  1075. }
  1076. };*/
  1077. // ferank pub
  1078. tarteaucitron.services.ferankpub = {
  1079. "key": "ferankpub",
  1080. "type": "ads",
  1081. "name": "FERank (pub)",
  1082. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  1083. "needConsent": false,
  1084. "cookies": [],
  1085. "js": function () {
  1086. "use strict";
  1087. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  1088. if (tarteaucitron.isAjax === true) {
  1089. if (typeof ferankReady === 'function') {
  1090. ferankReady();
  1091. }
  1092. }
  1093. },
  1094. "fallback": function () {
  1095. "use strict";
  1096. var id = 'ferankpub';
  1097. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  1098. }
  1099. };
  1100. // get+
  1101. tarteaucitron.services.getplus = {
  1102. "key": "getplus",
  1103. "type": "analytic",
  1104. "name": "Get+",
  1105. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  1106. "needConsent": true,
  1107. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  1108. "js": function () {
  1109. "use strict";
  1110. if (tarteaucitron.user.getplusId === undefined) {
  1111. return;
  1112. }
  1113. window.webleads_site_ids = window.webleads_site_ids || [];
  1114. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  1115. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  1116. }
  1117. };
  1118. // google+
  1119. tarteaucitron.services.gplus = {
  1120. "key": "gplus",
  1121. "type": "social",
  1122. "name": "Google+",
  1123. "uri": "https://policies.google.com/privacy",
  1124. "needConsent": true,
  1125. "cookies": [],
  1126. "js": function () {
  1127. "use strict";
  1128. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1129. },
  1130. "fallback": function () {
  1131. "use strict";
  1132. var id = 'gplus';
  1133. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  1134. }
  1135. };
  1136. // google+ badge
  1137. tarteaucitron.services.gplusbadge = {
  1138. "key": "gplusbadge",
  1139. "type": "social",
  1140. "name": "Google+ (badge)",
  1141. "uri": "https://policies.google.com/privacy",
  1142. "needConsent": true,
  1143. "cookies": [],
  1144. "js": function () {
  1145. "use strict";
  1146. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1147. },
  1148. "fallback": function () {
  1149. "use strict";
  1150. var id = 'gplusbadge';
  1151. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  1152. }
  1153. };
  1154. // google adsense
  1155. tarteaucitron.services.adsense = {
  1156. "key": "adsense",
  1157. "type": "ads",
  1158. "name": "Google Adsense",
  1159. "uri": "https://adssettings.google.com/",
  1160. "needConsent": true,
  1161. "cookies": [],
  1162. "js": function () {
  1163. "use strict";
  1164. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  1165. },
  1166. "fallback": function () {
  1167. "use strict";
  1168. var id = 'adsense';
  1169. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  1170. }
  1171. };
  1172. // google partners badge
  1173. tarteaucitron.services.googlepartners = {
  1174. "key": "googlepartners",
  1175. "type": "ads",
  1176. "name": "Google Partners Badge",
  1177. "uri": "https://adssettings.google.com/",
  1178. "needConsent": true,
  1179. "cookies": [],
  1180. "js": function () {
  1181. "use strict";
  1182. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1183. },
  1184. "fallback": function () {
  1185. "use strict";
  1186. var id = 'googlepartners';
  1187. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  1188. }
  1189. };
  1190. // google adsense search (form)
  1191. tarteaucitron.services.adsensesearchform = {
  1192. "key": "adsensesearchform",
  1193. "type": "ads",
  1194. "name": "Google Adsense Search (form)",
  1195. "uri": "https://adssettings.google.com/",
  1196. "needConsent": true,
  1197. "cookies": [],
  1198. "js": function () {
  1199. "use strict";
  1200. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  1201. }
  1202. };
  1203. // google adsense search (result)
  1204. tarteaucitron.services.adsensesearchresult = {
  1205. "key": "adsensesearchresult",
  1206. "type": "ads",
  1207. "name": "Google Adsense Search (result)",
  1208. "uri": "https://adssettings.google.com/",
  1209. "needConsent": true,
  1210. "cookies": [],
  1211. "js": function () {
  1212. "use strict";
  1213. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  1214. return;
  1215. }
  1216. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  1217. },
  1218. "fallback": function () {
  1219. "use strict";
  1220. var id = 'adsensesearchresult';
  1221. if (document.getElementById('gcse_searchresults')) {
  1222. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  1223. }
  1224. }
  1225. };
  1226. // googleadwordsconversion
  1227. tarteaucitron.services.googleadwordsconversion = {
  1228. "key": "googleadwordsconversion",
  1229. "type": "ads",
  1230. "name": "Google Adwords (conversion)",
  1231. "uri": "https://www.google.com/settings/ads",
  1232. "needConsent": true,
  1233. "cookies": [],
  1234. "js": function () {
  1235. "use strict";
  1236. if (tarteaucitron.user.adwordsconversionId === undefined) {
  1237. return;
  1238. }
  1239. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1240. window.google_trackConversion({
  1241. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  1242. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  1243. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  1244. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  1245. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  1246. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  1247. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  1248. google_custom_params: {
  1249. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  1250. parameter2: tarteaucitron.user.adwordsconversionCustom2
  1251. }
  1252. });
  1253. });
  1254. }
  1255. };
  1256. // googleadwordsremarketing
  1257. tarteaucitron.services.googleadwordsremarketing = {
  1258. "key": "googleadwordsremarketing",
  1259. "type": "ads",
  1260. "name": "Google Adwords (remarketing)",
  1261. "uri": "https://www.google.com/settings/ads",
  1262. "needConsent": true,
  1263. "cookies": [],
  1264. "js": function () {
  1265. "use strict";
  1266. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  1267. return;
  1268. }
  1269. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1270. window.google_trackConversion({
  1271. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  1272. google_remarketing_only: true
  1273. });
  1274. });
  1275. }
  1276. };
  1277. // google analytics (old)
  1278. tarteaucitron.services.gajs = {
  1279. "key": "gajs",
  1280. "type": "analytic",
  1281. "name": "Google Analytics (ga.js)",
  1282. "uri": "https://support.google.com/analytics/answer/6004245",
  1283. "needConsent": true,
  1284. "cookies": (function () {
  1285. var googleIdentifier = tarteaucitron.user.gajsUa,
  1286. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1287. tagGCookie = '_ga_' + googleIdentifier;
  1288. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1289. tagGCookie = tagGCookie.replace(/G-/g, '');
  1290. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
  1291. })(),
  1292. "js": function () {
  1293. "use strict";
  1294. window._gaq = window._gaq || [];
  1295. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  1296. if (tarteaucitron.user.gajsAnonymizeIp) {
  1297. window._gaq.push (['_gat._anonymizeIp']);
  1298. }
  1299. if (tarteaucitron.user.gajsPageView) {
  1300. window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
  1301. } else {
  1302. window._gaq.push(['_trackPageview']);
  1303. }
  1304. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  1305. if (typeof tarteaucitron.user.gajsMore === 'function') {
  1306. tarteaucitron.user.gajsMore();
  1307. }
  1308. });
  1309. }
  1310. };
  1311. // google analytics
  1312. tarteaucitron.services.analytics = {
  1313. "key": "analytics",
  1314. "type": "analytic",
  1315. "name": "Google Analytics (universal)",
  1316. "uri": "https://support.google.com/analytics/answer/6004245",
  1317. "needConsent": true,
  1318. "cookies": (function () {
  1319. var googleIdentifier = tarteaucitron.user.analyticsUa,
  1320. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1321. tagGCookie = '_ga_' + googleIdentifier;
  1322. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1323. tagGCookie = tagGCookie.replace(/G-/g, '');
  1324. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
  1325. })(),
  1326. "js": function () {
  1327. "use strict";
  1328. window.GoogleAnalyticsObject = 'ga';
  1329. window.ga = window.ga || function () {
  1330. window.ga.q = window.ga.q || [];
  1331. window.ga.q.push(arguments);
  1332. };
  1333. window.ga.l = new Date();
  1334. tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
  1335. var uaCreate = {'cookieExpires': 34128000};
  1336. tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
  1337. ga('create', tarteaucitron.user.analyticsUa, uaCreate);
  1338. if (tarteaucitron.user.analyticsAnonymizeIp) {
  1339. ga('set', 'anonymizeIp', true);
  1340. }
  1341. if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
  1342. tarteaucitron.user.analyticsPrepare();
  1343. }
  1344. if (tarteaucitron.user.analyticsPageView) {
  1345. ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
  1346. } else {
  1347. ga('send', 'pageview');
  1348. }
  1349. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  1350. tarteaucitron.user.analyticsMore();
  1351. }
  1352. });
  1353. }
  1354. };
  1355. // google analytics
  1356. tarteaucitron.services.gtag = {
  1357. "key": "gtag",
  1358. "type": "analytic",
  1359. "name": "Google Analytics (gtag.js)",
  1360. "uri": "https://support.google.com/analytics/answer/6004245",
  1361. "needConsent": true,
  1362. "cookies": (function () {
  1363. var googleIdentifier = tarteaucitron.user.gtagUa,
  1364. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1365. tagGCookie = '_ga_' + googleIdentifier;
  1366. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1367. tagGCookie = tagGCookie.replace(/G-/g, '');
  1368. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
  1369. })(),
  1370. "js": function () {
  1371. "use strict";
  1372. window.dataLayer = window.dataLayer || [];
  1373. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  1374. window.gtag = function gtag(){dataLayer.push(arguments);}
  1375. gtag('js', new Date());
  1376. gtag('config', tarteaucitron.user.gtagUa);
  1377. if (typeof tarteaucitron.user.gtagMore === 'function') {
  1378. tarteaucitron.user.gtagMore();
  1379. }
  1380. });
  1381. }
  1382. };
  1383. // google maps
  1384. tarteaucitron.services.googlemaps = {
  1385. "key": "googlemaps",
  1386. "type": "api",
  1387. "name": "Google Maps",
  1388. "uri": "https://adssettings.google.com/",
  1389. "needConsent": true,
  1390. "cookies": [],
  1391. "js": function () {
  1392. "use strict";
  1393. var mapOptions,
  1394. map,
  1395. uniqIds = [],
  1396. i;
  1397. if (tarteaucitron.user.mapscallback === undefined) {
  1398. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1399. }
  1400. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1401. var googleMapsLibraries = '';
  1402. if (tarteaucitron.user.googlemapsLibraries) {
  1403. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1404. }
  1405. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback + googleMapsLibraries);
  1406. window.tac_googlemaps_callback = function () {
  1407. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1408. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1409. uniqIds.push(uniqId);
  1410. 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>';
  1411. });
  1412. for (i = 0; i < uniqIds.length; i += 1) {
  1413. mapOptions = {
  1414. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1415. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1416. };
  1417. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1418. 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});
  1419. }
  1420. };
  1421. },
  1422. "fallback": function () {
  1423. "use strict";
  1424. var id = 'googlemaps';
  1425. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1426. }
  1427. };
  1428. // googlemaps search
  1429. tarteaucitron.services.googlemapssearch = {
  1430. "key": "googlemapssearch",
  1431. "type": "api",
  1432. "name": "Google Maps Search API",
  1433. "uri": "https://adssettings.google.com/",
  1434. "needConsent": true,
  1435. "cookies": ['nid'],
  1436. "js": function () {
  1437. "use strict";
  1438. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1439. var width = x.getAttribute("width"),
  1440. height = x.getAttribute("height"),
  1441. // url = x.getAttribute("data-url");
  1442. query = escape(x.getAttribute("data-search")),
  1443. key = x.getAttribute("data-api-key");
  1444. // return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1445. return '<iframe width="' + width +'" height="' + height + '" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q='+query+'&key='+key+'" allowfullscreen></iframe> '
  1446. });
  1447. },
  1448. "fallback": function () {
  1449. "use strict";
  1450. var id = 'googlemapssearch';
  1451. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1452. elem.style.width = elem.getAttribute('width') + 'px';
  1453. elem.style.height = elem.getAttribute('height') + 'px';
  1454. return tarteaucitron.engage(id);
  1455. });
  1456. }
  1457. };
  1458. // googlemaps embed iframe
  1459. tarteaucitron.services.googlemapsembed = {
  1460. "key": "googlemapsembed",
  1461. "type": "api",
  1462. "name": "Google Maps Embed",
  1463. "uri": "https://adssettings.google.com/",
  1464. "needConsent": true,
  1465. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1466. "js": function () {
  1467. "use strict";
  1468. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1469. var width = tarteaucitron.getElemWidth(x),
  1470. height = tarteaucitron.getElemHeight(x),
  1471. url = x.getAttribute("data-url");
  1472. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1473. });
  1474. },
  1475. "fallback": function () {
  1476. "use strict";
  1477. var id = 'googlemapsembed';
  1478. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1479. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1480. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1481. return tarteaucitron.engage(id);
  1482. });
  1483. }
  1484. };
  1485. // google tag manager
  1486. tarteaucitron.services.googletagmanager = {
  1487. "key": "googletagmanager",
  1488. "type": "api",
  1489. "name": "Google Tag Manager",
  1490. "uri": "https://adssettings.google.com/",
  1491. "needConsent": true,
  1492. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1493. "js": function () {
  1494. "use strict";
  1495. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1496. return;
  1497. }
  1498. window.dataLayer = window.dataLayer || [];
  1499. window.dataLayer.push({
  1500. 'gtm.start': new Date().getTime(),
  1501. event: 'gtm.js'
  1502. });
  1503. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1504. }
  1505. };
  1506. // google tag manager multiple
  1507. tarteaucitron.services.multiplegoogletagmanager = {
  1508. "key": "multiplegoogletagmanager",
  1509. "type": "api",
  1510. "name": "Google Tag Manager",
  1511. "uri": "https://adssettings.google.com/",
  1512. "needConsent": true,
  1513. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1514. "js": function () {
  1515. "use strict";
  1516. if (tarteaucitron.user.multiplegoogletagmanagerId === undefined) {
  1517. return;
  1518. }
  1519. window.dataLayer = window.dataLayer || [];
  1520. window.dataLayer.push({
  1521. 'gtm.start': new Date().getTime(),
  1522. event: 'gtm.js'
  1523. });
  1524. tarteaucitron.user.multiplegoogletagmanagerId.forEach(function (id) {
  1525. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + id);
  1526. });
  1527. }
  1528. };
  1529. // google webfonts
  1530. tarteaucitron.services.googlefonts = {
  1531. "key": "googlefonts",
  1532. "type": "api",
  1533. "name": "Google Webfonts",
  1534. "uri": "https://www.google.com/intl/de/policies/privacy/",
  1535. "needConsent": true,
  1536. "cookies": [],
  1537. "js": function () {
  1538. "use strict";
  1539. if (tarteaucitron.user.googleFonts === undefined) {
  1540. return;
  1541. }
  1542. tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
  1543. WebFont.load({
  1544. google: {
  1545. families: tarteaucitron.user.googleFonts
  1546. }
  1547. });
  1548. });
  1549. }
  1550. };
  1551. // hubspot
  1552. tarteaucitron.services.hubspot = {
  1553. "key": "hubspot",
  1554. "type": "analytic",
  1555. "name": "Hubspot",
  1556. "uri": "https://legal.hubspot.com/privacy-policy",
  1557. "needConsent": true,
  1558. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1559. "js": function () {
  1560. "use strict";
  1561. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1562. }
  1563. };
  1564. // jsapi
  1565. tarteaucitron.services.jsapi = {
  1566. "key": "jsapi",
  1567. "type": "api",
  1568. "name": "Google jsapi",
  1569. "uri": "https://policies.google.com/privacy",
  1570. "needConsent": true,
  1571. "cookies": [],
  1572. "js": function () {
  1573. "use strict";
  1574. tarteaucitron.addScript('//www.google.com/jsapi');
  1575. }
  1576. };
  1577. // twitterwidgetsapi
  1578. tarteaucitron.services.twitterwidgetsapi = {
  1579. "key": "twitterwidgetsapi",
  1580. "type": "api",
  1581. "name": "Twitter Widgets API",
  1582. "uri": "https://support.twitter.com/articles/20170514",
  1583. "needConsent": true,
  1584. "cookies": [],
  1585. "js": function () {
  1586. "use strict";
  1587. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1588. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1589. },
  1590. "fallback": function () {
  1591. "use strict";
  1592. var id = 'twitterwidgetsapi';
  1593. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1594. }
  1595. };
  1596. // recaptcha
  1597. tarteaucitron.services.recaptcha = {
  1598. "key": "recaptcha",
  1599. "type": "api",
  1600. "name": "reCAPTCHA",
  1601. "uri": "https://policies.google.com/privacy",
  1602. "needConsent": true,
  1603. "cookies": ['nid'],
  1604. "js": function () {
  1605. "use strict";
  1606. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
  1607. tarteaucitron.fallback(['g-recaptcha'], '');
  1608. if (tarteaucitron.user.recaptchaapi === undefined) {
  1609. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  1610. } else {
  1611. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad&render=' + tarteaucitron.user.recaptchaapi);
  1612. }
  1613. },
  1614. "fallback": function () {
  1615. "use strict";
  1616. var id = 'recaptcha';
  1617. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1618. }
  1619. };
  1620. // linkedin
  1621. tarteaucitron.services.linkedin = {
  1622. "key": "linkedin",
  1623. "type": "social",
  1624. "name": "Linkedin",
  1625. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1626. "needConsent": true,
  1627. "cookies": [],
  1628. "js": function () {
  1629. "use strict";
  1630. tarteaucitron.fallback(['tacLinkedin'], '');
  1631. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1632. if (tarteaucitron.isAjax === true) {
  1633. if (typeof IN !== "undefined") {
  1634. IN.parse();
  1635. }
  1636. }
  1637. },
  1638. "fallback": function () {
  1639. "use strict";
  1640. var id = 'linkedin';
  1641. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1642. }
  1643. };
  1644. // mautic
  1645. tarteaucitron.services.mautic = {
  1646. "key": "mautic",
  1647. "type": "analytic",
  1648. "name": "Mautic",
  1649. "uri": "https://www.mautic.org/privacy-policy/",
  1650. "needConsent": true,
  1651. "cookies": ['mtc_id', 'mtc_sid'],
  1652. "js": function () {
  1653. "use strict";
  1654. if (tarteaucitron.user.mauticurl === undefined) {
  1655. return;
  1656. }
  1657. window.MauticTrackingObject = 'mt';
  1658. window.mt = window.mt || function () {
  1659. window.mt.q = window.mt.q || [];
  1660. window.mt.q.push(arguments);
  1661. };
  1662. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1663. mt('send', 'pageview');
  1664. });
  1665. }
  1666. };
  1667. // microsoftcampaignanalytics
  1668. tarteaucitron.services.microsoftcampaignanalytics = {
  1669. "key": "microsoftcampaignanalytics",
  1670. "type": "analytic",
  1671. "name": "Microsoft Campaign Analytics",
  1672. "uri": "https://privacy.microsoft.com/privacystatement/",
  1673. "needConsent": true,
  1674. "cookies": [],
  1675. "js": function () {
  1676. "use strict";
  1677. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1678. return;
  1679. }
  1680. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1681. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1682. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1683. });
  1684. }
  1685. };
  1686. // onesignal
  1687. tarteaucitron.services.onesignal = {
  1688. "key": "onesignal",
  1689. "type": "api",
  1690. "name": "OneSignal",
  1691. "uri": "https://onesignal.com/privacy_policy",
  1692. "needConsent": true,
  1693. "cookies": [],
  1694. "js": function () {
  1695. "use strict";
  1696. if (tarteaucitron.user.onesignalAppId === undefined) {
  1697. return;
  1698. }
  1699. window.OneSignal = window.OneSignal || [];
  1700. window.OneSignal.push(function() {
  1701. window.OneSignal.init({
  1702. appId: tarteaucitron.user.onesignalAppId,
  1703. });
  1704. });
  1705. tarteaucitron.addScript('https://cdn.onesignal.com/sdks/OneSignalSDK.js');
  1706. }
  1707. };
  1708. // pinterest
  1709. tarteaucitron.services.pinterest = {
  1710. "key": "pinterest",
  1711. "type": "social",
  1712. "name": "Pinterest",
  1713. "uri": "https://about.pinterest.com/privacy-policy",
  1714. "needConsent": true,
  1715. "cookies": [],
  1716. "js": function () {
  1717. "use strict";
  1718. tarteaucitron.fallback(['tacPinterest'], '');
  1719. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1720. },
  1721. "fallback": function () {
  1722. "use strict";
  1723. var id = 'pinterest';
  1724. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1725. }
  1726. };
  1727. // prelinker
  1728. tarteaucitron.services.prelinker = {
  1729. "key": "prelinker",
  1730. "type": "ads",
  1731. "name": "Prelinker",
  1732. "uri": "http://www.prelinker.com/index/index/cgu/",
  1733. "needConsent": true,
  1734. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1735. "js": function () {
  1736. "use strict";
  1737. var uniqIds = [],
  1738. i,
  1739. uri;
  1740. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1741. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1742. uniqIds.push(uniqId);
  1743. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1744. });
  1745. for (i = 0; i < uniqIds.length; i += 1) {
  1746. uri = 'http://promo.easy-dating.org/banner/index?';
  1747. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1748. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1749. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1750. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1751. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1752. }
  1753. },
  1754. "fallback": function () {
  1755. "use strict";
  1756. var id = 'prelinker';
  1757. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1758. }
  1759. };
  1760. // prezi
  1761. tarteaucitron.services.prezi = {
  1762. "key": "prezi",
  1763. "type": "video",
  1764. "name": "Prezi",
  1765. "uri": "https://prezi.com/privacy-policy/",
  1766. "needConsent": true,
  1767. "cookies": [],
  1768. "js": function () {
  1769. "use strict";
  1770. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1771. var id = x.getAttribute("data-id"),
  1772. width = x.getAttribute("width"),
  1773. height = x.getAttribute("height"),
  1774. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1775. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1776. });
  1777. },
  1778. "fallback": function () {
  1779. "use strict";
  1780. var id = 'prezi';
  1781. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1782. elem.style.width = elem.getAttribute('width') + 'px';
  1783. elem.style.height = elem.getAttribute('height') + 'px';
  1784. return tarteaucitron.engage(id);
  1785. });
  1786. }
  1787. };
  1788. // pubdirecte
  1789. tarteaucitron.services.pubdirecte = {
  1790. "key": "pubdirecte",
  1791. "type": "ads",
  1792. "name": "Pubdirecte",
  1793. "uri": "http://pubdirecte.com/contact.php",
  1794. "needConsent": true,
  1795. "cookies": [],
  1796. "js": function () {
  1797. "use strict";
  1798. var uniqIds = [],
  1799. i,
  1800. uri;
  1801. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1802. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1803. uniqIds.push(uniqId);
  1804. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1805. });
  1806. for (i = 0; i < uniqIds.length; i += 1) {
  1807. uri = '//www.pubdirecte.com/script/banniere.php?';
  1808. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1809. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1810. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1811. }
  1812. },
  1813. "fallback": function () {
  1814. "use strict";
  1815. var id = 'pubdirecte';
  1816. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1817. }
  1818. };
  1819. // purechat
  1820. tarteaucitron.services.purechat = {
  1821. "key": "purechat",
  1822. "type": "support",
  1823. "name": "PureChat",
  1824. "uri": "https://www.purechat.com/privacy",
  1825. "needConsent": true,
  1826. "cookies": [],
  1827. "js": function () {
  1828. "use strict";
  1829. if (tarteaucitron.user.purechatId === undefined) {
  1830. return;
  1831. }
  1832. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1833. try {
  1834. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1835. } catch (e) {}
  1836. });
  1837. }
  1838. };
  1839. // rumbletalk
  1840. tarteaucitron.services.rumbletalk = {
  1841. "key": "rumbletalk",
  1842. "type": "social",
  1843. "name": "RumbleTalk",
  1844. "needConsent": true,
  1845. "cookies": ['AWSALB'],
  1846. "js": function () {
  1847. "use strict";
  1848. if (tarteaucitron.user.rumbletalkid === undefined) {
  1849. return;
  1850. }
  1851. tarteaucitron.addScript('https://rumbletalk.com/client/?' + tarteaucitron.user.rumbletalkid);
  1852. tarteaucitron.fallback(['rumbletalk'], function (x) {
  1853. var width = tarteaucitron.getElemWidth(x),
  1854. height = tarteaucitron.getElemHeight(x),
  1855. id = x.getAttribute("data-id");
  1856. return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
  1857. });
  1858. },
  1859. "fallback": function () {
  1860. "use strict";
  1861. var id = 'rumbletalk';
  1862. tarteaucitron.fallback(['rumbletalk'], function (elem) {
  1863. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1864. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1865. return tarteaucitron.engage(id);
  1866. });
  1867. }
  1868. };
  1869. // shareaholic
  1870. tarteaucitron.services.shareaholic = {
  1871. "key": "shareaholic",
  1872. "type": "social",
  1873. "name": "Shareaholic",
  1874. "uri": "https://shareaholic.com/privacy/choices",
  1875. "needConsent": true,
  1876. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1877. "js": function () {
  1878. "use strict";
  1879. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1880. return;
  1881. }
  1882. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1883. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1884. try {
  1885. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1886. } catch (e) {}
  1887. });
  1888. },
  1889. "fallback": function () {
  1890. "use strict";
  1891. var id = 'shareaholic';
  1892. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1893. }
  1894. };
  1895. // shareasale
  1896. tarteaucitron.services.shareasale = {
  1897. "key": "shareasale",
  1898. "type": "ads",
  1899. "name": "ShareASale",
  1900. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1901. "needConsent": true,
  1902. "cookies": [],
  1903. "js": function () {
  1904. "use strict";
  1905. var uniqIds = [],
  1906. i,
  1907. uri;
  1908. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1909. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1910. uniqIds.push(uniqId);
  1911. 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>';
  1912. });
  1913. for (i = 0; i < uniqIds.length; i += 1) {
  1914. uri = 'https://shareasale.com/sale.cfm?';
  1915. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1916. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1917. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1918. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1919. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1920. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1921. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1922. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1923. }
  1924. },
  1925. "fallback": function () {
  1926. "use strict";
  1927. var id = 'shareasale';
  1928. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1929. }
  1930. };
  1931. // sharethis
  1932. tarteaucitron.services.sharethis = {
  1933. "key": "sharethis",
  1934. "type": "social",
  1935. "name": "ShareThis",
  1936. "uri": "http://www.sharethis.com/legal/privacy/",
  1937. "needConsent": true,
  1938. "cookies": ['__unam'],
  1939. "js": function () {
  1940. "use strict";
  1941. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1942. return;
  1943. }
  1944. var switchTo5x = true,
  1945. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1946. tarteaucitron.fallback(['tacSharethis'], '');
  1947. tarteaucitron.addScript(uri, '', function () {
  1948. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1949. });
  1950. if (tarteaucitron.isAjax === true) {
  1951. if (typeof stButtons !== "undefined") {
  1952. stButtons.locateElements();
  1953. }
  1954. }
  1955. },
  1956. "fallback": function () {
  1957. "use strict";
  1958. var id = 'sharethis';
  1959. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1960. }
  1961. };
  1962. // slideshare
  1963. tarteaucitron.services.slideshare = {
  1964. "key": "slideshare",
  1965. "type": "video",
  1966. "name": "SlideShare",
  1967. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1968. "needConsent": true,
  1969. "cookies": [],
  1970. "js": function () {
  1971. "use strict";
  1972. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1973. var id = x.getAttribute("data-id"),
  1974. width = x.getAttribute("width"),
  1975. height = x.getAttribute("height"),
  1976. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1977. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1978. });
  1979. },
  1980. "fallback": function () {
  1981. "use strict";
  1982. var id = 'slideshare';
  1983. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1984. elem.style.width = elem.getAttribute('width') + 'px';
  1985. elem.style.height = elem.getAttribute('height') + 'px';
  1986. return tarteaucitron.engage(id);
  1987. });
  1988. }
  1989. };
  1990. // soundcloud
  1991. tarteaucitron.services.soundcloud = {
  1992. key: 'soundcloud',
  1993. type: 'video',
  1994. name: 'SoundCloud',
  1995. needConsent: true,
  1996. cookies: ['sc_anonymous_id'],
  1997. js: function () {
  1998. "use strict";
  1999. tarteaucitron.fallback(['soundcloud_player'], function (x) {
  2000. var player_height = x.getAttribute('data-height'),
  2001. frame_height = 'height="' + player_height + '" ',
  2002. playable_id = x.getAttribute('data-playable-id'),
  2003. playable_type = x.getAttribute('data-playable-type'),
  2004. color = x.getAttribute('data-color'),
  2005. autoplay = x.getAttribute('data-auto-play'),
  2006. hideRelated = x.getAttribute('data-hide-related'),
  2007. showComments = x.getAttribute('data-show-comments'),
  2008. showUser = x.getAttribute('data-show-user'),
  2009. showReposts = x.getAttribute('data-show-reposts'),
  2010. showTeaser = x.getAttribute('data-show-teaser'),
  2011. visual = x.getAttribute('data-visual'),
  2012. artwork = x.getAttribute('data-artwork');
  2013. var allowAutoplay = autoplay === 'true' ? 'allow="autoplay"' : '';
  2014. if (playable_id === undefined) {
  2015. return "";
  2016. }
  2017. var qs = '?url=https%3A//api.soundcloud.com/' + playable_type + '/' + playable_id;
  2018. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2019. if (color && color.length > 0) qs += '&color=' + color.replace('#', '%23');
  2020. if (autoplay && autoplay.length > 0) qs += '&auto_play=' + autoplay;
  2021. if (showComments && showComments.length > 0) qs += '&show_comments=' + showComments;
  2022. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2023. if (showUser && showUser.length > 0) qs += '&show_user=' + showUser;
  2024. if (showReposts && showReposts.length > 0) qs += '&show_reposts=' + showReposts;
  2025. if (showTeaser && showTeaser.length > 0) qs += '&show_teaser=' + showTeaser;
  2026. if (visual && visual.length > 0) qs += '&visual=' + visual;
  2027. if (artwork && artwork.length > 0) qs += '&show_artwork=' + artwork;
  2028. return '<iframe width="100%" ' + frame_height + ' scrolling="no" frameborder="no" ' + allowAutoplay + ' src="https://w.soundcloud.com/player/' + qs + '"></iframe>';
  2029. });
  2030. },
  2031. fallback: function () {
  2032. "use strict";
  2033. tarteaucitron.fallback(['soundcloud_player'], function (elem) {
  2034. elem.style.height = elem.getAttribute('data-height') + 'px';
  2035. return tarteaucitron.engage('soundcloud');
  2036. });
  2037. }
  2038. };
  2039. // spotify
  2040. tarteaucitron.services.spotify = {
  2041. "key": "spotify",
  2042. "type": "video",
  2043. "name": "Spotify",
  2044. "uri": "https://www.spotify.com/us/legal/privacy-policy/",
  2045. "needConsent": true,
  2046. "cookies": ['sp_landing', '_ga', 'sp_ab', 'sp_landingref', 'sp_t', 'sp_usid', 'OptanonConsent', 'sp_m', 'spot'],
  2047. "js": function () {
  2048. "use strict";
  2049. tarteaucitron.fallback(['spotify_player'], function (x) {
  2050. var spotify_id = x.getAttribute("spotifyID"),
  2051. spotify_width = x.getAttribute("width"),
  2052. frame_width = 'width=',
  2053. spotify_height = x.getAttribute("height"),
  2054. frame_height = 'height=',
  2055. spotify_frame;
  2056. if (spotify_id === undefined) {
  2057. return "";
  2058. }
  2059. if (spotify_width !== undefined) {
  2060. frame_width += '"' + spotify_width + '" ';
  2061. } else {
  2062. frame_width += '"" ';
  2063. }
  2064. if (spotify_height !== undefined) {
  2065. frame_height += '"' + spotify_height + '" ';
  2066. } else {
  2067. frame_height += '"" ';
  2068. }
  2069. spotify_frame = '<iframe src="//open.spotify.com/embed/' + spotify_id + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
  2070. return spotify_frame;
  2071. });
  2072. },
  2073. "fallback": function () {
  2074. "use strict";
  2075. var id = 'spotify';
  2076. tarteaucitron.fallback(['spotify_player'], function (elem) {
  2077. elem.style.width = elem.getAttribute('width') + 'px';
  2078. elem.style.height = elem.getAttribute('height') + 'px';
  2079. return tarteaucitron.engage(id);
  2080. });
  2081. }
  2082. };
  2083. // statcounter
  2084. tarteaucitron.services.statcounter = {
  2085. "key": "statcounter",
  2086. "type": "analytic",
  2087. "name": "StatCounter",
  2088. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  2089. "needConsent": true,
  2090. "cookies": ['sc_is_visitor_unique'],
  2091. "js": function () {
  2092. "use strict";
  2093. var uniqIds = [],
  2094. i,
  2095. uri = '//statcounter.com/counter/counter.js';
  2096. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  2097. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2098. uniqIds.push(uniqId);
  2099. return '<div id="' + uniqId + '"></div>';
  2100. });
  2101. for (i = 0; i < uniqIds.length; i += 1) {
  2102. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2103. }
  2104. },
  2105. "fallback": function () {
  2106. "use strict";
  2107. var id = 'statcounter';
  2108. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  2109. }
  2110. };
  2111. // timelinejs
  2112. tarteaucitron.services.timelinejs = {
  2113. "key": "timelinejs",
  2114. "type": "api",
  2115. "name": "Timeline JS",
  2116. "uri": "http://timeline.knightlab.com/#help",
  2117. "needConsent": true,
  2118. "cookies": [],
  2119. "js": function () {
  2120. "use strict";
  2121. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  2122. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  2123. width = x.getAttribute("width"),
  2124. height = x.getAttribute("height"),
  2125. lang = x.getAttribute("lang_2_letter"),
  2126. font = x.getAttribute("font"),
  2127. map = x.getAttribute("map"),
  2128. start_at_end = x.getAttribute("start_at_end"),
  2129. hash_bookmark = x.getAttribute("hash_bookmark"),
  2130. start_at_slide = x.getAttribute("start_at_slide"),
  2131. start_zoom = x.getAttribute("start_zoom"),
  2132. 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;
  2133. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  2134. });
  2135. },
  2136. "fallback": function () {
  2137. "use strict";
  2138. var id = 'timelinejs';
  2139. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  2140. elem.style.width = elem.getAttribute('width') + 'px';
  2141. elem.style.height = elem.getAttribute('height') + 'px';
  2142. return tarteaucitron.engage(id);
  2143. });
  2144. }
  2145. };
  2146. // tagcommander
  2147. tarteaucitron.services.tagcommander = {
  2148. "key": "tagcommander",
  2149. "type": "api",
  2150. "name": "TagCommander",
  2151. "uri": "https://www.commandersact.com/en/privacy/",
  2152. "needConsent": true,
  2153. "cookies": [],
  2154. "js": function () {
  2155. "use strict";
  2156. if (tarteaucitron.user.tagcommanderid === undefined) {
  2157. return;
  2158. }
  2159. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  2160. }
  2161. };
  2162. // typekit
  2163. tarteaucitron.services.typekit = {
  2164. "key": "typekit",
  2165. "type": "api",
  2166. "name": "Typekit (adobe)",
  2167. "uri": "https://www.adobe.com/privacy.html",
  2168. "needConsent": true,
  2169. "cookies": [],
  2170. "js": function () {
  2171. "use strict";
  2172. if (tarteaucitron.user.typekitId === undefined) {
  2173. return;
  2174. }
  2175. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  2176. try {
  2177. Typekit.load();
  2178. } catch (e) {}
  2179. });
  2180. }
  2181. };
  2182. // twenga
  2183. tarteaucitron.services.twenga = {
  2184. "key": "twenga",
  2185. "type": "ads",
  2186. "name": "Twenga",
  2187. "uri": "http://www.twenga.com/privacy.php",
  2188. "needConsent": true,
  2189. "cookies": [],
  2190. "js": function () {
  2191. "use strict";
  2192. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  2193. return;
  2194. }
  2195. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  2196. }
  2197. };
  2198. // twitter
  2199. tarteaucitron.services.twitter = {
  2200. "key": "twitter",
  2201. "type": "social",
  2202. "name": "Twitter",
  2203. "uri": "https://support.twitter.com/articles/20170514",
  2204. "needConsent": true,
  2205. "cookies": [],
  2206. "js": function () {
  2207. "use strict";
  2208. tarteaucitron.fallback(['tacTwitter'], '');
  2209. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2210. },
  2211. "fallback": function () {
  2212. "use strict";
  2213. var id = 'twitter';
  2214. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  2215. }
  2216. };
  2217. // twitter embed
  2218. tarteaucitron.services.twitterembed = {
  2219. "key": "twitterembed",
  2220. "type": "social",
  2221. "name": "Twitter (cards)",
  2222. "uri": "https://support.twitter.com/articles/20170514",
  2223. "needConsent": true,
  2224. "cookies": [],
  2225. "js": function () {
  2226. "use strict";
  2227. var uniqIds = [],
  2228. i,
  2229. e,
  2230. html;
  2231. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  2232. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2233. uniqIds.push(uniqId);
  2234. html = '<div id="' + uniqId + '" ';
  2235. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  2236. html += 'theme="' + x.getAttribute('theme') + '" ';
  2237. html += 'cards="' + x.getAttribute('cards') + '" ';
  2238. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  2239. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  2240. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  2241. html += '></div>';
  2242. return html;
  2243. });
  2244. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  2245. for (i = 0; i < uniqIds.length; i += 1) {
  2246. e = document.getElementById(uniqIds[i]);
  2247. twttr.widgets.createTweet(
  2248. e.getAttribute('tweetid'),
  2249. e,
  2250. {
  2251. theme: e.getAttribute('theme'),
  2252. cards: e.getAttribute('cards'),
  2253. conversation: e.getAttribute('conversation'),
  2254. lang: tarteaucitron.getLanguage(),
  2255. dnt: true,
  2256. width: e.getAttribute('data-width'),
  2257. align: e.getAttribute('data-align')
  2258. }
  2259. );
  2260. }
  2261. });
  2262. },
  2263. "fallback": function () {
  2264. "use strict";
  2265. var id = 'twitterembed';
  2266. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  2267. elem.style.width = elem.getAttribute('data-width') + 'px';
  2268. return tarteaucitron.engage(id);
  2269. });
  2270. }
  2271. };
  2272. // twitter timeline
  2273. tarteaucitron.services.twittertimeline = {
  2274. "key": "twittertimeline",
  2275. "type": "social",
  2276. "name": "Twitter (timelines)",
  2277. "uri": "https://support.twitter.com/articles/20170514",
  2278. "needConsent": true,
  2279. "cookies": [],
  2280. "js": function () {
  2281. "use strict";
  2282. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  2283. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2284. },
  2285. "fallback": function () {
  2286. "use strict";
  2287. var id = 'twittertimeline';
  2288. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  2289. }
  2290. };
  2291. // twitter universal website tag
  2292. tarteaucitron.services.twitteruwt = {
  2293. "key": "twitteruwt",
  2294. "type": "analytic",
  2295. "name": "Twitter Universal Website Tag",
  2296. "uri": "https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html",
  2297. "needConsent": true,
  2298. "cookies": [],
  2299. "js": function () {
  2300. "use strict";
  2301. window.twq = function () {
  2302. window.twq.exe ? window.twq.exe.apply(window.twq, arguments) : window.twq.queue.push(arguments);
  2303. }
  2304. window.twq.version = '1.1';
  2305. window.twq.queue = [];
  2306. tarteaucitron.addScript('https://static.ads-twitter.com/uwt.js', '', function () {
  2307. window.twq('init', tarteaucitron.user.twitteruwtId);
  2308. window.twq('track', 'PageView');
  2309. });
  2310. }
  2311. };
  2312. // user voice
  2313. tarteaucitron.services.uservoice = {
  2314. "key": "uservoice",
  2315. "type": "support",
  2316. "name": "UserVoice",
  2317. "uri": "https://www.uservoice.com/privacy/",
  2318. "needConsent": true,
  2319. "cookies": [],
  2320. "js": function () {
  2321. "use strict";
  2322. if (tarteaucitron.user.userVoiceApi === undefined) {
  2323. return;
  2324. }
  2325. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  2326. }
  2327. };
  2328. // vimeo
  2329. tarteaucitron.services.vimeo = {
  2330. "key": "vimeo",
  2331. "type": "video",
  2332. "name": "Vimeo",
  2333. "uri": "https://vimeo.com/privacy",
  2334. "needConsent": true,
  2335. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  2336. "js": function () {
  2337. "use strict";
  2338. tarteaucitron.fallback(['vimeo_player'], function (x) {
  2339. var video_width = x.getAttribute("data-width") || x.getAttribute("width"),
  2340. frame_width = 'width=',
  2341. video_height = x.getAttribute("data-height") || x.getAttribute("height"),
  2342. frame_height = 'height=',
  2343. video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
  2344. video_autopause = x.getAttribute("data-autopause") || '',
  2345. video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
  2346. video_background = x.getAttribute("data-background") || '',
  2347. video_byline = x.getAttribute("data-byline") || x.getAttribute("byline") || '',
  2348. video_color = x.getAttribute("data-color") || '',
  2349. video_controls = x.getAttribute("data-controls") || '',
  2350. video_loop = x.getAttribute("data-loop") || x.getAttribute("loop") || '',
  2351. video_maxheight = x.getAttribute("data-maxheight") || '',
  2352. video_maxwidth = x.getAttribute("data-maxwidth") || '',
  2353. video_muted = x.getAttribute("data-muted") || '',
  2354. video_playsinline = x.getAttribute("data-playsinline") || '',
  2355. video_portrait = x.getAttribute("data-portrait") || x.getAttribute("portrait") || '',
  2356. video_speed = x.getAttribute("data-speed") || '',
  2357. video_title = x.getAttribute("data-title") || x.getAttribute("title") || '',
  2358. video_transparent = x.getAttribute("data-transparent") || '',
  2359. video_frame;
  2360. if (video_id === undefined) {
  2361. return "";
  2362. }
  2363. if (video_width !== undefined) {
  2364. frame_width += '"' + video_width + '" ';
  2365. } else {
  2366. frame_width += '"" ';
  2367. }
  2368. if (video_height !== undefined) {
  2369. frame_height += '"' + video_height + '" ';
  2370. } else {
  2371. frame_height += '"" ';
  2372. }
  2373. var video_qs = "?";
  2374. if (video_title.length > 0) {
  2375. video_qs += "title=" + video_title;
  2376. }
  2377. if (video_byline.length > 0) {
  2378. if (video_qs.length > 0) {
  2379. video_qs += "&";
  2380. }
  2381. video_qs += "byline=" + video_byline;
  2382. }
  2383. if (video_portrait.length > 0) {
  2384. if (video_qs.length > 0) {
  2385. video_qs += "&";
  2386. }
  2387. video_qs += "portrait=" + video_portrait;
  2388. }
  2389. if (video_loop.length > 0) {
  2390. if (video_qs.length > 0) {
  2391. video_qs += "&";
  2392. }
  2393. video_qs += "loop=" + video_loop;
  2394. }
  2395. if (video_autoplay.length > 0) {
  2396. if (video_qs.length > 0) {
  2397. video_qs += "&";
  2398. }
  2399. video_qs += "autoplay=" + video_autoplay;
  2400. }
  2401. if (video_autopause.length > 0) {
  2402. if (video_qs.length > 0) {
  2403. video_qs += "&";
  2404. }
  2405. video_qs += "autopause=" + video_autopause;
  2406. }
  2407. if (video_background.length > 0) {
  2408. if (video_qs.length > 0) {
  2409. video_qs += "&";
  2410. }
  2411. video_qs += "background=" + video_background;
  2412. }
  2413. if (video_color.length > 0) {
  2414. if (video_qs.length > 0) {
  2415. video_qs += "&";
  2416. }
  2417. video_qs += "color=" + video_color;
  2418. }
  2419. if (video_controls.length > 0) {
  2420. if (video_qs.length > 0) {
  2421. video_qs += "&";
  2422. }
  2423. video_qs += "controls=" + video_controls;
  2424. }
  2425. if (video_maxheight.length > 0) {
  2426. if (video_qs.length > 0) {
  2427. video_qs += "&";
  2428. }
  2429. video_qs += "maxheight=" + video_maxheight;
  2430. }
  2431. if (video_maxwidth.length > 0) {
  2432. if (video_qs.length > 0) {
  2433. video_qs += "&";
  2434. }
  2435. video_qs += "maxwidth=" + video_maxwidth;
  2436. }
  2437. if (video_muted.length > 0) {
  2438. if (video_qs.length > 0) {
  2439. video_qs += "&";
  2440. }
  2441. video_qs += "muted=" + video_muted;
  2442. }
  2443. if (video_playsinline.length > 0) {
  2444. if (video_qs.length > 0) {
  2445. video_qs += "&";
  2446. }
  2447. video_qs += "playsinline=" + video_playsinline;
  2448. }
  2449. if (video_speed.length > 0) {
  2450. if (video_qs.length > 0) {
  2451. video_qs += "&";
  2452. }
  2453. video_qs += "speed=" + video_speed;
  2454. }
  2455. if (video_transparent.length > 0) {
  2456. if (video_qs.length > 0) {
  2457. video_qs += "&";
  2458. }
  2459. video_qs += "transparent=" + video_transparent;
  2460. }
  2461. if (video_qs === "?") {
  2462. video_qs = "";
  2463. }
  2464. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  2465. return video_frame;
  2466. });
  2467. },
  2468. "fallback": function () {
  2469. "use strict";
  2470. var id = 'vimeo';
  2471. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  2472. elem.style.width = elem.getAttribute('width') + 'px';
  2473. elem.style.height = elem.getAttribute('height') + 'px';
  2474. return tarteaucitron.engage(id);
  2475. });
  2476. }
  2477. };
  2478. // visualrevenue
  2479. tarteaucitron.services.visualrevenue = {
  2480. "key": "visualrevenue",
  2481. "type": "analytic",
  2482. "name": "VisualRevenue",
  2483. "uri": "http://www.outbrain.com/legal/privacy-713/",
  2484. "needConsent": true,
  2485. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  2486. "js": function () {
  2487. "use strict";
  2488. if (tarteaucitron.user.visualrevenueId === undefined) {
  2489. return;
  2490. }
  2491. window._vrq = window._vrq || [];
  2492. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  2493. window._vrq.push(['automate', true]);
  2494. window._vrq.push(['track', function () {}]);
  2495. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  2496. }
  2497. };
  2498. // verizon dot tag
  2499. tarteaucitron.services.verizondottag = {
  2500. "key": "verizondottag",
  2501. "type": "analytic",
  2502. "name": "Verizon Dot Tag",
  2503. "uri": "https://developer.verizonmedia.com/native/guide/audience-management/dottags/",
  2504. "needConsent": true,
  2505. "cookies": [],
  2506. "js": function () {
  2507. "use strict";
  2508. window.dotq = window.dotq || [];
  2509. window.dotq.push({
  2510. 'projectId': tarteaucitron.user.verizondottagProjectId,
  2511. 'properties': {'pixelId': tarteaucitron.user.verizondottagPixelId}
  2512. });
  2513. tarteaucitron.addScript('https://s.yimg.com/wi/ytc.js', '', function () {
  2514. const items = window.dotq;
  2515. window.dotq = [];
  2516. window.dotq.push = function (item) {
  2517. YAHOO.ywa.I13N.fireBeacon([item])
  2518. };
  2519. YAHOO.ywa.I13N.fireBeacon(items)
  2520. });
  2521. }
  2522. };
  2523. // vshop
  2524. tarteaucitron.services.vshop = {
  2525. "key": "vshop",
  2526. "type": "ads",
  2527. "name": "vShop",
  2528. "uri": "http://vshop.fr/privacy-policy",
  2529. "needConsent": true,
  2530. "cookies": [],
  2531. "js": function () {
  2532. "use strict";
  2533. tarteaucitron.fallback(['vcashW'], '');
  2534. tarteaucitron.addScript('//vshop.fr/js/w.js');
  2535. },
  2536. "fallback": function () {
  2537. "use strict";
  2538. var id = 'vshop';
  2539. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  2540. }
  2541. };
  2542. // wysistat
  2543. tarteaucitron.services.wysistat = {
  2544. "key": "wysistat",
  2545. "type": "analytic",
  2546. "name": "Wysistat",
  2547. "uri": "http://wysistat.net/contact/",
  2548. "needConsent": true,
  2549. "cookies": ['Wysistat'],
  2550. "js": function () {
  2551. "use strict";
  2552. if (tarteaucitron.user.wysistat === undefined) {
  2553. return;
  2554. }
  2555. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  2556. 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);
  2557. });
  2558. }
  2559. };
  2560. // xiti
  2561. tarteaucitron.services.xiti = {
  2562. "key": "xiti",
  2563. "type": "analytic",
  2564. "name": "Xiti",
  2565. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2566. "needConsent": true,
  2567. "cookies": [],
  2568. "js": function () {
  2569. "use strict";
  2570. if (tarteaucitron.user.xitiId === undefined) {
  2571. return;
  2572. }
  2573. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  2574. Xt_r,
  2575. Xt_h,
  2576. Xt_i,
  2577. Xt_s,
  2578. div = document.createElement('div');
  2579. try {
  2580. Xt_r = top.document.referrer;
  2581. } catch (e) {
  2582. Xt_r = document.referrer;
  2583. }
  2584. Xt_h = new Date();
  2585. Xt_i = '<img style="display:none" border="0" alt="" ';
  2586. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  2587. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  2588. if (parseFloat(navigator.appVersion) >= 4) {
  2589. Xt_s = screen;
  2590. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  2591. }
  2592. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  2593. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  2594. if (typeof tarteaucitron.user.xitiMore === 'function') {
  2595. tarteaucitron.user.xitiMore();
  2596. }
  2597. }
  2598. };
  2599. // AT Internet
  2600. tarteaucitron.services.atinternet = {
  2601. "key": "atinternet",
  2602. "type": "analytic",
  2603. "name": "AT Internet (privacy by design)",
  2604. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2605. "needConsent": false,
  2606. "safeanalytic": true,
  2607. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2608. "js": function () {
  2609. "use strict";
  2610. if (tarteaucitron.user.atLibUrl === undefined) {
  2611. return;
  2612. }
  2613. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2614. window.tag = new ATInternet.Tracker.Tag();
  2615. if (typeof tarteaucitron.user.atMore === 'function') {
  2616. tarteaucitron.user.atMore();
  2617. }
  2618. if (typeof window.tag.privacy !== 'undefined') {
  2619. document.getElementById('atinternetLine').style.display = 'none';
  2620. if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
  2621. window.tag.privacy.setVisitorMode('cnil', 'exempt');
  2622. }
  2623. tarteaucitron.addClickEventToElement(document.getElementById('atinternetDenied'), function () {
  2624. tarteaucitron.launch['atinternetoptout'] = false;
  2625. tarteaucitron.launch['atinternetoptin'] = false;
  2626. tarteaucitron.userInterface.respond(document.getElementById('atinternetoptinDenied'), false);
  2627. tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
  2628. });
  2629. tarteaucitron.addClickEventToElement(document.getElementById('atinternetoptoutDenied'), function () {
  2630. if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
  2631. window.tag.privacy.setVisitorMode('cnil', 'exempt');
  2632. }
  2633. });
  2634. tarteaucitron.addClickEventToElement(document.getElementById('atinternetoptinDenied'), function () {
  2635. if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
  2636. window.tag.privacy.setVisitorMode('cnil', 'exempt');
  2637. }
  2638. });
  2639. }
  2640. setTimeout(function() {
  2641. tag.page.send();
  2642. }, 70);
  2643. });
  2644. }
  2645. };
  2646. // AT Internet (optin)
  2647. tarteaucitron.services.atinternetoptin = {
  2648. "key": "atinternetoptin",
  2649. "type": "analytic",
  2650. "name": "AT Internet",
  2651. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2652. "needConsent": true,
  2653. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2654. "js": function () {
  2655. "use strict";
  2656. tarteaucitron.launch['atinternetoptout'] = false;
  2657. setTimeout(function() {
  2658. tarteaucitron.userInterface.respond(document.getElementById('atinternetAllowed'), true);
  2659. tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
  2660. }, 50);
  2661. setTimeout(function() {
  2662. if (typeof window.tag.privacy !== 'undefined') {
  2663. window.tag.privacy.setVisitorOptin();
  2664. }
  2665. }, 60);
  2666. window.tarteaucitronHackNoSwitch = true;
  2667. setTimeout(function() {window.tarteaucitronHackNoSwitch = false;}, 200);
  2668. }
  2669. };
  2670. // AT Internet (optout)
  2671. tarteaucitron.services.atinternetoptout = {
  2672. "key": "atinternetoptout",
  2673. "type": "analytic",
  2674. "name": "AT Internet [minimal]",
  2675. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2676. "needConsent": true,
  2677. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2678. "js": function () {
  2679. "use strict";
  2680. // hack accept all
  2681. if (window.tarteaucitronHackNoSwitch) {
  2682. setTimeout(function() {
  2683. tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
  2684. }, 60);
  2685. return;
  2686. }
  2687. tarteaucitron.launch['atinternetoptin'] = false;
  2688. setTimeout(function() {
  2689. tarteaucitron.userInterface.respond(document.getElementById('atinternetAllowed'), true);
  2690. tarteaucitron.userInterface.respond(document.getElementById('atinternetoptinDenied'), false);
  2691. }, 50);
  2692. setTimeout(function() {
  2693. if (typeof window.tag.privacy !== 'undefined') {
  2694. window.tag.privacy.setVisitorOptout();
  2695. }
  2696. }, 60);
  2697. }
  2698. };
  2699. // AT Internet
  2700. tarteaucitron.services.atinternethightrack = {
  2701. "key": "atinternethightrack",
  2702. "type": "analytic",
  2703. "name": "AT Internet",
  2704. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2705. "needConsent": true,
  2706. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2707. "js": function () {
  2708. "use strict";
  2709. if (tarteaucitron.user.atLibUrl === undefined) {
  2710. return;
  2711. }
  2712. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2713. var tag = new ATInternet.Tracker.Tag();
  2714. if (typeof tarteaucitron.user.atMore === 'function') {
  2715. tarteaucitron.user.atMore();
  2716. }
  2717. })
  2718. }
  2719. };
  2720. // youtube
  2721. tarteaucitron.services.youtube = {
  2722. "key": "youtube",
  2723. "type": "video",
  2724. "name": "YouTube",
  2725. "uri": "https://policies.google.com/privacy",
  2726. "needConsent": true,
  2727. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2728. "js": function () {
  2729. "use strict";
  2730. tarteaucitron.fallback(['youtube_player'], function (x) {
  2731. var video_id = x.getAttribute("videoID"),
  2732. video_width = x.getAttribute("width"),
  2733. frame_width = 'width=',
  2734. video_height = x.getAttribute("height"),
  2735. frame_height = 'height=',
  2736. video_frame,
  2737. 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");
  2738. if (video_id === undefined) {
  2739. return "";
  2740. }
  2741. if (video_width !== undefined) {
  2742. frame_width += '"' + video_width + '" ';
  2743. } else {
  2744. frame_width += '"" ';
  2745. }
  2746. if (video_height !== undefined) {
  2747. frame_height += '"' + video_height + '" ';
  2748. } else {
  2749. frame_height += '"" ';
  2750. }
  2751. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0" allowfullscreen></iframe>';
  2752. return video_frame;
  2753. });
  2754. },
  2755. "fallback": function () {
  2756. "use strict";
  2757. var id = 'youtube';
  2758. tarteaucitron.fallback(['youtube_player'], function (elem) {
  2759. elem.style.width = elem.getAttribute('width') + 'px';
  2760. elem.style.height = elem.getAttribute('height') + 'px';
  2761. return tarteaucitron.engage(id);
  2762. });
  2763. }
  2764. };
  2765. // youtube playlist
  2766. tarteaucitron.services.youtubeplaylist = {
  2767. "key": "youtubeplaylist",
  2768. "type": "video",
  2769. "name": "YouTube (playlist)",
  2770. "uri": "https://policies.google.com/privacy",
  2771. "needConsent": true,
  2772. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2773. "js": function () {
  2774. "use strict";
  2775. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  2776. var playlist_id = x.getAttribute("playlistID"),
  2777. video_width = x.getAttribute("width"),
  2778. frame_width = 'width=',
  2779. video_height = x.getAttribute("height"),
  2780. frame_height = 'height=',
  2781. video_frame,
  2782. 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");
  2783. if (playlist_id === undefined) {
  2784. return "";
  2785. }
  2786. if (video_width !== undefined) {
  2787. frame_width += '"' + video_width + '" ';
  2788. } else {
  2789. frame_width += '"" ';
  2790. }
  2791. if (video_height !== undefined) {
  2792. frame_height += '"' + video_height + '" ';
  2793. } else {
  2794. frame_height += '"" ';
  2795. }
  2796. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0" allowfullscreen></iframe>';
  2797. return video_frame;
  2798. });
  2799. },
  2800. "fallback": function () {
  2801. "use strict";
  2802. var id = 'youtubeplaylist';
  2803. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  2804. elem.style.width = elem.getAttribute('width') + 'px';
  2805. elem.style.height = elem.getAttribute('height') + 'px';
  2806. return tarteaucitron.engage(id);
  2807. });
  2808. }
  2809. };
  2810. // zopim
  2811. tarteaucitron.services.zopim = {
  2812. "key": "zopim",
  2813. "type": "support",
  2814. "name": "Zopim",
  2815. "uri": "https://www.zopim.com/privacy",
  2816. "needConsent": true,
  2817. "cookies": ['__zlcid', '__zprivacy'],
  2818. "js": function () {
  2819. "use strict";
  2820. if (tarteaucitron.user.zopimID === undefined) {
  2821. return;
  2822. }
  2823. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  2824. }
  2825. };
  2826. // kameleoon
  2827. tarteaucitron.services.kameleoon = {
  2828. "key": "kameleoon",
  2829. "type": "analytic",
  2830. "name": "Kameleoon",
  2831. "uri": "https://www.kameleoon.com/fr/compliance/rgpd",
  2832. "needConsent": true,
  2833. "cookies": [],
  2834. "js": function () {
  2835. "use strict";
  2836. if (tarteaucitron.user.kameleoon !== undefined) {
  2837. tarteaucitron.addScript("https://" + tarteaucitron.user.kameleoon + ".kameleoon.eu/kameleoon.js");
  2838. }
  2839. }
  2840. };
  2841. // linkedin insight
  2842. tarteaucitron.services.linkedininsighttag = {
  2843. "key": "linkedininsighttag",
  2844. "type": "ads",
  2845. "name": "Linkedin Insight",
  2846. "uri": "https://www.linkedin.com/legal/cookie_policy",
  2847. "needConsent": true,
  2848. "cookies": [],
  2849. "js": function () {
  2850. "use strict";
  2851. if (tarteaucitron.user.linkedininsighttag !== undefined) {
  2852. window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
  2853. window._linkedin_data_partner_ids.push(tarteaucitron.user.linkedininsighttag);
  2854. }
  2855. tarteaucitron.addScript('https://snap.licdn.com/li.lms-analytics/insight.min.js');
  2856. }
  2857. };
  2858. // xiti smartTag
  2859. tarteaucitron.services.xiti_smarttag = {
  2860. "key": "xiti_smarttag",
  2861. "type": "analytic",
  2862. "name": "Xiti (SmartTag)",
  2863. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2864. "needConsent": true,
  2865. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  2866. "js": function () {
  2867. "use strict";
  2868. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  2869. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  2870. } else {
  2871. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  2872. if (xitiSmarttagId === undefined) {
  2873. return;
  2874. }
  2875. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  2876. }
  2877. }
  2878. };
  2879. // facebook pixel
  2880. tarteaucitron.services.facebookpixel = {
  2881. "key": "facebookpixel",
  2882. "type": "ads",
  2883. "name": "Facebook Pixel",
  2884. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  2885. "needConsent": true,
  2886. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  2887. "js": function () {
  2888. "use strict";
  2889. var n;
  2890. if(window.fbq)return;
  2891. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2892. if(!window._fbq)window._fbq=n;
  2893. n.push=n;
  2894. n.loaded=!0;
  2895. n.version='2.0';
  2896. n.queue=[];
  2897. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2898. fbq('init', tarteaucitron.user.facebookpixelId);
  2899. fbq('track', 'PageView');
  2900. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2901. tarteaucitron.user.facebookpixelMore();
  2902. }
  2903. }
  2904. };
  2905. //Issuu
  2906. tarteaucitron.services.issuu = {
  2907. "key": "issuu",
  2908. "type": "other",
  2909. "name": "Issuu",
  2910. "uri": "https://issuu.com/legal/privacy",
  2911. "needConsent": true,
  2912. "cookies": ['__qca', 'iutk', 'mc'],
  2913. "js": function () {
  2914. "use strict";
  2915. tarteaucitron.fallback(['issuu_player'], function (x) {
  2916. var issuu_id = x.getAttribute("issuuID"),
  2917. issuu_width = x.getAttribute("width"),
  2918. frame_width = 'width=',
  2919. issuu_height = x.getAttribute("height"),
  2920. frame_height = 'height=',
  2921. issuu_frame,
  2922. issuu_embed;
  2923. if (issuu_id === undefined) {
  2924. return "";
  2925. }
  2926. if (issuu_width !== undefined) {
  2927. frame_width += '"' + issuu_width + '" ';
  2928. } else {
  2929. frame_width += '"" ';
  2930. }
  2931. if (issuu_height !== undefined) {
  2932. frame_height += '"' + issuu_height + '" ';
  2933. } else {
  2934. frame_height += '"" ';
  2935. }
  2936. if (issuu_id.match(/\d+\/\d+/)) { issuu_embed = '#' + issuu_id; } else if (issuu_id.match(/d=(.*)&u=(.*)/)) { issuu_embed = '?' + issuu_id; }
  2937. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html' + issuu_embed + '" frameborder="0"></iframe>';
  2938. return issuu_frame;
  2939. });
  2940. },
  2941. "fallback": function () {
  2942. "use strict";
  2943. var id = 'issuu';
  2944. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2945. elem.style.width = elem.getAttribute('width') + 'px';
  2946. elem.style.height = elem.getAttribute('height') + 'px';
  2947. return tarteaucitron.engage(id);
  2948. });
  2949. }
  2950. };
  2951. // webmecanik
  2952. tarteaucitron.services.webmecanik = {
  2953. "key": "webmecanik",
  2954. "type": "analytic",
  2955. "name": "Webmecanik",
  2956. "uri": "https://webmecanik.com/tos",
  2957. "needConsent": true,
  2958. "cookies": ['mtc_id', 'mtc_sid'],
  2959. "js": function () {
  2960. "use strict";
  2961. if (tarteaucitron.user.webmecanikurl === undefined) {
  2962. return;
  2963. }
  2964. window.MauticTrackingObject = 'mt';
  2965. window.mt = window.mt || function () {
  2966. window.mt.q = window.mt.q || [];
  2967. window.mt.q.push(arguments);
  2968. };
  2969. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2970. mt('send', 'pageview');
  2971. });
  2972. }
  2973. };
  2974. // google analytics multiple
  2975. tarteaucitron.services.multiplegtag = {
  2976. "key": "multiplegtag",
  2977. "type": "analytic",
  2978. "name": "Google Analytics (gtag.js)",
  2979. "uri": "https://support.google.com/analytics/answer/6004245",
  2980. "needConsent": true,
  2981. "cookies": (function () {
  2982. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2983. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2984. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2985. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2986. cookies.push('_ga_' + ua.replace(/G-/g, ''));
  2987. });
  2988. }
  2989. return cookies;
  2990. })(),
  2991. "js": function () {
  2992. "use strict";
  2993. window.dataLayer = window.dataLayer || [];
  2994. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2995. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2996. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2997. window.gtag = function gtag(){dataLayer.push(arguments);}
  2998. gtag('js', new Date());
  2999. gtag('config', ua);
  3000. });
  3001. });
  3002. }
  3003. }
  3004. };
  3005. // Koban
  3006. tarteaucitron.services.koban = {
  3007. "key": "koban",
  3008. "type": "analytic",
  3009. "name": "Koban",
  3010. "uri": "https://koban.cloud/tos",
  3011. "needConsent": true,
  3012. "cookies": ['kbntrk'],
  3013. "js": function () {
  3014. "use strict";
  3015. if (tarteaucitron.user.kobanurl === undefined) {
  3016. return;
  3017. }
  3018. if (tarteaucitron.user.kobanapi === undefined) {
  3019. return;
  3020. }
  3021. window.KobanObject = 'kb';
  3022. window.kb = window.kb || function() {
  3023. window.kb.q = window.kb.q || [];
  3024. window.kb.q.push(arguments);
  3025. };
  3026. window.kb.l = new Date();
  3027. kb('reg', tarteaucitron.user.kobanapi);
  3028. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  3029. });
  3030. }
  3031. };
  3032. // matomo
  3033. /*
  3034. 1. Set the following variable before the initialization :
  3035. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  3036. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  3037. 2. Push the service :
  3038. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  3039. 3. HTML
  3040. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  3041. */
  3042. tarteaucitron.services.matomo = {
  3043. "key": "matomo",
  3044. "type": "analytic",
  3045. "name": "Matomo (privacy by design)",
  3046. "uri": "https://matomo.org/faq/general/faq_146/",
  3047. "needConsent": false,
  3048. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3049. "js": function () {
  3050. "use strict";
  3051. if (tarteaucitron.user.matomoId === undefined) {
  3052. return;
  3053. }
  3054. window._paq = window._paq || [];
  3055. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3056. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3057. window._paq.push(["setDoNotTrack", 1]);
  3058. window._paq.push(["trackPageView"]);
  3059. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3060. window._paq.push(["enableLinkTracking"]);
  3061. window._paq.push([function() {
  3062. var self = this;
  3063. function getOriginalVisitorCookieTimeout() {
  3064. var now = new Date(),
  3065. nowTs = Math.round(now.getTime() / 1000),
  3066. visitorInfo = self.getVisitorInfo();
  3067. var createTs = parseInt(visitorInfo[2]);
  3068. var cookieTimeout = 33696000; // 13 mois en secondes
  3069. var originalTimeout = createTs + cookieTimeout - nowTs;
  3070. return originalTimeout;
  3071. }
  3072. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  3073. }]);
  3074. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3075. // waiting for piwik to be ready to check first party cookies
  3076. var interval = setInterval(function() {
  3077. if (typeof Piwik === 'undefined') return
  3078. clearInterval(interval)
  3079. // make piwik/matomo cookie accessible by getting tracker
  3080. Piwik.getTracker();
  3081. // looping throught cookies
  3082. var theCookies = document.cookie.split(';');
  3083. for (var i = 1 ; i <= theCookies.length; i++) {
  3084. var cookie = theCookies[i-1].split('=');
  3085. var cookieName = cookie[0].trim();
  3086. // if cookie starts like a piwik one, register it
  3087. if (cookieName.indexOf('_pk_') === 0) {
  3088. tarteaucitron.services.matomo.cookies.push(cookieName);
  3089. }
  3090. }
  3091. }, 100)
  3092. }
  3093. };
  3094. tarteaucitron.services.matomohightrack = {
  3095. "key": "matomohightrack",
  3096. "type": "analytic",
  3097. "name": "Matomo",
  3098. "uri": "https://matomo.org/faq/general/faq_146/",
  3099. "needConsent": true,
  3100. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3101. "js": function () {
  3102. "use strict";
  3103. if (tarteaucitron.user.matomoId === undefined) {
  3104. return;
  3105. }
  3106. window._paq = window._paq || [];
  3107. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3108. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3109. window._paq.push(["trackPageView"]);
  3110. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3111. window._paq.push(["enableLinkTracking"]);
  3112. window._paq.push([function() {
  3113. var self = this;
  3114. }]);
  3115. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3116. // waiting for piwik to be ready to check first party cookies
  3117. var interval = setInterval(function() {
  3118. if (typeof Piwik === 'undefined') return
  3119. clearInterval(interval)
  3120. Piwik.getTracker();
  3121. var theCookies = document.cookie.split(';');
  3122. for (var i = 1 ; i <= theCookies.length; i++) {
  3123. var cookie = theCookies[i-1].split('=');
  3124. var cookieName = cookie[0].trim();
  3125. if (cookieName.indexOf('_pk_') === 0) {
  3126. tarteaucitron.services.matomo.cookies.push(cookieName);
  3127. }
  3128. }
  3129. }, 100)
  3130. }
  3131. };
  3132. // Hotjar
  3133. /*
  3134. 1. Set the following variable before the initialization :
  3135. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  3136. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  3137. 2. Push the service :
  3138. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  3139. 3. HTML
  3140. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  3141. */
  3142. tarteaucitron.services.hotjar = {
  3143. "key": "hotjar",
  3144. "type": "analytic",
  3145. "name": "Hotjar",
  3146. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  3147. "needConsent": true,
  3148. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  3149. "js": function () {
  3150. "use strict";
  3151. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  3152. return;
  3153. }
  3154. window.hj = window.hj || function() {
  3155. (window.hj.q = window.hj.q || []).push(arguments)
  3156. };
  3157. window._hjSettings = {
  3158. hjid: tarteaucitron.user.hotjarId,
  3159. hjsv: tarteaucitron.user.HotjarSv
  3160. };
  3161. var uri = 'https://static.hotjar.com/c/hotjar-';
  3162. var extension = '.js?sv=';
  3163. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  3164. }
  3165. };
  3166. // bing ads universal event tracking
  3167. tarteaucitron.services.bingads = {
  3168. 'key': 'bingads',
  3169. 'type': 'ads',
  3170. 'name': 'Bing Ads Universal Event Tracking',
  3171. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  3172. 'needConsent': true,
  3173. 'cookies': ['_uetmsclkid', '_uetvid', '_uetsid'],
  3174. 'js': function () {
  3175. 'use strict';
  3176. //var u = tarteaucitron.user.bingadsTag || 'uetq';
  3177. window.uetq = window.uetq || [];
  3178. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  3179. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  3180. if ('bingadsStoreCookies' in tarteaucitron.user) {
  3181. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  3182. }
  3183. bingadsCreate.q = window.uetq;
  3184. window.uetq = new UET(bingadsCreate);
  3185. window.uetq.push('pageLoad');
  3186. });
  3187. }
  3188. };
  3189. //Matterport
  3190. /*
  3191. SERVICE INIT
  3192. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  3193. HTML TAG
  3194. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  3195. DELETE IFRAME
  3196. <iframe type="text/html" width="100%" height="550" src="https://my.matterport.com/show/?m=N2Q67sZUNUd&utm_source=hit-content&play=1" frameborder="0" allowfullscreen="allowfullscreen"></iframe>'
  3197. */
  3198. tarteaucitron.services.matterport = {
  3199. "key": "matterport",
  3200. "type": "other",
  3201. "name": "Matterport",
  3202. "uri": "https://matterport.com/es/legal/privacy-policy/",
  3203. "needConsent": true,
  3204. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  3205. "js": function () {
  3206. "use strict";
  3207. tarteaucitron.fallback(['matterport'], function (x) {
  3208. var matterport_id = x.getAttribute("matterportID"),
  3209. matterport_width = x.getAttribute("width"),
  3210. frame_width = 'width=',
  3211. matterport_height = x.getAttribute("height"),
  3212. frame_height = 'height=',
  3213. matterport_parameters = x.getAttribute("parameters"),
  3214. matterport_frame;
  3215. if (matterport_id === undefined) {
  3216. return "";
  3217. }
  3218. if (matterport_width !== undefined) {
  3219. frame_width += '"' + matterport_width + '" ';
  3220. } else {
  3221. frame_width += '"" ';
  3222. }
  3223. if (matterport_height !== undefined) {
  3224. frame_height += '"' + matterport_height + '" ';
  3225. } else {
  3226. frame_height += '"" ';
  3227. }
  3228. if (matterport_parameters === undefined) {
  3229. return "";
  3230. }
  3231. matterport_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="https://my.matterport.com/show/?m=' + matterport_id + '&utm_source=hit-content' + matterport_parameters + '" frameborder="0" allowfullscreen="allowfullscreen"></iframe>';
  3232. return matterport_frame;
  3233. });
  3234. },
  3235. "fallback": function () {
  3236. "use strict";
  3237. var id = 'matterport';
  3238. tarteaucitron.fallback(['matterport'], function (elem) {
  3239. elem.style.width = elem.getAttribute('width') + 'px';
  3240. elem.style.height = elem.getAttribute('height') + 'px';
  3241. return tarteaucitron.engage(id);
  3242. });
  3243. }
  3244. };
  3245. // Adform
  3246. tarteaucitron.services.adform = {
  3247. "key": "adform",
  3248. "type": "ads",
  3249. "name": "Adform",
  3250. "uri": "https://site.adform.com/privacy-center/overview/",
  3251. "needConsent": true,
  3252. "cookies": [],
  3253. "js": function () {
  3254. "use strict";
  3255. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  3256. return;
  3257. }
  3258. window._adftrack = {
  3259. pm: tarteaucitron.user.adformpm,
  3260. divider: encodeURIComponent('|'),
  3261. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  3262. };
  3263. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  3264. }
  3265. };
  3266. // Active Campaign
  3267. tarteaucitron.services.activecampaign = {
  3268. "key": "activecampaign",
  3269. "type": "ads",
  3270. "name": "Active Campaign",
  3271. "uri": "https://www.activecampaign.com/privacy-policy/",
  3272. "needConsent": true,
  3273. "cookies": [],
  3274. "js": function () {
  3275. "use strict";
  3276. if (tarteaucitron.user.actid === undefined) {
  3277. return;
  3278. }
  3279. window.trackcmp_email = '';
  3280. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  3281. }
  3282. };
  3283. // tawk.to
  3284. tarteaucitron.services.tawkto = {
  3285. "key": "tawkto",
  3286. "type": "support",
  3287. "name": "Tawk.to chat",
  3288. "uri": "https://www.tawk.to/data-protection/",
  3289. "needConsent": true,
  3290. "cookies": [],
  3291. "js": function () {
  3292. "use strict";
  3293. if (tarteaucitron.user.tawktoId === undefined) {
  3294. return;
  3295. }
  3296. window.Tawk_API=window.Tawk_API||{};
  3297. window.Tawk_LoadStart=new Date();
  3298. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  3299. }
  3300. };
  3301. // getquanty
  3302. tarteaucitron.services.getquanty = {
  3303. "key": "getquanty",
  3304. "type": "analytic",
  3305. "name": "GetQuanty",
  3306. "uri": "https://www.getquanty.com/mentions-legales/",
  3307. "needConsent": true,
  3308. "cookies": ['_first_pageview', 'eqy_sessionid', 'eqy_siteid','cluid','eqy_company', 'cluid', 'gq_utm', '_jsuid'],
  3309. "js": function () {
  3310. "use strict";
  3311. if (tarteaucitron.user.getguanty === undefined) {
  3312. return;
  3313. }
  3314. window.webleads_site_ids = window.webleads_site_ids || [];
  3315. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  3316. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  3317. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  3318. }
  3319. };
  3320. // emolytics
  3321. tarteaucitron.services.emolytics = {
  3322. "key": "emolytics",
  3323. "type": "analytic",
  3324. "name": "Emolytics",
  3325. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  3326. "needConsent": true,
  3327. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  3328. "js": function () {
  3329. "use strict";
  3330. if (tarteaucitron.user.emolyticsID === undefined) {
  3331. return;
  3332. }
  3333. var scriptEmolytics = document.createElement('script');
  3334. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  3335. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  3336. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  3337. }
  3338. };
  3339. // youtubeapi
  3340. tarteaucitron.services.youtubeapi = {
  3341. "key": "youtubeapi",
  3342. "type": "video",
  3343. "name": "Youtube (Js API)",
  3344. "uri": "https://policies.google.com/privacy/",
  3345. "needConsent": true,
  3346. "cookies": [],
  3347. "js": function () {
  3348. "use strict";
  3349. tarteaucitron.addScript('https://www.youtube.com/player_api');
  3350. }
  3351. };
  3352. // Facil'ITI
  3353. tarteaucitron.services.faciliti = {
  3354. "key": "faciliti",
  3355. "type": "other",
  3356. "name": "Facil'ITI",
  3357. "uri": "https://ws.facil-iti.com/mentions-legales.html",
  3358. "needConsent": true,
  3359. "cookies": ['FACIL_ITI_LS'],
  3360. "js": function () {
  3361. "use strict";
  3362. if (tarteaucitron.user.facilitiID === undefined) {
  3363. return;
  3364. }
  3365. (function(w, d, s, f) {
  3366. w[f] = w[f] || {conf: function () { (w[f].data = w[f].data || []).push(arguments);}};
  3367. var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
  3368. l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
  3369. }(window, document, 'script', 'FACIL_ITI'));
  3370. FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
  3371. }
  3372. };
  3373. // userlike
  3374. tarteaucitron.services.userlike = {
  3375. "key": "userlike",
  3376. "type": "support",
  3377. "name": "Userlike",
  3378. "uri": "https://www.userlike.com/en/terms#privacy-policy",
  3379. "needConsent": true,
  3380. "cookies": ['uslk_s', 'uslk_e'],
  3381. "js": function () {
  3382. "use strict";
  3383. if (tarteaucitron.user.userlikeKey === undefined) {
  3384. return;
  3385. }
  3386. tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
  3387. }
  3388. };
  3389. // adobeanalytics
  3390. tarteaucitron.services.adobeanalytics = {
  3391. "key": "adobeanalytics",
  3392. "type": "analytic",
  3393. "name": "Adobe Analytics",
  3394. "uri": "https://www.adobe.com/privacy/policy.html",
  3395. "needConsent": true,
  3396. "cookies": ['s_ecid', 's_cc', 's_sq', 's_vi', 's_fid'],
  3397. "js": function () {
  3398. "use strict";
  3399. if (tarteaucitron.user.adobeanalyticskey === undefined) {
  3400. return;
  3401. }
  3402. tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js');
  3403. }
  3404. };
  3405. // woopra customer journey analytics
  3406. tarteaucitron.services.woopra = {
  3407. 'key': 'woopra',
  3408. 'type': 'analytic',
  3409. 'name': 'Woopra Customer Journey Analytics',
  3410. 'uri': 'https://www.woopra.com/privacy',
  3411. 'needConsent': true,
  3412. 'cookies': ['wooTracker', 'intercom-session-erbfalba', 'intercom-id-erbfalba'],
  3413. 'js': function () {
  3414. 'use strict';
  3415. //var w = tarteaucitron.user.woopraDomain;
  3416. //window[w] = window[w] || [];
  3417. (function(){
  3418. 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)
  3419. })("woopra");
  3420. woopra.config({
  3421. domain: tarteaucitron.user.woopraDomain
  3422. });
  3423. woopra.track();
  3424. }
  3425. };