tarteaucitron.services.js 132 KB

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