tarteaucitron.services.js 148 KB

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