tarteaucitron.services.js 131 KB

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