tarteaucitron.services.js 152 KB

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