tarteaucitron.services.js 112 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185
  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. // contentsquare
  466. tarteaucitron.services.contentsquare = {
  467. "key": "contentsquare",
  468. "type": "api",
  469. "name": "ContentSquare",
  470. "uri": "https://docs.contentsquare.com/uxa-en/#collected-data",
  471. "needConsent": true,
  472. "cookies": ['_cs_id', '_cs_s', '_cs_vars', '_cs_ex', '_cs_c', '_cs_optout'],
  473. "js": function () {
  474. "use strict";
  475. if (tarteaucitron.user.contentsquareID === undefined) {
  476. return;
  477. }
  478. tarteaucitron.addScript('//t.contentsquare.net/uxa/'+tarteaucitron.user.contentsquareID+'.js');
  479. }
  480. };
  481. // crazyegg
  482. tarteaucitron.services.crazyegg = {
  483. "key": "crazyegg",
  484. "type": "analytic",
  485. "name": "Crazy Egg",
  486. "uri": "https://www.crazyegg.com/privacy",
  487. "needConsent": true,
  488. "cookies": [],
  489. "js": function () {
  490. "use strict";
  491. if (tarteaucitron.user.crazyeggId === undefined) {
  492. return;
  493. }
  494. tarteaucitron.addScript('//script.crazyegg.com/pages/scripts/' + tarteaucitron.user.crazyeggId.substr(0, 4) + '/' + tarteaucitron.user.crazyeggId.substr(4, 4) + '.js');
  495. }
  496. };
  497. // criteo
  498. tarteaucitron.services.criteo = {
  499. "key": "criteo",
  500. "type": "ads",
  501. "name": "Criteo",
  502. "uri": "http://www.criteo.com/privacy/",
  503. "needConsent": true,
  504. "cookies": [],
  505. "js": function () {
  506. "use strict";
  507. document.MAX_ct0 = '';
  508. var uniqIds = [],
  509. i,
  510. uri;
  511. tarteaucitron.fallback(['criteo-canvas'], function (x) {
  512. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  513. uniqIds.push(uniqId);
  514. return '<div id="' + uniqId + '" zoneid="' + x.getAttribute('zoneid') + '"></div>';
  515. });
  516. for (i = 0; i < uniqIds.length; i += 1) {
  517. uri = '//cas.criteo.com/delivery/ajs.php?';
  518. uri += 'zoneid=' + document.getElementById(uniqIds[i]).getAttribute('zoneid');
  519. uri += '&nodis=1&cb=' + Math.floor(Math.random() * 99999999999);
  520. uri += '&loc=' + encodeURI(window.location);
  521. uri += (document.MAX_used !== ',') ? '&exclude=' + document.MAX_used : '';
  522. uri += (document.charset !== undefined ? '&charset=' + document.charset : '');
  523. uri += (document.characterSet !== undefined ? '&charset=' + document.characterSet : '');
  524. uri += (document.referrer !== undefined) ? '&referer=' + encodeURI(document.referrer) : '';
  525. uri += (document.context !== undefined) ? '&context=' + encodeURI(document.context) : '';
  526. uri += ((document.MAX_ct0 !== undefined) && (document.MAX_ct0.substring(0, 4) === 'http')) ? '&ct0=' + encodeURI(document.MAX_ct0) : '';
  527. uri += (document.mmm_fo !== undefined) ? '&mmm_fo=1' : '';
  528. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  529. }
  530. },
  531. "fallback": function () {
  532. "use strict";
  533. var id = 'criteo';
  534. tarteaucitron.fallback(['criteo-canvas'], tarteaucitron.engage(id));
  535. }
  536. };
  537. // dailymotion
  538. tarteaucitron.services.dailymotion = {
  539. "key": "dailymotion",
  540. "type": "video",
  541. "name": "Dailymotion",
  542. "uri": "https://www.dailymotion.com/legal/privacy",
  543. "needConsent": true,
  544. "cookies": ['ts', 'dmvk', 'hist', 'v1st', 's_vi'],
  545. "js": function () {
  546. "use strict";
  547. tarteaucitron.fallback(['dailymotion_player'], function (x) {
  548. var video_id = x.getAttribute("videoID"),
  549. video_width = x.getAttribute("width"),
  550. frame_width = 'width=',
  551. video_height = x.getAttribute("height"),
  552. frame_height = 'height=',
  553. video_frame,
  554. params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay");
  555. if (video_id === undefined) {
  556. return "";
  557. }
  558. if (video_width !== undefined) {
  559. frame_width += '"' + video_width + '" ';
  560. } else {
  561. frame_width += '"" ';
  562. }
  563. if (video_height !== undefined) {
  564. frame_height += '"' + video_height + '" ';
  565. } else {
  566. frame_height += '"" ';
  567. }
  568. video_frame = '<iframe src="//www.dailymotion.com/embed/video/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
  569. return video_frame;
  570. });
  571. },
  572. "fallback": function () {
  573. "use strict";
  574. var id = 'dailymotion';
  575. tarteaucitron.fallback(['dailymotion_player'], function (elem) {
  576. elem.style.width = elem.getAttribute('width') + 'px';
  577. elem.style.height = elem.getAttribute('height') + 'px';
  578. return tarteaucitron.engage(id);
  579. });
  580. }
  581. };
  582. // dating affiliation
  583. tarteaucitron.services.datingaffiliation = {
  584. "key": "datingaffiliation",
  585. "type": "ads",
  586. "name": "Dating Affiliation",
  587. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  588. "needConsent": true,
  589. "cookies": [],
  590. "js": function () {
  591. "use strict";
  592. tarteaucitron.fallback(['datingaffiliation-canvas'], function (x) {
  593. var comfrom = x.getAttribute("data-comfrom"),
  594. r = x.getAttribute("data-r"),
  595. p = x.getAttribute("data-p"),
  596. cf0 = x.getAttribute("data-cf0"),
  597. langue = x.getAttribute("data-langue"),
  598. forward_affiliate = x.getAttribute("data-forwardAffiliate"),
  599. cf2 = x.getAttribute("data-cf2"),
  600. cfsa2 = x.getAttribute("data-cfsa2"),
  601. width = x.getAttribute("width"),
  602. height = x.getAttribute("height"),
  603. url = 'http://www.tools-affil2.com/rotaban/ban.php?' + comfrom;
  604. 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>';
  605. });
  606. },
  607. "fallback": function () {
  608. "use strict";
  609. var id = 'datingaffiliation';
  610. tarteaucitron.fallback(['datingaffiliation-canvas'], function (elem) {
  611. elem.style.width = elem.getAttribute('width') + 'px';
  612. elem.style.height = elem.getAttribute('height') + 'px';
  613. return tarteaucitron.engage(id);
  614. });
  615. }
  616. };
  617. // dating affiliation popup
  618. tarteaucitron.services.datingaffiliationpopup = {
  619. "key": "datingaffiliationpopup",
  620. "type": "ads",
  621. "name": "Dating Affiliation (Pop Up)",
  622. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  623. "needConsent": true,
  624. "cookies": ['__utma', '__utmb', '__utmc', '__utmt_Tools', '__utmv', '__utmz', '_ga', '_gat', '_gat_UA-65072040-17', '__da-pu-xflirt-ID-pc-o169'],
  625. "js": function () {
  626. "use strict";
  627. var uniqIds = [],
  628. i,
  629. uri;
  630. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], function (x) {
  631. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  632. uniqIds.push(uniqId);
  633. 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>';
  634. });
  635. for (i = 0; i < uniqIds.length; i += 1) {
  636. uri = 'http://www.promotools.biz/da/popunder/script.php?';
  637. uri += 'comfrom=' + document.getElementById(uniqIds[i]).getAttribute('comfrom') + '&';
  638. uri += 'promo=' + document.getElementById(uniqIds[i]).getAttribute('promo') + '&';
  639. uri += 'product_id=' + document.getElementById(uniqIds[i]).getAttribute('productid') + '&';
  640. uri += 'submitconfig=' + document.getElementById(uniqIds[i]).getAttribute('submitconfig') + '&';
  641. uri += 'ur=' + document.getElementById(uniqIds[i]).getAttribute('ur') + '&';
  642. uri += 'brand=' + document.getElementById(uniqIds[i]).getAttribute('brand') + '&';
  643. uri += 'lang=' + document.getElementById(uniqIds[i]).getAttribute('lang') + '&';
  644. uri += 'cf0=' + document.getElementById(uniqIds[i]).getAttribute('cf0') + '&';
  645. uri += 'cf2=' + document.getElementById(uniqIds[i]).getAttribute('cf2') + '&';
  646. uri += 'subid1=' + document.getElementById(uniqIds[i]).getAttribute('subid1') + '&';
  647. uri += 'cfsa2=' + document.getElementById(uniqIds[i]).getAttribute('cfsa2') + '&';
  648. uri += 'subid2=' + document.getElementById(uniqIds[i]).getAttribute('subid2') + '&';
  649. uri += 'nicheId=' + document.getElementById(uniqIds[i]).getAttribute('nicheid') + '&';
  650. uri += 'degreId=' + document.getElementById(uniqIds[i]).getAttribute('degreid') + '&';
  651. uri += 'bt=' + document.getElementById(uniqIds[i]).getAttribute('bt') + '&';
  652. uri += 'vis=' + document.getElementById(uniqIds[i]).getAttribute('vis') + '&';
  653. uri += 'hid=' + document.getElementById(uniqIds[i]).getAttribute('hid') + '&';
  654. uri += 'snd=' + document.getElementById(uniqIds[i]).getAttribute('snd') + '&';
  655. uri += 'aabd=' + document.getElementById(uniqIds[i]).getAttribute('aabd') + '&';
  656. uri += 'aabs=' + document.getElementById(uniqIds[i]).getAttribute('aabs');
  657. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  658. }
  659. },
  660. "fallback": function () {
  661. "use strict";
  662. var id = 'datingaffiliationpopup';
  663. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], tarteaucitron.engage(id));
  664. }
  665. };
  666. // leadforensics
  667. tarteaucitron.services.leadforensics = {
  668. "key": "leadforensics",
  669. "type": "analytic",
  670. "name": "LeadForensics",
  671. "uri": "https://www.leadforensics.com/privacy-policy/",
  672. "needConsent": true,
  673. "cookies": ['trackalyzer'],
  674. "js": function () {
  675. "use strict";
  676. if (tarteaucitron.user.leadforensicsSf14gv === undefined ||
  677. tarteaucitron.user.leadforensicsIidentifier === undefined) {
  678. return;
  679. }
  680. window.sf14gv = tarteaucitron.user.leadforensicsSf14gv;
  681. (function() {
  682. var sf14g = document.createElement('script'); sf14g.type = 'text/javascript'; sf14g.async = true;
  683. sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js';
  684. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s);
  685. })();
  686. tarteaucitron.addScript('//secure.leadforensics.com/js/' + tarteaucitron.user.leadforensicsIidentifier + '.js');
  687. }
  688. };
  689. // disqus
  690. tarteaucitron.services.disqus = {
  691. "key": "disqus",
  692. "type": "comment",
  693. "name": "Disqus",
  694. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  695. "needConsent": true,
  696. "cookies": [],
  697. "js": function () {
  698. "use strict";
  699. if (tarteaucitron.user.disqusShortname === undefined) {
  700. return;
  701. }
  702. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  703. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  704. },
  705. "fallback": function () {
  706. "use strict";
  707. var id = 'disqus';
  708. if (document.getElementById('disqus_thread')) {
  709. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  710. }
  711. }
  712. };
  713. // ekomi
  714. tarteaucitron.services.ekomi = {
  715. "key": "ekomi",
  716. "type": "social",
  717. "name": "eKomi",
  718. "uri": "http://www.ekomi-us.com/us/privacy/",
  719. "needConsent": true,
  720. "cookies": [],
  721. "js": function () {
  722. "use strict";
  723. if (tarteaucitron.user.ekomiCertId === undefined) {
  724. return;
  725. }
  726. window.eKomiIntegrationConfig = [
  727. {certId: tarteaucitron.user.ekomiCertId}
  728. ];
  729. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  730. }
  731. };
  732. // etracker
  733. tarteaucitron.services.etracker = {
  734. "key": "etracker",
  735. "type": "analytic",
  736. "name": "eTracker",
  737. "uri": "https://www.etracker.com/en/data-protection.html",
  738. "needConsent": true,
  739. "cookies": [],
  740. "js": function () {
  741. "use strict";
  742. if (tarteaucitron.user.etracker === undefined) {
  743. return;
  744. }
  745. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  746. }
  747. };
  748. // facebook
  749. tarteaucitron.services.facebook = {
  750. "key": "facebook",
  751. "type": "social",
  752. "name": "Facebook",
  753. "uri": "https://www.facebook.com/policies/cookies/",
  754. "needConsent": true,
  755. "cookies": [],
  756. "js": function () {
  757. "use strict";
  758. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], '');
  759. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  760. if (tarteaucitron.isAjax === true) {
  761. if (typeof FB !== "undefined") {
  762. FB.XFBML.parse();
  763. }
  764. }
  765. },
  766. "fallback": function () {
  767. "use strict";
  768. var id = 'facebook';
  769. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id));
  770. }
  771. };
  772. // facebooklikebox
  773. tarteaucitron.services.facebooklikebox = {
  774. "key": "facebooklikebox",
  775. "type": "social",
  776. "name": "Facebook (like box)",
  777. "uri": "https://www.facebook.com/policies/cookies/",
  778. "needConsent": true,
  779. "cookies": [],
  780. "js": function () {
  781. "use strict";
  782. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  783. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  784. if (tarteaucitron.isAjax === true) {
  785. if (typeof FB !== "undefined") {
  786. FB.XFBML.parse();
  787. }
  788. }
  789. },
  790. "fallback": function () {
  791. "use strict";
  792. var id = 'facebooklikebox';
  793. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  794. }
  795. };
  796. // facebookcomment
  797. tarteaucitron.services.facebookcomment = {
  798. "key": "facebookcomment",
  799. "type": "comment",
  800. "name": "Facebook (commentaire)",
  801. "uri": "https://www.facebook.com/policies/cookies/",
  802. "needConsent": true,
  803. "cookies": [],
  804. "js": function () {
  805. "use strict";
  806. tarteaucitron.fallback(['fb-comments'], '');
  807. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  808. if (tarteaucitron.isAjax === true) {
  809. if (typeof FB !== "undefined") {
  810. FB.XFBML.parse();
  811. }
  812. }
  813. },
  814. "fallback": function () {
  815. "use strict";
  816. var id = 'facebookcomment';
  817. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  818. }
  819. };
  820. // ferank
  821. tarteaucitron.services.ferank = {
  822. "key": "ferank",
  823. "type": "analytic",
  824. "name": "FERank",
  825. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  826. "needConsent": false,
  827. "cookies": [],
  828. "js": function () {
  829. "use strict";
  830. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  831. if (typeof tarteaucitron.user.ferankMore === 'function') {
  832. tarteaucitron.user.ferankMore();
  833. }
  834. });
  835. }
  836. };
  837. // ferank pub
  838. tarteaucitron.services.ferankpub = {
  839. "key": "ferankpub",
  840. "type": "ads",
  841. "name": "FERank (pub)",
  842. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  843. "needConsent": false,
  844. "cookies": [],
  845. "js": function () {
  846. "use strict";
  847. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  848. if (tarteaucitron.isAjax === true) {
  849. if (typeof ferankReady === 'function') {
  850. ferankReady();
  851. }
  852. }
  853. },
  854. "fallback": function () {
  855. "use strict";
  856. var id = 'ferankpub';
  857. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  858. }
  859. };
  860. // get+
  861. tarteaucitron.services.getplus = {
  862. "key": "getplus",
  863. "type": "analytic",
  864. "name": "Get+",
  865. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  866. "needConsent": true,
  867. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  868. "js": function () {
  869. "use strict";
  870. if (tarteaucitron.user.getplusId === undefined) {
  871. return;
  872. }
  873. window.webleads_site_ids = window.webleads_site_ids || [];
  874. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  875. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  876. }
  877. };
  878. // google+
  879. tarteaucitron.services.gplus = {
  880. "key": "gplus",
  881. "type": "social",
  882. "name": "Google+",
  883. "uri": "https://policies.google.com/privacy",
  884. "needConsent": true,
  885. "cookies": [],
  886. "js": function () {
  887. "use strict";
  888. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  889. },
  890. "fallback": function () {
  891. "use strict";
  892. var id = 'gplus';
  893. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  894. }
  895. };
  896. // google+ badge
  897. tarteaucitron.services.gplusbadge = {
  898. "key": "gplusbadge",
  899. "type": "social",
  900. "name": "Google+ (badge)",
  901. "uri": "https://policies.google.com/privacy",
  902. "needConsent": true,
  903. "cookies": [],
  904. "js": function () {
  905. "use strict";
  906. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  907. },
  908. "fallback": function () {
  909. "use strict";
  910. var id = 'gplusbadge';
  911. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  912. }
  913. };
  914. // google adsense
  915. tarteaucitron.services.adsense = {
  916. "key": "adsense",
  917. "type": "ads",
  918. "name": "Google Adsense",
  919. "uri": "https://adssettings.google.com/",
  920. "needConsent": true,
  921. "cookies": [],
  922. "js": function () {
  923. "use strict";
  924. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  925. },
  926. "fallback": function () {
  927. "use strict";
  928. var id = 'adsense';
  929. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  930. }
  931. };
  932. // google partners badge
  933. tarteaucitron.services.googlepartners = {
  934. "key": "googlepartners",
  935. "type": "ads",
  936. "name": "Google Partners Badge",
  937. "uri": "https://adssettings.google.com/",
  938. "needConsent": true,
  939. "cookies": [],
  940. "js": function () {
  941. "use strict";
  942. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  943. },
  944. "fallback": function () {
  945. "use strict";
  946. var id = 'googlepartners';
  947. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  948. }
  949. };
  950. // google adsense search (form)
  951. tarteaucitron.services.adsensesearchform = {
  952. "key": "adsensesearchform",
  953. "type": "ads",
  954. "name": "Google Adsense Search (form)",
  955. "uri": "https://adssettings.google.com/",
  956. "needConsent": true,
  957. "cookies": [],
  958. "js": function () {
  959. "use strict";
  960. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  961. }
  962. };
  963. // google adsense search (result)
  964. tarteaucitron.services.adsensesearchresult = {
  965. "key": "adsensesearchresult",
  966. "type": "ads",
  967. "name": "Google Adsense Search (result)",
  968. "uri": "https://adssettings.google.com/",
  969. "needConsent": true,
  970. "cookies": [],
  971. "js": function () {
  972. "use strict";
  973. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  974. return;
  975. }
  976. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  977. },
  978. "fallback": function () {
  979. "use strict";
  980. var id = 'adsensesearchresult';
  981. if (document.getElementById('gcse_searchresults')) {
  982. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  983. }
  984. }
  985. };
  986. // googleadwordsconversion
  987. tarteaucitron.services.googleadwordsconversion = {
  988. "key": "googleadwordsconversion",
  989. "type": "ads",
  990. "name": "Google Adwords (conversion)",
  991. "uri": "https://www.google.com/settings/ads",
  992. "needConsent": true,
  993. "cookies": [],
  994. "js": function () {
  995. "use strict";
  996. if (tarteaucitron.user.adwordsconversionId === undefined) {
  997. return;
  998. }
  999. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1000. window.google_trackConversion({
  1001. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  1002. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  1003. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  1004. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  1005. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  1006. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  1007. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  1008. google_custom_params: {
  1009. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  1010. parameter2: tarteaucitron.user.adwordsconversionCustom2
  1011. }
  1012. });
  1013. });
  1014. }
  1015. };
  1016. // googleadwordsremarketing
  1017. tarteaucitron.services.googleadwordsremarketing = {
  1018. "key": "googleadwordsremarketing",
  1019. "type": "ads",
  1020. "name": "Google Adwords (remarketing)",
  1021. "uri": "https://www.google.com/settings/ads",
  1022. "needConsent": true,
  1023. "cookies": [],
  1024. "js": function () {
  1025. "use strict";
  1026. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  1027. return;
  1028. }
  1029. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1030. window.google_trackConversion({
  1031. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  1032. google_remarketing_only: true
  1033. });
  1034. });
  1035. }
  1036. };
  1037. // google analytics (old)
  1038. tarteaucitron.services.gajs = {
  1039. "key": "gajs",
  1040. "type": "analytic",
  1041. "name": "Google Analytics (ga.js)",
  1042. "uri": "https://support.google.com/analytics/answer/6004245",
  1043. "needConsent": true,
  1044. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  1045. "js": function () {
  1046. "use strict";
  1047. window._gaq = window._gaq || [];
  1048. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  1049. if (tarteaucitron.user.gajsAnonymizeIp) {
  1050. window._gaq.push (['_gat._anonymizeIp']);
  1051. }
  1052. if (tarteaucitron.user.gajsPageView) {
  1053. window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
  1054. } else {
  1055. window._gaq.push(['_trackPageview']);
  1056. }
  1057. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  1058. if (typeof tarteaucitron.user.gajsMore === 'function') {
  1059. tarteaucitron.user.gajsMore();
  1060. }
  1061. });
  1062. }
  1063. };
  1064. // google analytics
  1065. tarteaucitron.services.analytics = {
  1066. "key": "analytics",
  1067. "type": "analytic",
  1068. "name": "Google Analytics (universal)",
  1069. "uri": "https://support.google.com/analytics/answer/6004245",
  1070. "needConsent": true,
  1071. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  1072. "js": function () {
  1073. "use strict";
  1074. window.GoogleAnalyticsObject = 'ga';
  1075. window.ga = window.ga || function () {
  1076. window.ga.q = window.ga.q || [];
  1077. window.ga.q.push(arguments);
  1078. };
  1079. window.ga.l = new Date();
  1080. tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
  1081. var uaCreate = {'cookieExpires': 34128000};
  1082. tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
  1083. ga('create', tarteaucitron.user.analyticsUa, uaCreate);
  1084. if (tarteaucitron.user.analyticsAnonymizeIp) {
  1085. ga('set', 'anonymizeIp', true);
  1086. }
  1087. if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
  1088. tarteaucitron.user.analyticsPrepare();
  1089. }
  1090. if (tarteaucitron.user.analyticsPageView) {
  1091. ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
  1092. } else {
  1093. ga('send', 'pageview');
  1094. }
  1095. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  1096. tarteaucitron.user.analyticsMore();
  1097. }
  1098. });
  1099. }
  1100. };
  1101. // google analytics
  1102. tarteaucitron.services.gtag = {
  1103. "key": "gtag",
  1104. "type": "analytic",
  1105. "name": "Google Analytics (gtag.js)",
  1106. "uri": "https://support.google.com/analytics/answer/6004245",
  1107. "needConsent": true,
  1108. "cookies": (function () {
  1109. // Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
  1110. var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gtagUa;
  1111. gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
  1112. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie];
  1113. })(),
  1114. "js": function () {
  1115. "use strict";
  1116. window.dataLayer = window.dataLayer || [];
  1117. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  1118. window.gtag = function gtag(){dataLayer.push(arguments);}
  1119. gtag('js', new Date());
  1120. gtag('config', tarteaucitron.user.gtagUa);
  1121. if (typeof tarteaucitron.user.gtagMore === 'function') {
  1122. tarteaucitron.user.gtagMore();
  1123. }
  1124. });
  1125. }
  1126. };
  1127. // google maps
  1128. tarteaucitron.services.googlemaps = {
  1129. "key": "googlemaps",
  1130. "type": "api",
  1131. "name": "Google Maps",
  1132. "uri": "https://adssettings.google.com/",
  1133. "needConsent": true,
  1134. "cookies": [],
  1135. "js": function () {
  1136. "use strict";
  1137. var mapOptions,
  1138. map,
  1139. uniqIds = [],
  1140. i;
  1141. if (tarteaucitron.user.mapscallback === undefined) {
  1142. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1143. }
  1144. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1145. var googleMapsLibraries = '';
  1146. if (tarteaucitron.user.googlemapsLibraries) {
  1147. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1148. }
  1149. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback + googleMapsLibraries);
  1150. window.tac_googlemaps_callback = function () {
  1151. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1152. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1153. uniqIds.push(uniqId);
  1154. 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>';
  1155. });
  1156. for (i = 0; i < uniqIds.length; i += 1) {
  1157. mapOptions = {
  1158. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1159. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1160. };
  1161. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1162. }
  1163. };
  1164. },
  1165. "fallback": function () {
  1166. "use strict";
  1167. var id = 'googlemaps';
  1168. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1169. }
  1170. };
  1171. // googlemaps search
  1172. tarteaucitron.services.googlemapssearch = {
  1173. "key": "googlemapssearch",
  1174. "type": "api",
  1175. "name": "Google Maps Search API",
  1176. "uri": "https://adssettings.google.com/",
  1177. "needConsent": true,
  1178. "cookies": ['nid'],
  1179. "js": function () {
  1180. "use strict";
  1181. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1182. var width = x.getAttribute("width"),
  1183. height = x.getAttribute("height"),
  1184. // url = x.getAttribute("data-url");
  1185. query = escape(x.getAttribute("data-search")),
  1186. key = x.getAttribute("data-api-key");
  1187. // return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1188. 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> '
  1189. });
  1190. },
  1191. "fallback": function () {
  1192. "use strict";
  1193. var id = 'googlemapssearch';
  1194. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1195. elem.style.width = elem.getAttribute('width') + 'px';
  1196. elem.style.height = elem.getAttribute('height') + 'px';
  1197. return tarteaucitron.engage(id);
  1198. });
  1199. }
  1200. };
  1201. // googlemaps embed iframe
  1202. tarteaucitron.services.googlemapsembed = {
  1203. "key": "googlemapsembed",
  1204. "type": "api",
  1205. "name": "Google Maps Embed",
  1206. "uri": "https://adssettings.google.com/",
  1207. "needConsent": true,
  1208. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1209. "js": function () {
  1210. "use strict";
  1211. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1212. var width = tarteaucitron.getElemWidth(x),
  1213. height = tarteaucitron.getElemHeight(x),
  1214. url = x.getAttribute("data-url");
  1215. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1216. });
  1217. },
  1218. "fallback": function () {
  1219. "use strict";
  1220. var id = 'googlemapsembed';
  1221. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1222. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1223. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1224. return tarteaucitron.engage(id);
  1225. });
  1226. }
  1227. };
  1228. // google tag manager
  1229. tarteaucitron.services.googletagmanager = {
  1230. "key": "googletagmanager",
  1231. "type": "api",
  1232. "name": "Google Tag Manager",
  1233. "uri": "https://adssettings.google.com/",
  1234. "needConsent": true,
  1235. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1236. "js": function () {
  1237. "use strict";
  1238. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1239. return;
  1240. }
  1241. window.dataLayer = window.dataLayer || [];
  1242. window.dataLayer.push({
  1243. 'gtm.start': new Date().getTime(),
  1244. event: 'gtm.js'
  1245. });
  1246. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1247. }
  1248. };
  1249. // google tag manager multiple
  1250. tarteaucitron.services.multiplegoogletagmanager = {
  1251. "key": "multiplegoogletagmanager",
  1252. "type": "api",
  1253. "name": "Google Tag Manager",
  1254. "uri": "https://adssettings.google.com/",
  1255. "needConsent": true,
  1256. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1257. "js": function () {
  1258. "use strict";
  1259. if (tarteaucitron.user.multiplegoogletagmanagerId === undefined) {
  1260. return;
  1261. }
  1262. window.dataLayer = window.dataLayer || [];
  1263. window.dataLayer.push({
  1264. 'gtm.start': new Date().getTime(),
  1265. event: 'gtm.js'
  1266. });
  1267. tarteaucitron.user.multiplegoogletagmanagerId.forEach(function (id) {
  1268. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + id);
  1269. });
  1270. }
  1271. };
  1272. // google webfonts
  1273. tarteaucitron.services.googlefonts = {
  1274. "key": "googlefonts",
  1275. "type": "api",
  1276. "name": "Google Webfonts",
  1277. "uri": "https://www.google.com/intl/de/policies/privacy/",
  1278. "needConsent": true,
  1279. "cookies": [],
  1280. "js": function () {
  1281. "use strict";
  1282. if (tarteaucitron.user.googleFonts === undefined) {
  1283. return;
  1284. }
  1285. tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
  1286. WebFont.load({
  1287. google: {
  1288. families: tarteaucitron.user.googleFonts
  1289. }
  1290. });
  1291. });
  1292. }
  1293. };
  1294. // hubspot
  1295. tarteaucitron.services.hubspot = {
  1296. "key": "hubspot",
  1297. "type": "analytic",
  1298. "name": "Hubspot",
  1299. "uri": "https://legal.hubspot.com/privacy-policy",
  1300. "needConsent": true,
  1301. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1302. "js": function () {
  1303. "use strict";
  1304. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1305. }
  1306. };
  1307. // jsapi
  1308. tarteaucitron.services.jsapi = {
  1309. "key": "jsapi",
  1310. "type": "api",
  1311. "name": "Google jsapi",
  1312. "uri": "https://policies.google.com/privacy",
  1313. "needConsent": true,
  1314. "cookies": [],
  1315. "js": function () {
  1316. "use strict";
  1317. tarteaucitron.addScript('//www.google.com/jsapi');
  1318. }
  1319. };
  1320. // twitterwidgetsapi
  1321. tarteaucitron.services.twitterwidgetsapi = {
  1322. "key": "twitterwidgetsapi",
  1323. "type": "api",
  1324. "name": "Twitter Widgets API",
  1325. "uri": "https://support.twitter.com/articles/20170514",
  1326. "needConsent": true,
  1327. "cookies": [],
  1328. "js": function () {
  1329. "use strict";
  1330. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1331. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1332. },
  1333. "fallback": function () {
  1334. "use strict";
  1335. var id = 'twitterwidgetsapi';
  1336. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1337. }
  1338. };
  1339. // recaptcha
  1340. tarteaucitron.services.recaptcha = {
  1341. "key": "recaptcha",
  1342. "type": "api",
  1343. "name": "reCAPTCHA",
  1344. "uri": "https://policies.google.com/privacy",
  1345. "needConsent": true,
  1346. "cookies": ['nid'],
  1347. "js": function () {
  1348. "use strict";
  1349. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
  1350. tarteaucitron.fallback(['g-recaptcha'], '');
  1351. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  1352. },
  1353. "fallback": function () {
  1354. "use strict";
  1355. var id = 'recaptcha';
  1356. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1357. }
  1358. };
  1359. // linkedin
  1360. tarteaucitron.services.linkedin = {
  1361. "key": "linkedin",
  1362. "type": "social",
  1363. "name": "Linkedin",
  1364. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1365. "needConsent": true,
  1366. "cookies": [],
  1367. "js": function () {
  1368. "use strict";
  1369. tarteaucitron.fallback(['tacLinkedin'], '');
  1370. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1371. if (tarteaucitron.isAjax === true) {
  1372. if (typeof IN !== "undefined") {
  1373. IN.parse();
  1374. }
  1375. }
  1376. },
  1377. "fallback": function () {
  1378. "use strict";
  1379. var id = 'linkedin';
  1380. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1381. }
  1382. };
  1383. // mautic
  1384. tarteaucitron.services.mautic = {
  1385. "key": "mautic",
  1386. "type": "analytic",
  1387. "name": "Mautic",
  1388. "uri": "https://www.mautic.org/privacy-policy/",
  1389. "needConsent": true,
  1390. "cookies": ['mtc_id', 'mtc_sid'],
  1391. "js": function () {
  1392. "use strict";
  1393. if (tarteaucitron.user.mauticurl === undefined) {
  1394. return;
  1395. }
  1396. window.MauticTrackingObject = 'mt';
  1397. window.mt = window.mt || function () {
  1398. window.mt.q = window.mt.q || [];
  1399. window.mt.q.push(arguments);
  1400. };
  1401. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1402. mt('send', 'pageview');
  1403. });
  1404. }
  1405. };
  1406. // microsoftcampaignanalytics
  1407. tarteaucitron.services.microsoftcampaignanalytics = {
  1408. "key": "microsoftcampaignanalytics",
  1409. "type": "analytic",
  1410. "name": "Microsoft Campaign Analytics",
  1411. "uri": "https://privacy.microsoft.com/privacystatement/",
  1412. "needConsent": true,
  1413. "cookies": [],
  1414. "js": function () {
  1415. "use strict";
  1416. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1417. return;
  1418. }
  1419. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1420. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1421. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1422. });
  1423. }
  1424. };
  1425. // pinterest
  1426. tarteaucitron.services.pinterest = {
  1427. "key": "pinterest",
  1428. "type": "social",
  1429. "name": "Pinterest",
  1430. "uri": "https://about.pinterest.com/privacy-policy",
  1431. "needConsent": true,
  1432. "cookies": [],
  1433. "js": function () {
  1434. "use strict";
  1435. tarteaucitron.fallback(['tacPinterest'], '');
  1436. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1437. },
  1438. "fallback": function () {
  1439. "use strict";
  1440. var id = 'pinterest';
  1441. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1442. }
  1443. };
  1444. // prelinker
  1445. tarteaucitron.services.prelinker = {
  1446. "key": "prelinker",
  1447. "type": "ads",
  1448. "name": "Prelinker",
  1449. "uri": "http://www.prelinker.com/index/index/cgu/",
  1450. "needConsent": true,
  1451. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1452. "js": function () {
  1453. "use strict";
  1454. var uniqIds = [],
  1455. i,
  1456. uri;
  1457. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1458. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1459. uniqIds.push(uniqId);
  1460. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1461. });
  1462. for (i = 0; i < uniqIds.length; i += 1) {
  1463. uri = 'http://promo.easy-dating.org/banner/index?';
  1464. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1465. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1466. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1467. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1468. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1469. }
  1470. },
  1471. "fallback": function () {
  1472. "use strict";
  1473. var id = 'prelinker';
  1474. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1475. }
  1476. };
  1477. // prezi
  1478. tarteaucitron.services.prezi = {
  1479. "key": "prezi",
  1480. "type": "video",
  1481. "name": "Prezi",
  1482. "uri": "https://prezi.com/privacy-policy/",
  1483. "needConsent": true,
  1484. "cookies": [],
  1485. "js": function () {
  1486. "use strict";
  1487. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1488. var id = x.getAttribute("data-id"),
  1489. width = x.getAttribute("width"),
  1490. height = x.getAttribute("height"),
  1491. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1492. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1493. });
  1494. },
  1495. "fallback": function () {
  1496. "use strict";
  1497. var id = 'prezi';
  1498. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1499. elem.style.width = elem.getAttribute('width') + 'px';
  1500. elem.style.height = elem.getAttribute('height') + 'px';
  1501. return tarteaucitron.engage(id);
  1502. });
  1503. }
  1504. };
  1505. // pubdirecte
  1506. tarteaucitron.services.pubdirecte = {
  1507. "key": "pubdirecte",
  1508. "type": "ads",
  1509. "name": "Pubdirecte",
  1510. "uri": "http://pubdirecte.com/contact.php",
  1511. "needConsent": true,
  1512. "cookies": [],
  1513. "js": function () {
  1514. "use strict";
  1515. var uniqIds = [],
  1516. i,
  1517. uri;
  1518. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1519. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1520. uniqIds.push(uniqId);
  1521. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1522. });
  1523. for (i = 0; i < uniqIds.length; i += 1) {
  1524. uri = '//www.pubdirecte.com/script/banniere.php?';
  1525. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1526. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1527. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1528. }
  1529. },
  1530. "fallback": function () {
  1531. "use strict";
  1532. var id = 'pubdirecte';
  1533. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1534. }
  1535. };
  1536. // purechat
  1537. tarteaucitron.services.purechat = {
  1538. "key": "purechat",
  1539. "type": "support",
  1540. "name": "PureChat",
  1541. "uri": "https://www.purechat.com/privacy",
  1542. "needConsent": true,
  1543. "cookies": [],
  1544. "js": function () {
  1545. "use strict";
  1546. if (tarteaucitron.user.purechatId === undefined) {
  1547. return;
  1548. }
  1549. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1550. try {
  1551. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1552. } catch (e) {}
  1553. });
  1554. }
  1555. };
  1556. // rumbletalk
  1557. tarteaucitron.services.rumbletalk = {
  1558. "key": "rumbletalk",
  1559. "type": "social",
  1560. "name": "RumbleTalk",
  1561. "needConsent": true,
  1562. "cookies": ['AWSALB'],
  1563. "js": function () {
  1564. "use strict";
  1565. if (tarteaucitron.user.rumbletalkid === undefined) {
  1566. return;
  1567. }
  1568. tarteaucitron.addScript('https://rumbletalk.com/client/?' + tarteaucitron.user.rumbletalkid);
  1569. tarteaucitron.fallback(['rumbletalk'], function (x) {
  1570. var width = tarteaucitron.getElemWidth(x),
  1571. height = tarteaucitron.getElemHeight(x),
  1572. id = x.getAttribute("data-id");
  1573. return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
  1574. });
  1575. },
  1576. "fallback": function () {
  1577. "use strict";
  1578. var id = 'rumbletalk';
  1579. tarteaucitron.fallback(['rumbletalk'], function (elem) {
  1580. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1581. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1582. return tarteaucitron.engage(id);
  1583. });
  1584. }
  1585. };
  1586. // shareaholic
  1587. tarteaucitron.services.shareaholic = {
  1588. "key": "shareaholic",
  1589. "type": "social",
  1590. "name": "Shareaholic",
  1591. "uri": "https://shareaholic.com/privacy/choices",
  1592. "needConsent": true,
  1593. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1594. "js": function () {
  1595. "use strict";
  1596. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1597. return;
  1598. }
  1599. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1600. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1601. try {
  1602. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1603. } catch (e) {}
  1604. });
  1605. },
  1606. "fallback": function () {
  1607. "use strict";
  1608. var id = 'shareaholic';
  1609. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1610. }
  1611. };
  1612. // shareasale
  1613. tarteaucitron.services.shareasale = {
  1614. "key": "shareasale",
  1615. "type": "ads",
  1616. "name": "ShareASale",
  1617. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1618. "needConsent": true,
  1619. "cookies": [],
  1620. "js": function () {
  1621. "use strict";
  1622. var uniqIds = [],
  1623. i,
  1624. uri;
  1625. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1626. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1627. uniqIds.push(uniqId);
  1628. 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>';
  1629. });
  1630. for (i = 0; i < uniqIds.length; i += 1) {
  1631. uri = 'https://shareasale.com/sale.cfm?';
  1632. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1633. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1634. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1635. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1636. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1637. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1638. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1639. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1640. }
  1641. },
  1642. "fallback": function () {
  1643. "use strict";
  1644. var id = 'shareasale';
  1645. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1646. }
  1647. };
  1648. // sharethis
  1649. tarteaucitron.services.sharethis = {
  1650. "key": "sharethis",
  1651. "type": "social",
  1652. "name": "ShareThis",
  1653. "uri": "http://www.sharethis.com/legal/privacy/",
  1654. "needConsent": true,
  1655. "cookies": ['__unam'],
  1656. "js": function () {
  1657. "use strict";
  1658. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1659. return;
  1660. }
  1661. var switchTo5x = true,
  1662. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1663. tarteaucitron.fallback(['tacSharethis'], '');
  1664. tarteaucitron.addScript(uri, '', function () {
  1665. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1666. });
  1667. if (tarteaucitron.isAjax === true) {
  1668. if (typeof stButtons !== "undefined") {
  1669. stButtons.locateElements();
  1670. }
  1671. }
  1672. },
  1673. "fallback": function () {
  1674. "use strict";
  1675. var id = 'sharethis';
  1676. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1677. }
  1678. };
  1679. // slideshare
  1680. tarteaucitron.services.slideshare = {
  1681. "key": "slideshare",
  1682. "type": "video",
  1683. "name": "SlideShare",
  1684. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1685. "needConsent": true,
  1686. "cookies": [],
  1687. "js": function () {
  1688. "use strict";
  1689. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1690. var id = x.getAttribute("data-id"),
  1691. width = x.getAttribute("width"),
  1692. height = x.getAttribute("height"),
  1693. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1694. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1695. });
  1696. },
  1697. "fallback": function () {
  1698. "use strict";
  1699. var id = 'slideshare';
  1700. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1701. elem.style.width = elem.getAttribute('width') + 'px';
  1702. elem.style.height = elem.getAttribute('height') + 'px';
  1703. return tarteaucitron.engage(id);
  1704. });
  1705. }
  1706. };
  1707. // statcounter
  1708. tarteaucitron.services.statcounter = {
  1709. "key": "statcounter",
  1710. "type": "analytic",
  1711. "name": "StatCounter",
  1712. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1713. "needConsent": true,
  1714. "cookies": ['sc_is_visitor_unique'],
  1715. "js": function () {
  1716. "use strict";
  1717. var uniqIds = [],
  1718. i,
  1719. uri = '//statcounter.com/counter/counter.js';
  1720. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1721. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1722. uniqIds.push(uniqId);
  1723. return '<div id="' + uniqId + '"></div>';
  1724. });
  1725. for (i = 0; i < uniqIds.length; i += 1) {
  1726. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1727. }
  1728. },
  1729. "fallback": function () {
  1730. "use strict";
  1731. var id = 'statcounter';
  1732. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1733. }
  1734. };
  1735. // timelinejs
  1736. tarteaucitron.services.timelinejs = {
  1737. "key": "timelinejs",
  1738. "type": "api",
  1739. "name": "Timeline JS",
  1740. "uri": "http://timeline.knightlab.com/#help",
  1741. "needConsent": true,
  1742. "cookies": [],
  1743. "js": function () {
  1744. "use strict";
  1745. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1746. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1747. width = x.getAttribute("width"),
  1748. height = x.getAttribute("height"),
  1749. lang = x.getAttribute("lang_2_letter"),
  1750. font = x.getAttribute("font"),
  1751. map = x.getAttribute("map"),
  1752. start_at_end = x.getAttribute("start_at_end"),
  1753. hash_bookmark = x.getAttribute("hash_bookmark"),
  1754. start_at_slide = x.getAttribute("start_at_slide"),
  1755. start_zoom = x.getAttribute("start_zoom"),
  1756. 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;
  1757. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1758. });
  1759. },
  1760. "fallback": function () {
  1761. "use strict";
  1762. var id = 'timelinejs';
  1763. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1764. elem.style.width = elem.getAttribute('width') + 'px';
  1765. elem.style.height = elem.getAttribute('height') + 'px';
  1766. return tarteaucitron.engage(id);
  1767. });
  1768. }
  1769. };
  1770. // tagcommander
  1771. tarteaucitron.services.tagcommander = {
  1772. "key": "tagcommander",
  1773. "type": "api",
  1774. "name": "TagCommander",
  1775. "uri": "https://www.commandersact.com/en/privacy/",
  1776. "needConsent": true,
  1777. "cookies": [],
  1778. "js": function () {
  1779. "use strict";
  1780. if (tarteaucitron.user.tagcommanderid === undefined) {
  1781. return;
  1782. }
  1783. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  1784. }
  1785. };
  1786. // typekit
  1787. tarteaucitron.services.typekit = {
  1788. "key": "typekit",
  1789. "type": "api",
  1790. "name": "Typekit (adobe)",
  1791. "uri": "https://www.adobe.com/privacy.html",
  1792. "needConsent": true,
  1793. "cookies": [],
  1794. "js": function () {
  1795. "use strict";
  1796. if (tarteaucitron.user.typekitId === undefined) {
  1797. return;
  1798. }
  1799. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1800. try {
  1801. Typekit.load();
  1802. } catch (e) {}
  1803. });
  1804. }
  1805. };
  1806. // twenga
  1807. tarteaucitron.services.twenga = {
  1808. "key": "twenga",
  1809. "type": "ads",
  1810. "name": "Twenga",
  1811. "uri": "http://www.twenga.com/privacy.php",
  1812. "needConsent": true,
  1813. "cookies": [],
  1814. "js": function () {
  1815. "use strict";
  1816. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1817. return;
  1818. }
  1819. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1820. }
  1821. };
  1822. // twitter
  1823. tarteaucitron.services.twitter = {
  1824. "key": "twitter",
  1825. "type": "social",
  1826. "name": "Twitter",
  1827. "uri": "https://support.twitter.com/articles/20170514",
  1828. "needConsent": true,
  1829. "cookies": [],
  1830. "js": function () {
  1831. "use strict";
  1832. tarteaucitron.fallback(['tacTwitter'], '');
  1833. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1834. },
  1835. "fallback": function () {
  1836. "use strict";
  1837. var id = 'twitter';
  1838. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1839. }
  1840. };
  1841. // twitter embed
  1842. tarteaucitron.services.twitterembed = {
  1843. "key": "twitterembed",
  1844. "type": "social",
  1845. "name": "Twitter (cards)",
  1846. "uri": "https://support.twitter.com/articles/20170514",
  1847. "needConsent": true,
  1848. "cookies": [],
  1849. "js": function () {
  1850. "use strict";
  1851. var uniqIds = [],
  1852. i,
  1853. e,
  1854. html;
  1855. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1856. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1857. uniqIds.push(uniqId);
  1858. html = '<div id="' + uniqId + '" ';
  1859. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1860. html += 'theme="' + x.getAttribute('theme') + '" ';
  1861. html += 'cards="' + x.getAttribute('cards') + '" ';
  1862. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1863. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1864. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1865. html += '></div>';
  1866. return html;
  1867. });
  1868. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1869. for (i = 0; i < uniqIds.length; i += 1) {
  1870. e = document.getElementById(uniqIds[i]);
  1871. twttr.widgets.createTweet(
  1872. e.getAttribute('tweetid'),
  1873. e,
  1874. {
  1875. theme: e.getAttribute('theme'),
  1876. cards: e.getAttribute('cards'),
  1877. conversation: e.getAttribute('conversation'),
  1878. lang: tarteaucitron.getLanguage(),
  1879. dnt: true,
  1880. width: e.getAttribute('data-width'),
  1881. align: e.getAttribute('data-align')
  1882. }
  1883. );
  1884. }
  1885. });
  1886. },
  1887. "fallback": function () {
  1888. "use strict";
  1889. var id = 'twitterembed';
  1890. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1891. elem.style.width = elem.getAttribute('data-width') + 'px';
  1892. return tarteaucitron.engage(id);
  1893. });
  1894. }
  1895. };
  1896. // twitter timeline
  1897. tarteaucitron.services.twittertimeline = {
  1898. "key": "twittertimeline",
  1899. "type": "social",
  1900. "name": "Twitter (timelines)",
  1901. "uri": "https://support.twitter.com/articles/20170514",
  1902. "needConsent": true,
  1903. "cookies": [],
  1904. "js": function () {
  1905. "use strict";
  1906. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1907. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1908. },
  1909. "fallback": function () {
  1910. "use strict";
  1911. var id = 'twittertimeline';
  1912. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1913. }
  1914. };
  1915. // user voice
  1916. tarteaucitron.services.uservoice = {
  1917. "key": "uservoice",
  1918. "type": "support",
  1919. "name": "UserVoice",
  1920. "uri": "https://www.uservoice.com/privacy/",
  1921. "needConsent": true,
  1922. "cookies": [],
  1923. "js": function () {
  1924. "use strict";
  1925. if (tarteaucitron.user.userVoiceApi === undefined) {
  1926. return;
  1927. }
  1928. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1929. }
  1930. };
  1931. // vimeo
  1932. tarteaucitron.services.vimeo = {
  1933. "key": "vimeo",
  1934. "type": "video",
  1935. "name": "Vimeo",
  1936. "uri": "https://vimeo.com/privacy",
  1937. "needConsent": true,
  1938. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1939. "js": function () {
  1940. "use strict";
  1941. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1942. var video_width = x.getAttribute("data-width") || x.getAttribute("width"),
  1943. frame_width = 'width=',
  1944. video_height = x.getAttribute("data-height") || x.getAttribute("height"),
  1945. frame_height = 'height=',
  1946. video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
  1947. video_autopause = x.getAttribute("data-autopause") || '',
  1948. video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
  1949. video_background = x.getAttribute("data-background") || '',
  1950. video_byline = x.getAttribute("data-byline") || x.getAttribute("byline") || '',
  1951. video_color = x.getAttribute("data-color") || '',
  1952. video_controls = x.getAttribute("data-controls") || '',
  1953. video_loop = x.getAttribute("data-loop") || x.getAttribute("loop") || '',
  1954. video_maxheight = x.getAttribute("data-maxheight") || '',
  1955. video_maxwidth = x.getAttribute("data-maxwidth") || '',
  1956. video_muted = x.getAttribute("data-muted") || '',
  1957. video_playsinline = x.getAttribute("data-playsinline") || '',
  1958. video_portrait = x.getAttribute("data-portrait") || x.getAttribute("portrait") || '',
  1959. video_speed = x.getAttribute("data-speed") || '',
  1960. video_title = x.getAttribute("data-title") || x.getAttribute("title") || '',
  1961. video_transparent = x.getAttribute("data-transparent") || '',
  1962. video_frame;
  1963. if (video_id === undefined) {
  1964. return "";
  1965. }
  1966. if (video_width !== undefined) {
  1967. frame_width += '"' + video_width + '" ';
  1968. } else {
  1969. frame_width += '"" ';
  1970. }
  1971. if (video_height !== undefined) {
  1972. frame_height += '"' + video_height + '" ';
  1973. } else {
  1974. frame_height += '"" ';
  1975. }
  1976. var video_qs = "?";
  1977. if (video_title.length > 0) {
  1978. video_qs += "title=" + video_title;
  1979. }
  1980. if (video_byline.length > 0) {
  1981. if (video_qs.length > 0) {
  1982. video_qs += "&";
  1983. }
  1984. video_qs += "byline=" + video_byline;
  1985. }
  1986. if (video_portrait.length > 0) {
  1987. if (video_qs.length > 0) {
  1988. video_qs += "&";
  1989. }
  1990. video_qs += "portrait=" + video_portrait;
  1991. }
  1992. if (video_loop.length > 0) {
  1993. if (video_qs.length > 0) {
  1994. video_qs += "&";
  1995. }
  1996. video_qs += "loop=" + video_loop;
  1997. }
  1998. if (video_autoplay.length > 0) {
  1999. if (video_qs.length > 0) {
  2000. video_qs += "&";
  2001. }
  2002. video_qs += "autoplay=" + video_autoplay;
  2003. }
  2004. if (video_autopause.length > 0) {
  2005. if (video_qs.length > 0) {
  2006. video_qs += "&";
  2007. }
  2008. video_qs += "autopause=" + video_autopause;
  2009. }
  2010. if (video_background.length > 0) {
  2011. if (video_qs.length > 0) {
  2012. video_qs += "&";
  2013. }
  2014. video_qs += "background=" + video_background;
  2015. }
  2016. if (video_color.length > 0) {
  2017. if (video_qs.length > 0) {
  2018. video_qs += "&";
  2019. }
  2020. video_qs += "color=" + video_color;
  2021. }
  2022. if (video_controls.length > 0) {
  2023. if (video_qs.length > 0) {
  2024. video_qs += "&";
  2025. }
  2026. video_qs += "controls=" + video_controls;
  2027. }
  2028. if (video_maxheight.length > 0) {
  2029. if (video_qs.length > 0) {
  2030. video_qs += "&";
  2031. }
  2032. video_qs += "maxheight=" + video_maxheight;
  2033. }
  2034. if (video_maxwidth.length > 0) {
  2035. if (video_qs.length > 0) {
  2036. video_qs += "&";
  2037. }
  2038. video_qs += "maxwidth=" + video_maxwidth;
  2039. }
  2040. if (video_muted.length > 0) {
  2041. if (video_qs.length > 0) {
  2042. video_qs += "&";
  2043. }
  2044. video_qs += "muted=" + video_muted;
  2045. }
  2046. if (video_playsinline.length > 0) {
  2047. if (video_qs.length > 0) {
  2048. video_qs += "&";
  2049. }
  2050. video_qs += "playsinline=" + video_playsinline;
  2051. }
  2052. if (video_speed.length > 0) {
  2053. if (video_qs.length > 0) {
  2054. video_qs += "&";
  2055. }
  2056. video_qs += "speed=" + video_speed;
  2057. }
  2058. if (video_transparent.length > 0) {
  2059. if (video_qs.length > 0) {
  2060. video_qs += "&";
  2061. }
  2062. video_qs += "transparent=" + video_transparent;
  2063. }
  2064. if (video_qs === "?") {
  2065. video_qs = "";
  2066. }
  2067. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  2068. return video_frame;
  2069. });
  2070. },
  2071. "fallback": function () {
  2072. "use strict";
  2073. var id = 'vimeo';
  2074. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  2075. elem.style.width = elem.getAttribute('width') + 'px';
  2076. elem.style.height = elem.getAttribute('height') + 'px';
  2077. return tarteaucitron.engage(id);
  2078. });
  2079. }
  2080. };
  2081. // visualrevenue
  2082. tarteaucitron.services.visualrevenue = {
  2083. "key": "visualrevenue",
  2084. "type": "analytic",
  2085. "name": "VisualRevenue",
  2086. "uri": "http://www.outbrain.com/legal/privacy-713/",
  2087. "needConsent": true,
  2088. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  2089. "js": function () {
  2090. "use strict";
  2091. if (tarteaucitron.user.visualrevenueId === undefined) {
  2092. return;
  2093. }
  2094. window._vrq = window._vrq || [];
  2095. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  2096. window._vrq.push(['automate', true]);
  2097. window._vrq.push(['track', function () {}]);
  2098. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  2099. }
  2100. };
  2101. // vshop
  2102. tarteaucitron.services.vshop = {
  2103. "key": "vshop",
  2104. "type": "ads",
  2105. "name": "vShop",
  2106. "uri": "http://vshop.fr/privacy-policy",
  2107. "needConsent": true,
  2108. "cookies": [],
  2109. "js": function () {
  2110. "use strict";
  2111. tarteaucitron.fallback(['vcashW'], '');
  2112. tarteaucitron.addScript('//vshop.fr/js/w.js');
  2113. },
  2114. "fallback": function () {
  2115. "use strict";
  2116. var id = 'vshop';
  2117. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  2118. }
  2119. };
  2120. // wysistat
  2121. tarteaucitron.services.wysistat = {
  2122. "key": "wysistat",
  2123. "type": "analytic",
  2124. "name": "Wysistat",
  2125. "uri": "http://wysistat.net/contact/",
  2126. "needConsent": true,
  2127. "cookies": ['Wysistat'],
  2128. "js": function () {
  2129. "use strict";
  2130. if (tarteaucitron.user.wysistat === undefined) {
  2131. return;
  2132. }
  2133. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  2134. 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);
  2135. });
  2136. }
  2137. };
  2138. // xiti
  2139. tarteaucitron.services.xiti = {
  2140. "key": "xiti",
  2141. "type": "analytic",
  2142. "name": "Xiti",
  2143. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2144. "needConsent": true,
  2145. "cookies": [],
  2146. "js": function () {
  2147. "use strict";
  2148. if (tarteaucitron.user.xitiId === undefined) {
  2149. return;
  2150. }
  2151. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  2152. Xt_r,
  2153. Xt_h,
  2154. Xt_i,
  2155. Xt_s,
  2156. div = document.createElement('div');
  2157. try {
  2158. Xt_r = top.document.referrer;
  2159. } catch (e) {
  2160. Xt_r = document.referrer;
  2161. }
  2162. Xt_h = new Date();
  2163. Xt_i = '<img style="display:none" border="0" alt="" ';
  2164. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  2165. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  2166. if (parseFloat(navigator.appVersion) >= 4) {
  2167. Xt_s = screen;
  2168. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  2169. }
  2170. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  2171. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  2172. if (typeof tarteaucitron.user.xitiMore === 'function') {
  2173. tarteaucitron.user.xitiMore();
  2174. }
  2175. }
  2176. };
  2177. // AT Internet
  2178. tarteaucitron.services.atinternet = {
  2179. "key": "atinternet",
  2180. "type": "analytic",
  2181. "name": "AT Internet (privacy by design)",
  2182. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2183. "needConsent": false,
  2184. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2185. "js": function () {
  2186. "use strict";
  2187. if (tarteaucitron.user.atLibUrl === undefined) {
  2188. return;
  2189. }
  2190. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2191. var tag = new ATInternet.Tracker.Tag();
  2192. if (typeof tarteaucitron.user.atMore === 'function') {
  2193. tarteaucitron.user.atMore();
  2194. }
  2195. })
  2196. }
  2197. };
  2198. // AT Internet
  2199. tarteaucitron.services.atinternethightrack = {
  2200. "key": "atinternethightrack",
  2201. "type": "analytic",
  2202. "name": "AT Internet",
  2203. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2204. "needConsent": true,
  2205. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2206. "js": function () {
  2207. "use strict";
  2208. if (tarteaucitron.user.atLibUrl === undefined) {
  2209. return;
  2210. }
  2211. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2212. var tag = new ATInternet.Tracker.Tag();
  2213. if (typeof tarteaucitron.user.atMore === 'function') {
  2214. tarteaucitron.user.atMore();
  2215. }
  2216. })
  2217. }
  2218. };
  2219. // youtube
  2220. tarteaucitron.services.youtube = {
  2221. "key": "youtube",
  2222. "type": "video",
  2223. "name": "YouTube",
  2224. "uri": "https://policies.google.com/privacy",
  2225. "needConsent": true,
  2226. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2227. "js": function () {
  2228. "use strict";
  2229. tarteaucitron.fallback(['youtube_player'], function (x) {
  2230. var video_id = x.getAttribute("videoID"),
  2231. video_width = x.getAttribute("width"),
  2232. frame_width = 'width=',
  2233. video_height = x.getAttribute("height"),
  2234. frame_height = 'height=',
  2235. video_frame,
  2236. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2237. if (video_id === undefined) {
  2238. return "";
  2239. }
  2240. if (video_width !== undefined) {
  2241. frame_width += '"' + video_width + '" ';
  2242. } else {
  2243. frame_width += '"" ';
  2244. }
  2245. if (video_height !== undefined) {
  2246. frame_height += '"' + video_height + '" ';
  2247. } else {
  2248. frame_height += '"" ';
  2249. }
  2250. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0" allowfullscreen></iframe>';
  2251. return video_frame;
  2252. });
  2253. },
  2254. "fallback": function () {
  2255. "use strict";
  2256. var id = 'youtube';
  2257. tarteaucitron.fallback(['youtube_player'], function (elem) {
  2258. elem.style.width = elem.getAttribute('width') + 'px';
  2259. elem.style.height = elem.getAttribute('height') + 'px';
  2260. return tarteaucitron.engage(id);
  2261. });
  2262. }
  2263. };
  2264. // youtube playlist
  2265. tarteaucitron.services.youtubeplaylist = {
  2266. "key": "youtubeplaylist",
  2267. "type": "video",
  2268. "name": "YouTube (playlist)",
  2269. "uri": "https://policies.google.com/privacy",
  2270. "needConsent": true,
  2271. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2272. "js": function () {
  2273. "use strict";
  2274. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  2275. var playlist_id = x.getAttribute("playlistID"),
  2276. video_width = x.getAttribute("width"),
  2277. frame_width = 'width=',
  2278. video_height = x.getAttribute("height"),
  2279. frame_height = 'height=',
  2280. video_frame,
  2281. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2282. if (playlist_id === undefined) {
  2283. return "";
  2284. }
  2285. if (video_width !== undefined) {
  2286. frame_width += '"' + video_width + '" ';
  2287. } else {
  2288. frame_width += '"" ';
  2289. }
  2290. if (video_height !== undefined) {
  2291. frame_height += '"' + video_height + '" ';
  2292. } else {
  2293. frame_height += '"" ';
  2294. }
  2295. 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>';
  2296. return video_frame;
  2297. });
  2298. },
  2299. "fallback": function () {
  2300. "use strict";
  2301. var id = 'youtubeplaylist';
  2302. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  2303. elem.style.width = elem.getAttribute('width') + 'px';
  2304. elem.style.height = elem.getAttribute('height') + 'px';
  2305. return tarteaucitron.engage(id);
  2306. });
  2307. }
  2308. };
  2309. // zopim
  2310. tarteaucitron.services.zopim = {
  2311. "key": "zopim",
  2312. "type": "support",
  2313. "name": "Zopim",
  2314. "uri": "https://www.zopim.com/privacy",
  2315. "needConsent": true,
  2316. "cookies": ['__zlcid', '__zprivacy'],
  2317. "js": function () {
  2318. "use strict";
  2319. if (tarteaucitron.user.zopimID === undefined) {
  2320. return;
  2321. }
  2322. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  2323. }
  2324. };
  2325. // xiti smartTag
  2326. tarteaucitron.services.xiti_smarttag = {
  2327. "key": "xiti_smarttag",
  2328. "type": "analytic",
  2329. "name": "Xiti (SmartTag)",
  2330. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  2331. "needConsent": true,
  2332. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  2333. "js": function () {
  2334. "use strict";
  2335. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  2336. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  2337. } else {
  2338. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  2339. if (xitiSmarttagId === undefined) {
  2340. return;
  2341. }
  2342. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  2343. }
  2344. }
  2345. };
  2346. // facebook pixel
  2347. tarteaucitron.services.facebookpixel = {
  2348. "key": "facebookpixel",
  2349. "type": "ads",
  2350. "name": "Facebook Pixel",
  2351. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  2352. "needConsent": true,
  2353. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  2354. "js": function () {
  2355. "use strict";
  2356. var n;
  2357. if(window.fbq)return;
  2358. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2359. if(!window._fbq)window._fbq=n;
  2360. n.push=n;
  2361. n.loaded=!0;
  2362. n.version='2.0';
  2363. n.queue=[];
  2364. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2365. fbq('init', tarteaucitron.user.facebookpixelId);
  2366. fbq('track', 'PageView');
  2367. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2368. tarteaucitron.user.facebookpixelMore();
  2369. }
  2370. }
  2371. };
  2372. //Issuu
  2373. tarteaucitron.services.issuu = {
  2374. "key": "issuu",
  2375. "type": "other",
  2376. "name": "Issuu",
  2377. "uri": "https://issuu.com/legal/privacy",
  2378. "needConsent": true,
  2379. "cookies": ['__qca', 'iutk', 'mc'],
  2380. "js": function () {
  2381. "use strict";
  2382. tarteaucitron.fallback(['issuu_player'], function (x) {
  2383. var issuu_id = x.getAttribute("issuuID"),
  2384. issuu_width = x.getAttribute("width"),
  2385. frame_width = 'width=',
  2386. issuu_height = x.getAttribute("height"),
  2387. frame_height = 'height=',
  2388. issuu_frame;
  2389. if (issuu_id === undefined) {
  2390. return "";
  2391. }
  2392. if (issuu_width !== undefined) {
  2393. frame_width += '"' + issuu_width + '" ';
  2394. } else {
  2395. frame_width += '"" ';
  2396. }
  2397. if (issuu_height !== undefined) {
  2398. frame_height += '"' + issuu_height + '" ';
  2399. } else {
  2400. frame_height += '"" ';
  2401. }
  2402. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
  2403. return issuu_frame;
  2404. });
  2405. },
  2406. "fallback": function () {
  2407. "use strict";
  2408. var id = 'issuu';
  2409. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2410. elem.style.width = elem.getAttribute('width') + 'px';
  2411. elem.style.height = elem.getAttribute('height') + 'px';
  2412. return tarteaucitron.engage(id);
  2413. });
  2414. }
  2415. };
  2416. // webmecanik
  2417. tarteaucitron.services.webmecanik = {
  2418. "key": "webmecanik",
  2419. "type": "analytic",
  2420. "name": "Webmecanik",
  2421. "uri": "https://webmecanik.com/tos",
  2422. "needConsent": true,
  2423. "cookies": ['mtc_id', 'mtc_sid'],
  2424. "js": function () {
  2425. "use strict";
  2426. if (tarteaucitron.user.webmecanikurl === undefined) {
  2427. return;
  2428. }
  2429. window.MauticTrackingObject = 'mt';
  2430. window.mt = window.mt || function () {
  2431. window.mt.q = window.mt.q || [];
  2432. window.mt.q.push(arguments);
  2433. };
  2434. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2435. mt('send', 'pageview');
  2436. });
  2437. }
  2438. };
  2439. // google analytics multiple
  2440. tarteaucitron.services.multiplegtag = {
  2441. "key": "multiplegtag",
  2442. "type": "analytic",
  2443. "name": "Google Analytics (gtag.js)",
  2444. "uri": "https://support.google.com/analytics/answer/6004245",
  2445. "needConsent": true,
  2446. "cookies": (function () {
  2447. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2448. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2449. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2450. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2451. });
  2452. }
  2453. return cookies;
  2454. })(),
  2455. "js": function () {
  2456. "use strict";
  2457. window.dataLayer = window.dataLayer || [];
  2458. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2459. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2460. window.gtag = function gtag(){dataLayer.push(arguments);}
  2461. gtag('js', new Date());
  2462. gtag('config', ua);
  2463. });
  2464. });
  2465. }
  2466. };
  2467. // Koban
  2468. tarteaucitron.services.koban = {
  2469. "key": "koban",
  2470. "type": "analytic",
  2471. "name": "Koban",
  2472. "uri": "https://koban.cloud/tos",
  2473. "needConsent": true,
  2474. "cookies": ['kbntrk'],
  2475. "js": function () {
  2476. "use strict";
  2477. if (tarteaucitron.user.kobanurl === undefined) {
  2478. return;
  2479. }
  2480. if (tarteaucitron.user.kobanapi === undefined) {
  2481. return;
  2482. }
  2483. window.KobanObject = 'kb';
  2484. window.kb = window.kb || function() {
  2485. window.kb.q = window.kb.q || [];
  2486. window.kb.q.push(arguments);
  2487. };
  2488. window.kb.l = new Date();
  2489. kb('reg', tarteaucitron.user.kobanapi);
  2490. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  2491. });
  2492. }
  2493. };
  2494. // matomo
  2495. /*
  2496. 1. Set the following variable before the initialization :
  2497. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  2498. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  2499. 2. Push the service :
  2500. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  2501. 3. HTML
  2502. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2503. */
  2504. tarteaucitron.services.matomo = {
  2505. "key": "matomo",
  2506. "type": "analytic",
  2507. "name": "Matomo (privacy by design)",
  2508. "uri": "https://matomo.org/faq/general/faq_146/",
  2509. "needConsent": false,
  2510. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2511. "js": function () {
  2512. "use strict";
  2513. if (tarteaucitron.user.matomoId === undefined) {
  2514. return;
  2515. }
  2516. window._paq = window._paq || [];
  2517. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2518. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2519. window._paq.push(["setDoNotTrack", 1]);
  2520. window._paq.push(["trackPageView"]);
  2521. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2522. window._paq.push(["enableLinkTracking"]);
  2523. window._paq.push([function() {
  2524. var self = this;
  2525. function getOriginalVisitorCookieTimeout() {
  2526. var now = new Date(),
  2527. nowTs = Math.round(now.getTime() / 1000),
  2528. visitorInfo = self.getVisitorInfo();
  2529. var createTs = parseInt(visitorInfo[2]);
  2530. var cookieTimeout = 33696000; // 13 mois en secondes
  2531. var originalTimeout = createTs + cookieTimeout - nowTs;
  2532. return originalTimeout;
  2533. }
  2534. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  2535. }]);
  2536. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2537. // waiting for piwik to be ready to check first party cookies
  2538. var interval = setInterval(function() {
  2539. if (typeof Piwik === 'undefined') return
  2540. clearInterval(interval)
  2541. // make piwik/matomo cookie accessible by getting tracker
  2542. Piwik.getTracker();
  2543. // looping throught cookies
  2544. var theCookies = document.cookie.split(';');
  2545. for (var i = 1 ; i <= theCookies.length; i++) {
  2546. var cookie = theCookies[i-1].split('=');
  2547. var cookieName = cookie[0].trim();
  2548. // if cookie starts like a piwik one, register it
  2549. if (cookieName.indexOf('_pk_') === 0) {
  2550. tarteaucitron.services.matomo.cookies.push(cookieName);
  2551. }
  2552. }
  2553. }, 100)
  2554. }
  2555. };
  2556. tarteaucitron.services.matomohightrack = {
  2557. "key": "matomohightrack",
  2558. "type": "analytic",
  2559. "name": "Matomo",
  2560. "uri": "https://matomo.org/faq/general/faq_146/",
  2561. "needConsent": true,
  2562. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2563. "js": function () {
  2564. "use strict";
  2565. if (tarteaucitron.user.matomoId === undefined) {
  2566. return;
  2567. }
  2568. window._paq = window._paq || [];
  2569. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2570. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2571. window._paq.push(["trackPageView"]);
  2572. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2573. window._paq.push(["enableLinkTracking"]);
  2574. window._paq.push([function() {
  2575. var self = this;
  2576. }]);
  2577. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2578. // waiting for piwik to be ready to check first party cookies
  2579. var interval = setInterval(function() {
  2580. if (typeof Piwik === 'undefined') return
  2581. clearInterval(interval)
  2582. Piwik.getTracker();
  2583. var theCookies = document.cookie.split(';');
  2584. for (var i = 1 ; i <= theCookies.length; i++) {
  2585. var cookie = theCookies[i-1].split('=');
  2586. var cookieName = cookie[0].trim();
  2587. if (cookieName.indexOf('_pk_') === 0) {
  2588. tarteaucitron.services.matomo.cookies.push(cookieName);
  2589. }
  2590. }
  2591. }, 100)
  2592. }
  2593. };
  2594. // Hotjar
  2595. /*
  2596. 1. Set the following variable before the initialization :
  2597. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  2598. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  2599. 2. Push the service :
  2600. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  2601. 3. HTML
  2602. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2603. */
  2604. tarteaucitron.services.hotjar = {
  2605. "key": "hotjar",
  2606. "type": "analytic",
  2607. "name": "Hotjar",
  2608. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  2609. "needConsent": true,
  2610. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  2611. "js": function () {
  2612. "use strict";
  2613. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  2614. return;
  2615. }
  2616. window.hj = window.hj || function() {
  2617. (window.hj.q = window.hj.q || []).push(arguments)
  2618. };
  2619. window._hjSettings = {
  2620. hjid: tarteaucitron.user.hotjarId,
  2621. hjsv: tarteaucitron.user.HotjarSv
  2622. };
  2623. var uri = 'https://static.hotjar.com/c/hotjar-';
  2624. var extension = '.js?sv=';
  2625. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  2626. }
  2627. };
  2628. // bing ads universal event tracking
  2629. tarteaucitron.services.bingads = {
  2630. 'key': 'bingads',
  2631. 'type': 'ads',
  2632. 'name': 'Bing Ads Universal Event Tracking',
  2633. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  2634. 'needConsent': true,
  2635. 'cookies': ['_uetmsclkid'],
  2636. 'js': function () {
  2637. 'use strict';
  2638. var u = tarteaucitron.user.bingadsTag || 'uetq';
  2639. window[u] = window[u] || [];
  2640. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  2641. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  2642. if ('bingadsStoreCookies' in tarteaucitron.user) {
  2643. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  2644. }
  2645. bingadsCreate.q = window[u];
  2646. window[u] = new UET(bingadsCreate);
  2647. window[u].push('pageLoad');
  2648. });
  2649. }
  2650. };
  2651. //Matterport
  2652. /*
  2653. SERVICE INIT
  2654. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  2655. HTML TAG
  2656. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  2657. DELETE IFRAME
  2658. <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>'
  2659. */
  2660. tarteaucitron.services.matterport = {
  2661. "key": "matterport",
  2662. "type": "other",
  2663. "name": "Matterport",
  2664. "uri": "https://matterport.com/es/legal/privacy-policy/",
  2665. "needConsent": true,
  2666. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  2667. "js": function () {
  2668. "use strict";
  2669. tarteaucitron.fallback(['matterport'], function (x) {
  2670. var matterport_id = x.getAttribute("matterportID"),
  2671. matterport_width = x.getAttribute("width"),
  2672. frame_width = 'width=',
  2673. matterport_height = x.getAttribute("height"),
  2674. frame_height = 'height=',
  2675. matterport_parameters = x.getAttribute("parameters"),
  2676. matterport_frame;
  2677. if (matterport_id === undefined) {
  2678. return "";
  2679. }
  2680. if (matterport_width !== undefined) {
  2681. frame_width += '"' + matterport_width + '" ';
  2682. } else {
  2683. frame_width += '"" ';
  2684. }
  2685. if (matterport_height !== undefined) {
  2686. frame_height += '"' + matterport_height + '" ';
  2687. } else {
  2688. frame_height += '"" ';
  2689. }
  2690. if (matterport_parameters === undefined) {
  2691. return "";
  2692. }
  2693. 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>';
  2694. return matterport_frame;
  2695. });
  2696. },
  2697. "fallback": function () {
  2698. "use strict";
  2699. var id = 'matterport';
  2700. tarteaucitron.fallback(['matterport'], function (elem) {
  2701. elem.style.width = elem.getAttribute('width') + 'px';
  2702. elem.style.height = elem.getAttribute('height') + 'px';
  2703. return tarteaucitron.engage(id);
  2704. });
  2705. }
  2706. };
  2707. // Adform
  2708. tarteaucitron.services.adform = {
  2709. "key": "adform",
  2710. "type": "ads",
  2711. "name": "Adform",
  2712. "uri": "https://site.adform.com/privacy-center/overview/",
  2713. "needConsent": true,
  2714. "cookies": [],
  2715. "js": function () {
  2716. "use strict";
  2717. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  2718. return;
  2719. }
  2720. window._adftrack = {
  2721. pm: tarteaucitron.user.adformpm,
  2722. divider: encodeURIComponent('|'),
  2723. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  2724. };
  2725. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  2726. }
  2727. };
  2728. // Active Campaign
  2729. tarteaucitron.services.activecampaign = {
  2730. "key": "activecampaign",
  2731. "type": "ads",
  2732. "name": "Active Campaign",
  2733. "uri": "https://www.activecampaign.com/privacy-policy/",
  2734. "needConsent": true,
  2735. "cookies": [],
  2736. "js": function () {
  2737. "use strict";
  2738. if (tarteaucitron.user.actid === undefined) {
  2739. return;
  2740. }
  2741. window.trackcmp_email = '';
  2742. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  2743. }
  2744. };
  2745. // tawk.to
  2746. tarteaucitron.services.tawkto = {
  2747. "key": "tawkto",
  2748. "type": "support",
  2749. "name": "Tawk.to chat",
  2750. "uri": "https://www.tawk.to/data-protection/",
  2751. "needConsent": true,
  2752. "cookies": [],
  2753. "js": function () {
  2754. "use strict";
  2755. if (tarteaucitron.user.tawktoId === undefined) {
  2756. return;
  2757. }
  2758. window.Tawk_API=window.Tawk_API||{};
  2759. window.Tawk_LoadStart=new Date();
  2760. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  2761. }
  2762. };
  2763. // getquanty
  2764. tarteaucitron.services.getquanty = {
  2765. "key": "getquanty",
  2766. "type": "analytic",
  2767. "name": "GetQuanty",
  2768. "uri": "https://www.getquanty.com/mentions-legales/",
  2769. "needConsent": true,
  2770. "cookies": ['_first_pageview', 'eqy_sessionid', 'eqy_siteid','cluid','eqy_company', 'cluid', 'gq_utm', '_jsuid'],
  2771. "js": function () {
  2772. "use strict";
  2773. if (tarteaucitron.user.getguanty === undefined) {
  2774. return;
  2775. }
  2776. window.webleads_site_ids = window.webleads_site_ids || [];
  2777. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  2778. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  2779. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  2780. }
  2781. };
  2782. // emolytics
  2783. tarteaucitron.services.emolytics = {
  2784. "key": "emolytics",
  2785. "type": "analytic",
  2786. "name": "Emolytics",
  2787. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  2788. "needConsent": true,
  2789. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  2790. "js": function () {
  2791. "use strict";
  2792. if (tarteaucitron.user.emolyticsID === undefined) {
  2793. return;
  2794. }
  2795. var scriptEmolytics = document.createElement('script');
  2796. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  2797. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  2798. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  2799. }
  2800. };
  2801. // youtubeapi
  2802. tarteaucitron.services.youtubeapi = {
  2803. "key": "youtubeapi",
  2804. "type": "video",
  2805. "name": "Youtube (Js API)",
  2806. "uri": "https://policies.google.com/privacy/",
  2807. "needConsent": true,
  2808. "cookies": [],
  2809. "js": function () {
  2810. "use strict";
  2811. tarteaucitron.addScript('https://www.youtube.com/player_api');
  2812. }
  2813. };
  2814. // Facil'ITI
  2815. tarteaucitron.services.faciliti = {
  2816. "key": "faciliti",
  2817. "type": "other",
  2818. "name": "Facil'ITI",
  2819. "uri": "https://ws.facil-iti.com/mentions-legales.html",
  2820. "needConsent": true,
  2821. "cookies": ['FACIL_ITI_LS'],
  2822. "js": function () {
  2823. "use strict";
  2824. if (tarteaucitron.user.facilitiID === undefined) {
  2825. return;
  2826. }
  2827. (function(w, d, s, f) {
  2828. w[f] = w[f] || {conf: function () { (w[f].data = w[f].data || []).push(arguments);}};
  2829. var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
  2830. l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
  2831. }(window, document, 'script', 'FACIL_ITI'));
  2832. FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
  2833. }
  2834. };
  2835. // userlike
  2836. tarteaucitron.services.userlike = {
  2837. "key": "userlike",
  2838. "type": "support",
  2839. "name": "Userlike",
  2840. "uri": "https://www.userlike.com/en/terms#privacy-policy",
  2841. "needConsent": true,
  2842. "cookies": ['uslk_s', 'uslk_e'],
  2843. "js": function () {
  2844. "use strict";
  2845. if (tarteaucitron.user.userlikeKey === undefined) {
  2846. return;
  2847. }
  2848. tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
  2849. }
  2850. };
  2851. // adobeanalytics
  2852. tarteaucitron.services.adobeanalytics = {
  2853. "key": "adobeanalytics",
  2854. "type": "analytic",
  2855. "name": "Adobe Analytics",
  2856. "uri": "https://www.adobe.com/privacy/policy.html",
  2857. "needConsent": true,
  2858. "cookies": ['s_ecid', 's_cc', 's_sq', 's_vi', 's_fid'],
  2859. "js": function () {
  2860. "use strict";
  2861. if (tarteaucitron.user.adobeanalyticskey === undefined) {
  2862. return;
  2863. }
  2864. tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js');
  2865. }
  2866. };
  2867. // woopra customer journey analytics
  2868. tarteaucitron.services.woopra = {
  2869. 'key': 'woopra',
  2870. 'type': 'analytic',
  2871. 'name': 'Woopra Customer Journey Analytics',
  2872. 'uri': 'https://www.woopra.com/privacy',
  2873. 'needConsent': true,
  2874. 'cookies': ['wooTracker', 'intercom-session-erbfalba', 'intercom-id-erbfalba'],
  2875. 'js': function () {
  2876. 'use strict';
  2877. //var w = tarteaucitron.user.woopraDomain;
  2878. //window[w] = window[w] || [];
  2879. (function(){
  2880. 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)
  2881. })("woopra");
  2882. woopra.config({
  2883. domain: tarteaucitron.user.woopraDomain
  2884. });
  2885. woopra.track();
  2886. }
  2887. };