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