tarteaucitron.services.js 143 KB

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