tarteaucitron.services.js 101 KB

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