tarteaucitron.services.js 148 KB

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