tarteaucitron.services.js 149 KB

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