tarteaucitron.services.js 120 KB

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