tarteaucitron.services.js 122 KB

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