tarteaucitron.services.js 140 KB

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