tarteaucitron.services.js 107 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047
  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 webfonts
  1250. tarteaucitron.services.googlefonts = {
  1251. "key": "googlefonts",
  1252. "type": "api",
  1253. "name": "Google Webfonts",
  1254. "uri": "https://www.google.com/intl/de/policies/privacy/",
  1255. "needConsent": true,
  1256. "cookies": [],
  1257. "js": function () {
  1258. "use strict";
  1259. if (tarteaucitron.user.googleFonts === undefined) {
  1260. return;
  1261. }
  1262. tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
  1263. WebFont.load({
  1264. google: {
  1265. families: tarteaucitron.user.googleFonts
  1266. }
  1267. });
  1268. });
  1269. }
  1270. };
  1271. // hubspot
  1272. tarteaucitron.services.hubspot = {
  1273. "key": "hubspot",
  1274. "type": "analytic",
  1275. "name": "Hubspot",
  1276. "uri": "https://legal.hubspot.com/privacy-policy",
  1277. "needConsent": true,
  1278. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1279. "js": function () {
  1280. "use strict";
  1281. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1282. }
  1283. };
  1284. // jsapi
  1285. tarteaucitron.services.jsapi = {
  1286. "key": "jsapi",
  1287. "type": "api",
  1288. "name": "Google jsapi",
  1289. "uri": "https://policies.google.com/privacy",
  1290. "needConsent": true,
  1291. "cookies": [],
  1292. "js": function () {
  1293. "use strict";
  1294. tarteaucitron.addScript('//www.google.com/jsapi');
  1295. }
  1296. };
  1297. // twitterwidgetsapi
  1298. tarteaucitron.services.twitterwidgetsapi = {
  1299. "key": "twitterwidgetsapi",
  1300. "type": "api",
  1301. "name": "Twitter Widgets API",
  1302. "uri": "https://support.twitter.com/articles/20170514",
  1303. "needConsent": true,
  1304. "cookies": [],
  1305. "js": function () {
  1306. "use strict";
  1307. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1308. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1309. },
  1310. "fallback": function () {
  1311. "use strict";
  1312. var id = 'twitterwidgetsapi';
  1313. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1314. }
  1315. };
  1316. // recaptcha
  1317. tarteaucitron.services.recaptcha = {
  1318. "key": "recaptcha",
  1319. "type": "api",
  1320. "name": "reCAPTCHA",
  1321. "uri": "https://policies.google.com/privacy",
  1322. "needConsent": true,
  1323. "cookies": ['nid'],
  1324. "js": function () {
  1325. "use strict";
  1326. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
  1327. tarteaucitron.fallback(['g-recaptcha'], '');
  1328. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  1329. },
  1330. "fallback": function () {
  1331. "use strict";
  1332. var id = 'recaptcha';
  1333. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1334. }
  1335. };
  1336. // linkedin
  1337. tarteaucitron.services.linkedin = {
  1338. "key": "linkedin",
  1339. "type": "social",
  1340. "name": "Linkedin",
  1341. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1342. "needConsent": true,
  1343. "cookies": [],
  1344. "js": function () {
  1345. "use strict";
  1346. tarteaucitron.fallback(['tacLinkedin'], '');
  1347. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1348. if (tarteaucitron.isAjax === true) {
  1349. if (typeof IN !== "undefined") {
  1350. IN.parse();
  1351. }
  1352. }
  1353. },
  1354. "fallback": function () {
  1355. "use strict";
  1356. var id = 'linkedin';
  1357. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1358. }
  1359. };
  1360. // mautic
  1361. tarteaucitron.services.mautic = {
  1362. "key": "mautic",
  1363. "type": "analytic",
  1364. "name": "Mautic",
  1365. "uri": "https://www.mautic.org/privacy-policy/",
  1366. "needConsent": true,
  1367. "cookies": ['mtc_id', 'mtc_sid'],
  1368. "js": function () {
  1369. "use strict";
  1370. if (tarteaucitron.user.mauticurl === undefined) {
  1371. return;
  1372. }
  1373. window.MauticTrackingObject = 'mt';
  1374. window.mt = window.mt || function () {
  1375. window.mt.q = window.mt.q || [];
  1376. window.mt.q.push(arguments);
  1377. };
  1378. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1379. mt('send', 'pageview');
  1380. });
  1381. }
  1382. };
  1383. // microsoftcampaignanalytics
  1384. tarteaucitron.services.microsoftcampaignanalytics = {
  1385. "key": "microsoftcampaignanalytics",
  1386. "type": "analytic",
  1387. "name": "Microsoft Campaign Analytics",
  1388. "uri": "https://privacy.microsoft.com/privacystatement/",
  1389. "needConsent": true,
  1390. "cookies": [],
  1391. "js": function () {
  1392. "use strict";
  1393. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1394. return;
  1395. }
  1396. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1397. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1398. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1399. });
  1400. }
  1401. };
  1402. // pinterest
  1403. tarteaucitron.services.pinterest = {
  1404. "key": "pinterest",
  1405. "type": "social",
  1406. "name": "Pinterest",
  1407. "uri": "https://about.pinterest.com/privacy-policy",
  1408. "needConsent": true,
  1409. "cookies": [],
  1410. "js": function () {
  1411. "use strict";
  1412. tarteaucitron.fallback(['tacPinterest'], '');
  1413. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1414. },
  1415. "fallback": function () {
  1416. "use strict";
  1417. var id = 'pinterest';
  1418. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1419. }
  1420. };
  1421. // prelinker
  1422. tarteaucitron.services.prelinker = {
  1423. "key": "prelinker",
  1424. "type": "ads",
  1425. "name": "Prelinker",
  1426. "uri": "http://www.prelinker.com/index/index/cgu/",
  1427. "needConsent": true,
  1428. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1429. "js": function () {
  1430. "use strict";
  1431. var uniqIds = [],
  1432. i,
  1433. uri;
  1434. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1435. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1436. uniqIds.push(uniqId);
  1437. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1438. });
  1439. for (i = 0; i < uniqIds.length; i += 1) {
  1440. uri = 'http://promo.easy-dating.org/banner/index?';
  1441. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1442. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1443. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1444. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1445. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1446. }
  1447. },
  1448. "fallback": function () {
  1449. "use strict";
  1450. var id = 'prelinker';
  1451. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1452. }
  1453. };
  1454. // prezi
  1455. tarteaucitron.services.prezi = {
  1456. "key": "prezi",
  1457. "type": "video",
  1458. "name": "Prezi",
  1459. "uri": "https://prezi.com/privacy-policy/",
  1460. "needConsent": true,
  1461. "cookies": [],
  1462. "js": function () {
  1463. "use strict";
  1464. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1465. var id = x.getAttribute("data-id"),
  1466. width = x.getAttribute("width"),
  1467. height = x.getAttribute("height"),
  1468. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1469. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1470. });
  1471. },
  1472. "fallback": function () {
  1473. "use strict";
  1474. var id = 'prezi';
  1475. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1476. elem.style.width = elem.getAttribute('width') + 'px';
  1477. elem.style.height = elem.getAttribute('height') + 'px';
  1478. return tarteaucitron.engage(id);
  1479. });
  1480. }
  1481. };
  1482. // pubdirecte
  1483. tarteaucitron.services.pubdirecte = {
  1484. "key": "pubdirecte",
  1485. "type": "ads",
  1486. "name": "Pubdirecte",
  1487. "uri": "http://pubdirecte.com/contact.php",
  1488. "needConsent": true,
  1489. "cookies": [],
  1490. "js": function () {
  1491. "use strict";
  1492. var uniqIds = [],
  1493. i,
  1494. uri;
  1495. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1496. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1497. uniqIds.push(uniqId);
  1498. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1499. });
  1500. for (i = 0; i < uniqIds.length; i += 1) {
  1501. uri = '//www.pubdirecte.com/script/banniere.php?';
  1502. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1503. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1504. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1505. }
  1506. },
  1507. "fallback": function () {
  1508. "use strict";
  1509. var id = 'pubdirecte';
  1510. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1511. }
  1512. };
  1513. // purechat
  1514. tarteaucitron.services.purechat = {
  1515. "key": "purechat",
  1516. "type": "support",
  1517. "name": "PureChat",
  1518. "uri": "https://www.purechat.com/privacy",
  1519. "needConsent": true,
  1520. "cookies": [],
  1521. "js": function () {
  1522. "use strict";
  1523. if (tarteaucitron.user.purechatId === undefined) {
  1524. return;
  1525. }
  1526. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1527. try {
  1528. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1529. } catch (e) {}
  1530. });
  1531. }
  1532. };
  1533. // rumbletalk
  1534. tarteaucitron.services.rumbletalk = {
  1535. "key": "rumbletalk",
  1536. "type": "social",
  1537. "name": "RumbleTalk",
  1538. "needConsent": true,
  1539. "cookies": ['AWSALB'],
  1540. "js": function () {
  1541. "use strict";
  1542. if (tarteaucitron.user.rumbletalkid === undefined) {
  1543. return;
  1544. }
  1545. tarteaucitron.addScript('https://rumbletalk.com/client/?' + tarteaucitron.user.rumbletalkid);
  1546. tarteaucitron.fallback(['rumbletalk'], function (x) {
  1547. var width = tarteaucitron.getElemWidth(x),
  1548. height = tarteaucitron.getElemHeight(x),
  1549. id = x.getAttribute("data-id");
  1550. return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
  1551. });
  1552. },
  1553. "fallback": function () {
  1554. "use strict";
  1555. var id = 'rumbletalk';
  1556. tarteaucitron.fallback(['rumbletalk'], function (elem) {
  1557. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1558. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1559. return tarteaucitron.engage(id);
  1560. });
  1561. }
  1562. };
  1563. // shareaholic
  1564. tarteaucitron.services.shareaholic = {
  1565. "key": "shareaholic",
  1566. "type": "social",
  1567. "name": "Shareaholic",
  1568. "uri": "https://shareaholic.com/privacy/choices",
  1569. "needConsent": true,
  1570. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1571. "js": function () {
  1572. "use strict";
  1573. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1574. return;
  1575. }
  1576. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1577. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1578. try {
  1579. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1580. } catch (e) {}
  1581. });
  1582. },
  1583. "fallback": function () {
  1584. "use strict";
  1585. var id = 'shareaholic';
  1586. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1587. }
  1588. };
  1589. // shareasale
  1590. tarteaucitron.services.shareasale = {
  1591. "key": "shareasale",
  1592. "type": "ads",
  1593. "name": "ShareASale",
  1594. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1595. "needConsent": true,
  1596. "cookies": [],
  1597. "js": function () {
  1598. "use strict";
  1599. var uniqIds = [],
  1600. i,
  1601. uri;
  1602. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1603. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1604. uniqIds.push(uniqId);
  1605. 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>';
  1606. });
  1607. for (i = 0; i < uniqIds.length; i += 1) {
  1608. uri = 'https://shareasale.com/sale.cfm?';
  1609. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1610. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1611. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1612. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1613. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1614. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1615. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1616. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1617. }
  1618. },
  1619. "fallback": function () {
  1620. "use strict";
  1621. var id = 'shareasale';
  1622. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1623. }
  1624. };
  1625. // sharethis
  1626. tarteaucitron.services.sharethis = {
  1627. "key": "sharethis",
  1628. "type": "social",
  1629. "name": "ShareThis",
  1630. "uri": "http://www.sharethis.com/legal/privacy/",
  1631. "needConsent": true,
  1632. "cookies": ['__unam'],
  1633. "js": function () {
  1634. "use strict";
  1635. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1636. return;
  1637. }
  1638. var switchTo5x = true,
  1639. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1640. tarteaucitron.fallback(['tacSharethis'], '');
  1641. tarteaucitron.addScript(uri, '', function () {
  1642. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1643. });
  1644. if (tarteaucitron.isAjax === true) {
  1645. if (typeof stButtons !== "undefined") {
  1646. stButtons.locateElements();
  1647. }
  1648. }
  1649. },
  1650. "fallback": function () {
  1651. "use strict";
  1652. var id = 'sharethis';
  1653. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1654. }
  1655. };
  1656. // slideshare
  1657. tarteaucitron.services.slideshare = {
  1658. "key": "slideshare",
  1659. "type": "video",
  1660. "name": "SlideShare",
  1661. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1662. "needConsent": true,
  1663. "cookies": [],
  1664. "js": function () {
  1665. "use strict";
  1666. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1667. var id = x.getAttribute("data-id"),
  1668. width = x.getAttribute("width"),
  1669. height = x.getAttribute("height"),
  1670. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1671. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1672. });
  1673. },
  1674. "fallback": function () {
  1675. "use strict";
  1676. var id = 'slideshare';
  1677. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1678. elem.style.width = elem.getAttribute('width') + 'px';
  1679. elem.style.height = elem.getAttribute('height') + 'px';
  1680. return tarteaucitron.engage(id);
  1681. });
  1682. }
  1683. };
  1684. // statcounter
  1685. tarteaucitron.services.statcounter = {
  1686. "key": "statcounter",
  1687. "type": "analytic",
  1688. "name": "StatCounter",
  1689. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1690. "needConsent": true,
  1691. "cookies": ['sc_is_visitor_unique'],
  1692. "js": function () {
  1693. "use strict";
  1694. var uniqIds = [],
  1695. i,
  1696. uri = '//statcounter.com/counter/counter.js';
  1697. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1698. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1699. uniqIds.push(uniqId);
  1700. return '<div id="' + uniqId + '"></div>';
  1701. });
  1702. for (i = 0; i < uniqIds.length; i += 1) {
  1703. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1704. }
  1705. },
  1706. "fallback": function () {
  1707. "use strict";
  1708. var id = 'statcounter';
  1709. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1710. }
  1711. };
  1712. // timelinejs
  1713. tarteaucitron.services.timelinejs = {
  1714. "key": "timelinejs",
  1715. "type": "api",
  1716. "name": "Timeline JS",
  1717. "uri": "http://timeline.knightlab.com/#help",
  1718. "needConsent": true,
  1719. "cookies": [],
  1720. "js": function () {
  1721. "use strict";
  1722. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1723. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1724. width = x.getAttribute("width"),
  1725. height = x.getAttribute("height"),
  1726. lang = x.getAttribute("lang_2_letter"),
  1727. font = x.getAttribute("font"),
  1728. map = x.getAttribute("map"),
  1729. start_at_end = x.getAttribute("start_at_end"),
  1730. hash_bookmark = x.getAttribute("hash_bookmark"),
  1731. start_at_slide = x.getAttribute("start_at_slide"),
  1732. start_zoom = x.getAttribute("start_zoom"),
  1733. 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;
  1734. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1735. });
  1736. },
  1737. "fallback": function () {
  1738. "use strict";
  1739. var id = 'timelinejs';
  1740. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1741. elem.style.width = elem.getAttribute('width') + 'px';
  1742. elem.style.height = elem.getAttribute('height') + 'px';
  1743. return tarteaucitron.engage(id);
  1744. });
  1745. }
  1746. };
  1747. // tagcommander
  1748. tarteaucitron.services.tagcommander = {
  1749. "key": "tagcommander",
  1750. "type": "api",
  1751. "name": "TagCommander",
  1752. "uri": "https://www.commandersact.com/en/privacy/",
  1753. "needConsent": true,
  1754. "cookies": [],
  1755. "js": function () {
  1756. "use strict";
  1757. if (tarteaucitron.user.tagcommanderid === undefined) {
  1758. return;
  1759. }
  1760. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  1761. }
  1762. };
  1763. // typekit
  1764. tarteaucitron.services.typekit = {
  1765. "key": "typekit",
  1766. "type": "api",
  1767. "name": "Typekit (adobe)",
  1768. "uri": "https://www.adobe.com/privacy.html",
  1769. "needConsent": true,
  1770. "cookies": [],
  1771. "js": function () {
  1772. "use strict";
  1773. if (tarteaucitron.user.typekitId === undefined) {
  1774. return;
  1775. }
  1776. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1777. try {
  1778. Typekit.load();
  1779. } catch (e) {}
  1780. });
  1781. }
  1782. };
  1783. // twenga
  1784. tarteaucitron.services.twenga = {
  1785. "key": "twenga",
  1786. "type": "ads",
  1787. "name": "Twenga",
  1788. "uri": "http://www.twenga.com/privacy.php",
  1789. "needConsent": true,
  1790. "cookies": [],
  1791. "js": function () {
  1792. "use strict";
  1793. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1794. return;
  1795. }
  1796. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1797. }
  1798. };
  1799. // twitter
  1800. tarteaucitron.services.twitter = {
  1801. "key": "twitter",
  1802. "type": "social",
  1803. "name": "Twitter",
  1804. "uri": "https://support.twitter.com/articles/20170514",
  1805. "needConsent": true,
  1806. "cookies": [],
  1807. "js": function () {
  1808. "use strict";
  1809. tarteaucitron.fallback(['tacTwitter'], '');
  1810. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1811. },
  1812. "fallback": function () {
  1813. "use strict";
  1814. var id = 'twitter';
  1815. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1816. }
  1817. };
  1818. // twitter embed
  1819. tarteaucitron.services.twitterembed = {
  1820. "key": "twitterembed",
  1821. "type": "social",
  1822. "name": "Twitter (cards)",
  1823. "uri": "https://support.twitter.com/articles/20170514",
  1824. "needConsent": true,
  1825. "cookies": [],
  1826. "js": function () {
  1827. "use strict";
  1828. var uniqIds = [],
  1829. i,
  1830. e,
  1831. html;
  1832. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1833. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1834. uniqIds.push(uniqId);
  1835. html = '<div id="' + uniqId + '" ';
  1836. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1837. html += 'theme="' + x.getAttribute('theme') + '" ';
  1838. html += 'cards="' + x.getAttribute('cards') + '" ';
  1839. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1840. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1841. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1842. html += '></div>';
  1843. return html;
  1844. });
  1845. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1846. for (i = 0; i < uniqIds.length; i += 1) {
  1847. e = document.getElementById(uniqIds[i]);
  1848. twttr.widgets.createTweet(
  1849. e.getAttribute('tweetid'),
  1850. e,
  1851. {
  1852. theme: e.getAttribute('theme'),
  1853. cards: e.getAttribute('cards'),
  1854. conversation: e.getAttribute('conversation'),
  1855. lang: tarteaucitron.getLanguage(),
  1856. dnt: true,
  1857. width: e.getAttribute('data-width'),
  1858. align: e.getAttribute('data-align')
  1859. }
  1860. );
  1861. }
  1862. });
  1863. },
  1864. "fallback": function () {
  1865. "use strict";
  1866. var id = 'twitterembed';
  1867. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1868. elem.style.width = elem.getAttribute('data-width') + 'px';
  1869. return tarteaucitron.engage(id);
  1870. });
  1871. }
  1872. };
  1873. // twitter timeline
  1874. tarteaucitron.services.twittertimeline = {
  1875. "key": "twittertimeline",
  1876. "type": "social",
  1877. "name": "Twitter (timelines)",
  1878. "uri": "https://support.twitter.com/articles/20170514",
  1879. "needConsent": true,
  1880. "cookies": [],
  1881. "js": function () {
  1882. "use strict";
  1883. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1884. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1885. },
  1886. "fallback": function () {
  1887. "use strict";
  1888. var id = 'twittertimeline';
  1889. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1890. }
  1891. };
  1892. // user voice
  1893. tarteaucitron.services.uservoice = {
  1894. "key": "uservoice",
  1895. "type": "support",
  1896. "name": "UserVoice",
  1897. "uri": "https://www.uservoice.com/privacy/",
  1898. "needConsent": true,
  1899. "cookies": [],
  1900. "js": function () {
  1901. "use strict";
  1902. if (tarteaucitron.user.userVoiceApi === undefined) {
  1903. return;
  1904. }
  1905. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1906. }
  1907. };
  1908. // vimeo
  1909. tarteaucitron.services.vimeo = {
  1910. "key": "vimeo",
  1911. "type": "video",
  1912. "name": "Vimeo",
  1913. "uri": "https://vimeo.com/privacy",
  1914. "needConsent": true,
  1915. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1916. "js": function () {
  1917. "use strict";
  1918. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1919. var video_width = x.getAttribute("data-width") || x.getAttribute("width"),
  1920. frame_width = 'width=',
  1921. video_height = x.getAttribute("data-height") || x.getAttribute("height"),
  1922. frame_height = 'height=',
  1923. video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
  1924. video_autopause = x.getAttribute("data-autopause") || '',
  1925. video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
  1926. video_background = x.getAttribute("data-background") || '',
  1927. video_byline = x.getAttribute("data-byline") || x.getAttribute("byline") || '',
  1928. video_color = x.getAttribute("data-color") || '',
  1929. video_controls = x.getAttribute("data-controls") || '',
  1930. video_loop = x.getAttribute("data-loop") || x.getAttribute("loop") || '',
  1931. video_maxheight = x.getAttribute("data-maxheight") || '',
  1932. video_maxwidth = x.getAttribute("data-maxwidth") || '',
  1933. video_muted = x.getAttribute("data-muted") || '',
  1934. video_playsinline = x.getAttribute("data-playsinline") || '',
  1935. video_portrait = x.getAttribute("data-portrait") || x.getAttribute("portrait") || '',
  1936. video_speed = x.getAttribute("data-speed") || '',
  1937. video_title = x.getAttribute("data-title") || x.getAttribute("title") || '',
  1938. video_transparent = x.getAttribute("data-transparent") || '',
  1939. video_frame;
  1940. if (video_id === undefined) {
  1941. return "";
  1942. }
  1943. if (video_width !== undefined) {
  1944. frame_width += '"' + video_width + '" ';
  1945. } else {
  1946. frame_width += '"" ';
  1947. }
  1948. if (video_height !== undefined) {
  1949. frame_height += '"' + video_height + '" ';
  1950. } else {
  1951. frame_height += '"" ';
  1952. }
  1953. var video_qs = "?";
  1954. if (video_title.length > 0) {
  1955. video_qs += "title=" + video_title;
  1956. }
  1957. if (video_byline.length > 0) {
  1958. if (video_qs.length > 0) {
  1959. video_qs += "&";
  1960. }
  1961. video_qs += "byline=" + video_byline;
  1962. }
  1963. if (video_portrait.length > 0) {
  1964. if (video_qs.length > 0) {
  1965. video_qs += "&";
  1966. }
  1967. video_qs += "portrait=" + video_portrait;
  1968. }
  1969. if (video_loop.length > 0) {
  1970. if (video_qs.length > 0) {
  1971. video_qs += "&";
  1972. }
  1973. video_qs += "loop=" + video_loop;
  1974. }
  1975. if (video_autoplay.length > 0) {
  1976. if (video_qs.length > 0) {
  1977. video_qs += "&";
  1978. }
  1979. video_qs += "autoplay=" + video_autoplay;
  1980. }
  1981. if (video_autopause.length > 0) {
  1982. if (video_qs.length > 0) {
  1983. video_qs += "&";
  1984. }
  1985. video_qs += "autopause=" + video_autopause;
  1986. }
  1987. if (video_background.length > 0) {
  1988. if (video_qs.length > 0) {
  1989. video_qs += "&";
  1990. }
  1991. video_qs += "background=" + video_background;
  1992. }
  1993. if (video_color.length > 0) {
  1994. if (video_qs.length > 0) {
  1995. video_qs += "&";
  1996. }
  1997. video_qs += "color=" + video_color;
  1998. }
  1999. if (video_controls.length > 0) {
  2000. if (video_qs.length > 0) {
  2001. video_qs += "&";
  2002. }
  2003. video_qs += "controls=" + video_controls;
  2004. }
  2005. if (video_maxheight.length > 0) {
  2006. if (video_qs.length > 0) {
  2007. video_qs += "&";
  2008. }
  2009. video_qs += "maxheight=" + video_maxheight;
  2010. }
  2011. if (video_maxwidth.length > 0) {
  2012. if (video_qs.length > 0) {
  2013. video_qs += "&";
  2014. }
  2015. video_qs += "maxwidth=" + video_maxwidth;
  2016. }
  2017. if (video_muted.length > 0) {
  2018. if (video_qs.length > 0) {
  2019. video_qs += "&";
  2020. }
  2021. video_qs += "muted=" + video_muted;
  2022. }
  2023. if (video_playsinline.length > 0) {
  2024. if (video_qs.length > 0) {
  2025. video_qs += "&";
  2026. }
  2027. video_qs += "playsinline=" + video_playsinline;
  2028. }
  2029. if (video_speed.length > 0) {
  2030. if (video_qs.length > 0) {
  2031. video_qs += "&";
  2032. }
  2033. video_qs += "speed=" + video_speed;
  2034. }
  2035. if (video_transparent.length > 0) {
  2036. if (video_qs.length > 0) {
  2037. video_qs += "&";
  2038. }
  2039. video_qs += "transparent=" + video_transparent;
  2040. }
  2041. if (video_qs === "?") {
  2042. video_qs = "";
  2043. }
  2044. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  2045. return video_frame;
  2046. });
  2047. },
  2048. "fallback": function () {
  2049. "use strict";
  2050. var id = 'vimeo';
  2051. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  2052. elem.style.width = elem.getAttribute('width') + 'px';
  2053. elem.style.height = elem.getAttribute('height') + 'px';
  2054. return tarteaucitron.engage(id);
  2055. });
  2056. }
  2057. };
  2058. // visualrevenue
  2059. tarteaucitron.services.visualrevenue = {
  2060. "key": "visualrevenue",
  2061. "type": "analytic",
  2062. "name": "VisualRevenue",
  2063. "uri": "http://www.outbrain.com/legal/privacy-713/",
  2064. "needConsent": true,
  2065. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  2066. "js": function () {
  2067. "use strict";
  2068. if (tarteaucitron.user.visualrevenueId === undefined) {
  2069. return;
  2070. }
  2071. window._vrq = window._vrq || [];
  2072. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  2073. window._vrq.push(['automate', true]);
  2074. window._vrq.push(['track', function () {}]);
  2075. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  2076. }
  2077. };
  2078. // vshop
  2079. tarteaucitron.services.vshop = {
  2080. "key": "vshop",
  2081. "type": "ads",
  2082. "name": "vShop",
  2083. "uri": "http://vshop.fr/privacy-policy",
  2084. "needConsent": true,
  2085. "cookies": [],
  2086. "js": function () {
  2087. "use strict";
  2088. tarteaucitron.fallback(['vcashW'], '');
  2089. tarteaucitron.addScript('//vshop.fr/js/w.js');
  2090. },
  2091. "fallback": function () {
  2092. "use strict";
  2093. var id = 'vshop';
  2094. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  2095. }
  2096. };
  2097. // wysistat
  2098. tarteaucitron.services.wysistat = {
  2099. "key": "wysistat",
  2100. "type": "analytic",
  2101. "name": "Wysistat",
  2102. "uri": "http://wysistat.net/contact/",
  2103. "needConsent": true,
  2104. "cookies": ['Wysistat'],
  2105. "js": function () {
  2106. "use strict";
  2107. if (tarteaucitron.user.wysistat === undefined) {
  2108. return;
  2109. }
  2110. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  2111. 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);
  2112. });
  2113. }
  2114. };
  2115. // xiti
  2116. tarteaucitron.services.xiti = {
  2117. "key": "xiti",
  2118. "type": "analytic",
  2119. "name": "Xiti",
  2120. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2121. "needConsent": true,
  2122. "cookies": [],
  2123. "js": function () {
  2124. "use strict";
  2125. if (tarteaucitron.user.xitiId === undefined) {
  2126. return;
  2127. }
  2128. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  2129. Xt_r,
  2130. Xt_h,
  2131. Xt_i,
  2132. Xt_s,
  2133. div = document.createElement('div');
  2134. try {
  2135. Xt_r = top.document.referrer;
  2136. } catch (e) {
  2137. Xt_r = document.referrer;
  2138. }
  2139. Xt_h = new Date();
  2140. Xt_i = '<img style="display:none" border="0" alt="" ';
  2141. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  2142. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  2143. if (parseFloat(navigator.appVersion) >= 4) {
  2144. Xt_s = screen;
  2145. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  2146. }
  2147. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  2148. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  2149. if (typeof tarteaucitron.user.xitiMore === 'function') {
  2150. tarteaucitron.user.xitiMore();
  2151. }
  2152. }
  2153. };
  2154. // AT Internet
  2155. tarteaucitron.services.atinternet = {
  2156. "key": "atinternet",
  2157. "type": "analytic",
  2158. "name": "AT Internet",
  2159. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2160. "needConsent": false,
  2161. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2162. "js": function () {
  2163. "use strict";
  2164. if (tarteaucitron.user.atLibUrl === undefined) {
  2165. return;
  2166. }
  2167. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2168. var tag = new ATInternet.Tracker.Tag();
  2169. if (typeof tarteaucitron.user.atMore === 'function') {
  2170. tarteaucitron.user.atMore();
  2171. }
  2172. })
  2173. }
  2174. };
  2175. // youtube
  2176. tarteaucitron.services.youtube = {
  2177. "key": "youtube",
  2178. "type": "video",
  2179. "name": "YouTube",
  2180. "uri": "https://policies.google.com/privacy",
  2181. "needConsent": true,
  2182. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2183. "js": function () {
  2184. "use strict";
  2185. tarteaucitron.fallback(['youtube_player'], function (x) {
  2186. var video_id = x.getAttribute("videoID"),
  2187. video_width = x.getAttribute("width"),
  2188. frame_width = 'width=',
  2189. video_height = x.getAttribute("height"),
  2190. frame_height = 'height=',
  2191. video_frame,
  2192. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2193. if (video_id === undefined) {
  2194. return "";
  2195. }
  2196. if (video_width !== undefined) {
  2197. frame_width += '"' + video_width + '" ';
  2198. } else {
  2199. frame_width += '"" ';
  2200. }
  2201. if (video_height !== undefined) {
  2202. frame_height += '"' + video_height + '" ';
  2203. } else {
  2204. frame_height += '"" ';
  2205. }
  2206. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0" allowfullscreen></iframe>';
  2207. return video_frame;
  2208. });
  2209. },
  2210. "fallback": function () {
  2211. "use strict";
  2212. var id = 'youtube';
  2213. tarteaucitron.fallback(['youtube_player'], function (elem) {
  2214. elem.style.width = elem.getAttribute('width') + 'px';
  2215. elem.style.height = elem.getAttribute('height') + 'px';
  2216. return tarteaucitron.engage(id);
  2217. });
  2218. }
  2219. };
  2220. // youtube playlist
  2221. tarteaucitron.services.youtubeplaylist = {
  2222. "key": "youtubeplaylist",
  2223. "type": "video",
  2224. "name": "YouTube (playlist)",
  2225. "uri": "https://policies.google.com/privacy",
  2226. "needConsent": true,
  2227. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2228. "js": function () {
  2229. "use strict";
  2230. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  2231. var playlist_id = x.getAttribute("playlistID"),
  2232. video_width = x.getAttribute("width"),
  2233. frame_width = 'width=',
  2234. video_height = x.getAttribute("height"),
  2235. frame_height = 'height=',
  2236. video_frame,
  2237. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2238. if (playlist_id === undefined) {
  2239. return "";
  2240. }
  2241. if (video_width !== undefined) {
  2242. frame_width += '"' + video_width + '" ';
  2243. } else {
  2244. frame_width += '"" ';
  2245. }
  2246. if (video_height !== undefined) {
  2247. frame_height += '"' + video_height + '" ';
  2248. } else {
  2249. frame_height += '"" ';
  2250. }
  2251. 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>';
  2252. return video_frame;
  2253. });
  2254. },
  2255. "fallback": function () {
  2256. "use strict";
  2257. var id = 'youtubeplaylist';
  2258. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  2259. elem.style.width = elem.getAttribute('width') + 'px';
  2260. elem.style.height = elem.getAttribute('height') + 'px';
  2261. return tarteaucitron.engage(id);
  2262. });
  2263. }
  2264. };
  2265. // zopim
  2266. tarteaucitron.services.zopim = {
  2267. "key": "zopim",
  2268. "type": "support",
  2269. "name": "Zopim",
  2270. "uri": "https://www.zopim.com/privacy",
  2271. "needConsent": true,
  2272. "cookies": ['__zlcid', '__zprivacy'],
  2273. "js": function () {
  2274. "use strict";
  2275. if (tarteaucitron.user.zopimID === undefined) {
  2276. return;
  2277. }
  2278. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  2279. }
  2280. };
  2281. // xiti smartTag
  2282. tarteaucitron.services.xiti_smarttag = {
  2283. "key": "xiti_smarttag",
  2284. "type": "analytic",
  2285. "name": "Xiti (SmartTag)",
  2286. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  2287. "needConsent": true,
  2288. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  2289. "js": function () {
  2290. "use strict";
  2291. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  2292. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  2293. } else {
  2294. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  2295. if (xitiSmarttagId === undefined) {
  2296. return;
  2297. }
  2298. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  2299. }
  2300. }
  2301. };
  2302. // facebook pixel
  2303. tarteaucitron.services.facebookpixel = {
  2304. "key": "facebookpixel",
  2305. "type": "ads",
  2306. "name": "Facebook Pixel",
  2307. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  2308. "needConsent": true,
  2309. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  2310. "js": function () {
  2311. "use strict";
  2312. var n;
  2313. if(window.fbq)return;
  2314. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2315. if(!window._fbq)window._fbq=n;
  2316. n.push=n;
  2317. n.loaded=!0;
  2318. n.version='2.0';
  2319. n.queue=[];
  2320. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2321. fbq('init', tarteaucitron.user.facebookpixelId);
  2322. fbq('track', 'PageView');
  2323. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2324. tarteaucitron.user.facebookpixelMore();
  2325. }
  2326. }
  2327. };
  2328. //Issuu
  2329. tarteaucitron.services.issuu = {
  2330. "key": "issuu",
  2331. "type": "other",
  2332. "name": "Issuu",
  2333. "uri": "https://issuu.com/legal/privacy",
  2334. "needConsent": true,
  2335. "cookies": ['__qca', 'iutk', 'mc'],
  2336. "js": function () {
  2337. "use strict";
  2338. tarteaucitron.fallback(['issuu_player'], function (x) {
  2339. var issuu_id = x.getAttribute("issuuID"),
  2340. issuu_width = x.getAttribute("width"),
  2341. frame_width = 'width=',
  2342. issuu_height = x.getAttribute("height"),
  2343. frame_height = 'height=',
  2344. issuu_frame;
  2345. if (issuu_id === undefined) {
  2346. return "";
  2347. }
  2348. if (issuu_width !== undefined) {
  2349. frame_width += '"' + issuu_width + '" ';
  2350. } else {
  2351. frame_width += '"" ';
  2352. }
  2353. if (issuu_height !== undefined) {
  2354. frame_height += '"' + issuu_height + '" ';
  2355. } else {
  2356. frame_height += '"" ';
  2357. }
  2358. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
  2359. return issuu_frame;
  2360. });
  2361. },
  2362. "fallback": function () {
  2363. "use strict";
  2364. var id = 'issuu';
  2365. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2366. elem.style.width = elem.getAttribute('width') + 'px';
  2367. elem.style.height = elem.getAttribute('height') + 'px';
  2368. return tarteaucitron.engage(id);
  2369. });
  2370. }
  2371. };
  2372. // webmecanik
  2373. tarteaucitron.services.webmecanik = {
  2374. "key": "webmecanik",
  2375. "type": "analytic",
  2376. "name": "Webmecanik",
  2377. "uri": "https://webmecanik.com/tos",
  2378. "needConsent": true,
  2379. "cookies": ['mtc_id', 'mtc_sid'],
  2380. "js": function () {
  2381. "use strict";
  2382. if (tarteaucitron.user.webmecanikurl === undefined) {
  2383. return;
  2384. }
  2385. window.MauticTrackingObject = 'mt';
  2386. window.mt = window.mt || function () {
  2387. window.mt.q = window.mt.q || [];
  2388. window.mt.q.push(arguments);
  2389. };
  2390. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2391. mt('send', 'pageview');
  2392. });
  2393. }
  2394. };
  2395. // google analytics multiple
  2396. tarteaucitron.services.multiplegtag = {
  2397. "key": "multiplegtag",
  2398. "type": "analytic",
  2399. "name": "Google Analytics (gtag.js)",
  2400. "uri": "https://support.google.com/analytics/answer/6004245",
  2401. "needConsent": true,
  2402. "cookies": (function () {
  2403. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2404. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2405. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2406. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2407. });
  2408. }
  2409. return cookies;
  2410. })(),
  2411. "js": function () {
  2412. "use strict";
  2413. window.dataLayer = window.dataLayer || [];
  2414. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2415. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2416. window.gtag = function gtag(){dataLayer.push(arguments);}
  2417. gtag('js', new Date());
  2418. gtag('config', ua);
  2419. });
  2420. });
  2421. }
  2422. };
  2423. // Koban
  2424. tarteaucitron.services.koban = {
  2425. "key": "koban",
  2426. "type": "analytic",
  2427. "name": "Koban",
  2428. "uri": "https://koban.cloud/tos",
  2429. "needConsent": true,
  2430. "cookies": ['kbntrk'],
  2431. "js": function () {
  2432. "use strict";
  2433. if (tarteaucitron.user.kobanurl === undefined) {
  2434. return;
  2435. }
  2436. if (tarteaucitron.user.kobanapi === undefined) {
  2437. return;
  2438. }
  2439. window.KobanObject = 'kb';
  2440. window.kb = window.kb || function() {
  2441. window.kb.q = window.kb.q || [];
  2442. window.kb.q.push(arguments);
  2443. };
  2444. window.kb.l = new Date();
  2445. kb('reg', tarteaucitron.user.kobanapi);
  2446. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  2447. });
  2448. }
  2449. };
  2450. // matomo
  2451. /*
  2452. 1. Set the following variable before the initialization :
  2453. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  2454. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  2455. 2. Push the service :
  2456. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  2457. 3. HTML
  2458. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2459. */
  2460. tarteaucitron.services.matomo = {
  2461. "key": "matomo",
  2462. "type": "analytic",
  2463. "name": "Matomo (formerly known as Piwik)",
  2464. "uri": "https://matomo.org/faq/general/faq_146/",
  2465. "needConsent": false,
  2466. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2467. "js": function () {
  2468. "use strict";
  2469. if (tarteaucitron.user.matomoId === undefined) {
  2470. return;
  2471. }
  2472. window._paq = window._paq || [];
  2473. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2474. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2475. window._paq.push(["setDoNotTrack", 1]);
  2476. window._paq.push(["trackPageView"]);
  2477. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2478. window._paq.push(["enableLinkTracking"]);
  2479. window._paq.push([function() {
  2480. var self = this;
  2481. function getOriginalVisitorCookieTimeout() {
  2482. var now = new Date(),
  2483. nowTs = Math.round(now.getTime() / 1000),
  2484. visitorInfo = self.getVisitorInfo();
  2485. var createTs = parseInt(visitorInfo[2]);
  2486. var cookieTimeout = 33696000; // 13 mois en secondes
  2487. var originalTimeout = createTs + cookieTimeout - nowTs;
  2488. return originalTimeout;
  2489. }
  2490. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  2491. }]);
  2492. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2493. // waiting for piwik to be ready to check first party cookies
  2494. var interval = setInterval(function() {
  2495. if (typeof Piwik === 'undefined') return
  2496. clearInterval(interval)
  2497. // make piwik/matomo cookie accessible by getting tracker
  2498. Piwik.getTracker();
  2499. // looping throught cookies
  2500. var theCookies = document.cookie.split(';');
  2501. for (var i = 1 ; i <= theCookies.length; i++) {
  2502. var cookie = theCookies[i-1].split('=');
  2503. var cookieName = cookie[0].trim();
  2504. // if cookie starts like a piwik one, register it
  2505. if (cookieName.indexOf('_pk_') === 0) {
  2506. tarteaucitron.services.matomo.cookies.push(cookieName);
  2507. }
  2508. }
  2509. }, 100)
  2510. }
  2511. };
  2512. // Hotjar
  2513. /*
  2514. 1. Set the following variable before the initialization :
  2515. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  2516. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  2517. 2. Push the service :
  2518. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  2519. 3. HTML
  2520. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2521. */
  2522. tarteaucitron.services.hotjar = {
  2523. "key": "hotjar",
  2524. "type": "analytic",
  2525. "name": "Hotjar",
  2526. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  2527. "needConsent": true,
  2528. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  2529. "js": function () {
  2530. "use strict";
  2531. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  2532. return;
  2533. }
  2534. window.hj = window.hj || function() {
  2535. (window.hj.q = window.hj.q || []).push(arguments)
  2536. };
  2537. window._hjSettings = {
  2538. hjid: tarteaucitron.user.hotjarId,
  2539. hjsv: tarteaucitron.user.HotjarSv
  2540. };
  2541. var uri = 'https://static.hotjar.com/c/hotjar-';
  2542. var extension = '.js?sv=';
  2543. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  2544. }
  2545. };
  2546. // bing ads universal event tracking
  2547. tarteaucitron.services.bingads = {
  2548. 'key': 'bingads',
  2549. 'type': 'ads',
  2550. 'name': 'Bing Ads Universal Event Tracking',
  2551. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  2552. 'needConsent': true,
  2553. 'cookies': ['_uetmsclkid'],
  2554. 'js': function () {
  2555. 'use strict';
  2556. var u = tarteaucitron.user.bingadsTag || 'uetq';
  2557. window[u] = window[u] || [];
  2558. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  2559. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  2560. if ('bingadsStoreCookies' in tarteaucitron.user) {
  2561. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  2562. }
  2563. bingadsCreate.q = window[u];
  2564. window[u] = new UET(bingadsCreate);
  2565. window[u].push('pageLoad');
  2566. });
  2567. }
  2568. };
  2569. //Matterport
  2570. /*
  2571. SERVICE INIT
  2572. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  2573. HTML TAG
  2574. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  2575. DELETE IFRAME
  2576. <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>'
  2577. */
  2578. tarteaucitron.services.matterport = {
  2579. "key": "matterport",
  2580. "type": "other",
  2581. "name": "Matterport",
  2582. "uri": "https://matterport.com/es/legal/privacy-policy/",
  2583. "needConsent": true,
  2584. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  2585. "js": function () {
  2586. "use strict";
  2587. tarteaucitron.fallback(['matterport'], function (x) {
  2588. var matterport_id = x.getAttribute("matterportID"),
  2589. matterport_width = x.getAttribute("width"),
  2590. frame_width = 'width=',
  2591. matterport_height = x.getAttribute("height"),
  2592. frame_height = 'height=',
  2593. matterport_parameters = x.getAttribute("parameters"),
  2594. matterport_frame;
  2595. if (matterport_id === undefined) {
  2596. return "";
  2597. }
  2598. if (matterport_width !== undefined) {
  2599. frame_width += '"' + matterport_width + '" ';
  2600. } else {
  2601. frame_width += '"" ';
  2602. }
  2603. if (matterport_height !== undefined) {
  2604. frame_height += '"' + matterport_height + '" ';
  2605. } else {
  2606. frame_height += '"" ';
  2607. }
  2608. if (matterport_parameters === undefined) {
  2609. return "";
  2610. }
  2611. 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>';
  2612. return matterport_frame;
  2613. });
  2614. },
  2615. "fallback": function () {
  2616. "use strict";
  2617. var id = 'matterport';
  2618. tarteaucitron.fallback(['matterport'], function (elem) {
  2619. elem.style.width = elem.getAttribute('width') + 'px';
  2620. elem.style.height = elem.getAttribute('height') + 'px';
  2621. return tarteaucitron.engage(id);
  2622. });
  2623. }
  2624. };
  2625. // Adform
  2626. tarteaucitron.services.adform = {
  2627. "key": "adform",
  2628. "type": "ads",
  2629. "name": "Adform",
  2630. "uri": "https://site.adform.com/privacy-center/overview/",
  2631. "needConsent": true,
  2632. "cookies": [],
  2633. "js": function () {
  2634. "use strict";
  2635. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  2636. return;
  2637. }
  2638. window._adftrack = {
  2639. pm: tarteaucitron.user.adformpm,
  2640. divider: encodeURIComponent('|'),
  2641. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  2642. };
  2643. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  2644. }
  2645. };
  2646. // Active Campaign
  2647. tarteaucitron.services.activecampaign = {
  2648. "key": "activecampaign",
  2649. "type": "ads",
  2650. "name": "Active Campaign",
  2651. "uri": "https://www.activecampaign.com/privacy-policy/",
  2652. "needConsent": true,
  2653. "cookies": [],
  2654. "js": function () {
  2655. "use strict";
  2656. if (tarteaucitron.user.actid === undefined) {
  2657. return;
  2658. }
  2659. window.trackcmp_email = '';
  2660. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  2661. }
  2662. };
  2663. // tawk.to
  2664. tarteaucitron.services.tawkto = {
  2665. "key": "tawkto",
  2666. "type": "support",
  2667. "name": "Tawk.to chat",
  2668. "uri": "https://www.tawk.to/data-protection/",
  2669. "needConsent": true,
  2670. "cookies": [],
  2671. "js": function () {
  2672. "use strict";
  2673. if (tarteaucitron.user.tawktoId === undefined) {
  2674. return;
  2675. }
  2676. window.Tawk_API=window.Tawk_API||{};
  2677. window.Tawk_LoadStart=new Date();
  2678. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  2679. }
  2680. };
  2681. // getquanty
  2682. tarteaucitron.services.getquanty = {
  2683. "key": "getquanty",
  2684. "type": "analytic",
  2685. "name": "GetQuanty",
  2686. "uri": "https://www.getquanty.com/mentions-legales/",
  2687. "needConsent": true,
  2688. "cookies": [],
  2689. "js": function () {
  2690. "use strict";
  2691. if (tarteaucitron.user.getguanty === undefined) {
  2692. return;
  2693. }
  2694. window.webleads_site_ids = window.webleads_site_ids || [];
  2695. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  2696. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  2697. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  2698. }
  2699. };
  2700. // emolytics
  2701. tarteaucitron.services.emolytics = {
  2702. "key": "emolytics",
  2703. "type": "analytic",
  2704. "name": "Emolytics",
  2705. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  2706. "needConsent": true,
  2707. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  2708. "js": function () {
  2709. "use strict";
  2710. if (tarteaucitron.user.emolyticsID === undefined) {
  2711. return;
  2712. }
  2713. var scriptEmolytics = document.createElement('script');
  2714. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  2715. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  2716. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  2717. }
  2718. };
  2719. // youtubeapi
  2720. tarteaucitron.services.youtubeapi = {
  2721. "key": "youtubeapi",
  2722. "type": "video",
  2723. "name": "Youtube (Js API)",
  2724. "uri": "https://policies.google.com/privacy/",
  2725. "needConsent": true,
  2726. "cookies": [],
  2727. "js": function () {
  2728. "use strict";
  2729. tarteaucitron.addScript('https://www.youtube.com/player_api');
  2730. }
  2731. };
  2732. // Facil'ITI
  2733. tarteaucitron.services.faciliti = {
  2734. "key": "faciliti",
  2735. "type": "other",
  2736. "name": "Facil'ITI",
  2737. "uri": "https://ws.facil-iti.com/mentions-legales.html",
  2738. "needConsent": true,
  2739. "cookies": ['FACIL_ITI_LS'],
  2740. "js": function () {
  2741. "use strict";
  2742. if (tarteaucitron.user.facilitiID === undefined) {
  2743. return;
  2744. }
  2745. (function(w, d, s, f) {
  2746. w[f] = w[f] || {conf: function () { (w[f].data = w[f].data || []).push(arguments);}};
  2747. var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
  2748. l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
  2749. }(window, document, 'script', 'FACIL_ITI'));
  2750. FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
  2751. }
  2752. };
  2753. // userlike
  2754. tarteaucitron.services.userlike = {
  2755. "key": "userlike",
  2756. "type": "support",
  2757. "name": "Userlike",
  2758. "uri": "https://www.userlike.com/en/terms#privacy-policy",
  2759. "needConsent": true,
  2760. "cookies": ['uslk_s', 'uslk_e'],
  2761. "js": function () {
  2762. "use strict";
  2763. if (tarteaucitron.user.userlikeKey === undefined) {
  2764. return;
  2765. }
  2766. tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
  2767. }
  2768. };