tarteaucitron.services.js 133 KB

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