tarteaucitron.services.js 138 KB

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