tarteaucitron.services.js 143 KB

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