tarteaucitron.services.js 96 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720
  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. // disqus
  573. tarteaucitron.services.disqus = {
  574. "key": "disqus",
  575. "type": "comment",
  576. "name": "Disqus",
  577. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  578. "needConsent": true,
  579. "cookies": [],
  580. "js": function () {
  581. "use strict";
  582. if (tarteaucitron.user.disqusShortname === undefined) {
  583. return;
  584. }
  585. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  586. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  587. },
  588. "fallback": function () {
  589. "use strict";
  590. var id = 'disqus';
  591. if (document.getElementById('disqus_thread')) {
  592. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  593. }
  594. }
  595. };
  596. // ekomi
  597. tarteaucitron.services.ekomi = {
  598. "key": "ekomi",
  599. "type": "social",
  600. "name": "eKomi",
  601. "uri": "http://www.ekomi-us.com/us/privacy/",
  602. "needConsent": true,
  603. "cookies": [],
  604. "js": function () {
  605. "use strict";
  606. if (tarteaucitron.user.ekomiCertId === undefined) {
  607. return;
  608. }
  609. window.eKomiIntegrationConfig = [
  610. {certId: tarteaucitron.user.ekomiCertId}
  611. ];
  612. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  613. }
  614. };
  615. // etracker
  616. tarteaucitron.services.etracker = {
  617. "key": "etracker",
  618. "type": "analytic",
  619. "name": "eTracker",
  620. "uri": "https://www.etracker.com/en/data-protection.html",
  621. "needConsent": true,
  622. "cookies": [],
  623. "js": function () {
  624. "use strict";
  625. if (tarteaucitron.user.etracker === undefined) {
  626. return;
  627. }
  628. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  629. }
  630. };
  631. // facebook
  632. tarteaucitron.services.facebook = {
  633. "key": "facebook",
  634. "type": "social",
  635. "name": "Facebook",
  636. "uri": "https://www.facebook.com/policies/cookies/",
  637. "needConsent": true,
  638. "cookies": [],
  639. "js": function () {
  640. "use strict";
  641. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], '');
  642. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  643. if (tarteaucitron.isAjax === true) {
  644. if (typeof FB !== "undefined") {
  645. FB.XFBML.parse();
  646. }
  647. }
  648. },
  649. "fallback": function () {
  650. "use strict";
  651. var id = 'facebook';
  652. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id));
  653. }
  654. };
  655. // facebooklikebox
  656. tarteaucitron.services.facebooklikebox = {
  657. "key": "facebooklikebox",
  658. "type": "social",
  659. "name": "Facebook (like box)",
  660. "uri": "https://www.facebook.com/policies/cookies/",
  661. "needConsent": true,
  662. "cookies": [],
  663. "js": function () {
  664. "use strict";
  665. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  666. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  667. if (tarteaucitron.isAjax === true) {
  668. if (typeof FB !== "undefined") {
  669. FB.XFBML.parse();
  670. }
  671. }
  672. },
  673. "fallback": function () {
  674. "use strict";
  675. var id = 'facebooklikebox';
  676. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  677. }
  678. };
  679. // facebookcomment
  680. tarteaucitron.services.facebookcomment = {
  681. "key": "facebookcomment",
  682. "type": "comment",
  683. "name": "Facebook (commentaire)",
  684. "uri": "https://www.facebook.com/policies/cookies/",
  685. "needConsent": true,
  686. "cookies": [],
  687. "js": function () {
  688. "use strict";
  689. tarteaucitron.fallback(['fb-comments'], '');
  690. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  691. if (tarteaucitron.isAjax === true) {
  692. if (typeof FB !== "undefined") {
  693. FB.XFBML.parse();
  694. }
  695. }
  696. },
  697. "fallback": function () {
  698. "use strict";
  699. var id = 'facebookcomment';
  700. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  701. }
  702. };
  703. // ferank
  704. tarteaucitron.services.ferank = {
  705. "key": "ferank",
  706. "type": "analytic",
  707. "name": "FERank",
  708. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  709. "needConsent": false,
  710. "cookies": [],
  711. "js": function () {
  712. "use strict";
  713. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  714. if (typeof tarteaucitron.user.ferankMore === 'function') {
  715. tarteaucitron.user.ferankMore();
  716. }
  717. });
  718. }
  719. };
  720. // ferank pub
  721. tarteaucitron.services.ferankpub = {
  722. "key": "ferankpub",
  723. "type": "ads",
  724. "name": "FERank (pub)",
  725. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  726. "needConsent": false,
  727. "cookies": [],
  728. "js": function () {
  729. "use strict";
  730. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  731. if (tarteaucitron.isAjax === true) {
  732. if (typeof ferankReady === 'function') {
  733. ferankReady();
  734. }
  735. }
  736. },
  737. "fallback": function () {
  738. "use strict";
  739. var id = 'ferankpub';
  740. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  741. }
  742. };
  743. // get+
  744. tarteaucitron.services.getplus = {
  745. "key": "getplus",
  746. "type": "analytic",
  747. "name": "Get+",
  748. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  749. "needConsent": true,
  750. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  751. "js": function () {
  752. "use strict";
  753. if (tarteaucitron.user.getplusId === undefined) {
  754. return;
  755. }
  756. window.webleads_site_ids = window.webleads_site_ids || [];
  757. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  758. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  759. }
  760. };
  761. // google+
  762. tarteaucitron.services.gplus = {
  763. "key": "gplus",
  764. "type": "social",
  765. "name": "Google+",
  766. "uri": "https://policies.google.com/privacy",
  767. "needConsent": true,
  768. "cookies": [],
  769. "js": function () {
  770. "use strict";
  771. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  772. },
  773. "fallback": function () {
  774. "use strict";
  775. var id = 'gplus';
  776. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  777. }
  778. };
  779. // google+ badge
  780. tarteaucitron.services.gplusbadge = {
  781. "key": "gplusbadge",
  782. "type": "social",
  783. "name": "Google+ (badge)",
  784. "uri": "https://policies.google.com/privacy",
  785. "needConsent": true,
  786. "cookies": [],
  787. "js": function () {
  788. "use strict";
  789. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  790. },
  791. "fallback": function () {
  792. "use strict";
  793. var id = 'gplusbadge';
  794. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  795. }
  796. };
  797. // google adsense
  798. tarteaucitron.services.adsense = {
  799. "key": "adsense",
  800. "type": "ads",
  801. "name": "Google Adsense",
  802. "uri": "https://adssettings.google.com/",
  803. "needConsent": true,
  804. "cookies": [],
  805. "js": function () {
  806. "use strict";
  807. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  808. },
  809. "fallback": function () {
  810. "use strict";
  811. var id = 'adsense';
  812. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  813. }
  814. };
  815. // google partners badge
  816. tarteaucitron.services.googlepartners = {
  817. "key": "googlepartners",
  818. "type": "ads",
  819. "name": "Google Partners Badge",
  820. "uri": "https://adssettings.google.com/",
  821. "needConsent": true,
  822. "cookies": [],
  823. "js": function () {
  824. "use strict";
  825. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  826. },
  827. "fallback": function () {
  828. "use strict";
  829. var id = 'googlepartners';
  830. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  831. }
  832. };
  833. // google adsense search (form)
  834. tarteaucitron.services.adsensesearchform = {
  835. "key": "adsensesearchform",
  836. "type": "ads",
  837. "name": "Google Adsense Search (form)",
  838. "uri": "https://adssettings.google.com/",
  839. "needConsent": true,
  840. "cookies": [],
  841. "js": function () {
  842. "use strict";
  843. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  844. }
  845. };
  846. // google adsense search (result)
  847. tarteaucitron.services.adsensesearchresult = {
  848. "key": "adsensesearchresult",
  849. "type": "ads",
  850. "name": "Google Adsense Search (result)",
  851. "uri": "https://adssettings.google.com/",
  852. "needConsent": true,
  853. "cookies": [],
  854. "js": function () {
  855. "use strict";
  856. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  857. return;
  858. }
  859. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  860. },
  861. "fallback": function () {
  862. "use strict";
  863. var id = 'adsensesearchresult';
  864. if (document.getElementById('gcse_searchresults')) {
  865. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  866. }
  867. }
  868. };
  869. // googleadwordsconversion
  870. tarteaucitron.services.googleadwordsconversion = {
  871. "key": "googleadwordsconversion",
  872. "type": "ads",
  873. "name": "Google Adwords (conversion)",
  874. "uri": "https://www.google.com/settings/ads",
  875. "needConsent": true,
  876. "cookies": [],
  877. "js": function () {
  878. "use strict";
  879. if (tarteaucitron.user.adwordsconversionId === undefined) {
  880. return;
  881. }
  882. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  883. window.google_trackConversion({
  884. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  885. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  886. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  887. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  888. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  889. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  890. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  891. google_custom_params: {
  892. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  893. parameter2: tarteaucitron.user.adwordsconversionCustom2
  894. }
  895. });
  896. });
  897. }
  898. };
  899. // googleadwordsremarketing
  900. tarteaucitron.services.googleadwordsremarketing = {
  901. "key": "googleadwordsremarketing",
  902. "type": "ads",
  903. "name": "Google Adwords (remarketing)",
  904. "uri": "https://www.google.com/settings/ads",
  905. "needConsent": true,
  906. "cookies": [],
  907. "js": function () {
  908. "use strict";
  909. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  910. return;
  911. }
  912. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  913. window.google_trackConversion({
  914. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  915. google_remarketing_only: true
  916. });
  917. });
  918. }
  919. };
  920. // google analytics (old)
  921. tarteaucitron.services.gajs = {
  922. "key": "gajs",
  923. "type": "analytic",
  924. "name": "Google Analytics (ga.js)",
  925. "uri": "https://support.google.com/analytics/answer/6004245",
  926. "needConsent": true,
  927. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  928. "js": function () {
  929. "use strict";
  930. window._gaq = window._gaq || [];
  931. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  932. if (tarteaucitron.user.gajsAnonymizeIp) {
  933. window._gaq.push (['_gat._anonymizeIp']);
  934. }
  935. if (tarteaucitron.user.gajsPageView) {
  936. window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
  937. } else {
  938. window._gaq.push(['_trackPageview']);
  939. }
  940. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  941. if (typeof tarteaucitron.user.gajsMore === 'function') {
  942. tarteaucitron.user.gajsMore();
  943. }
  944. });
  945. }
  946. };
  947. // google analytics
  948. tarteaucitron.services.analytics = {
  949. "key": "analytics",
  950. "type": "analytic",
  951. "name": "Google Analytics (universal)",
  952. "uri": "https://support.google.com/analytics/answer/6004245",
  953. "needConsent": true,
  954. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  955. "js": function () {
  956. "use strict";
  957. window.GoogleAnalyticsObject = 'ga';
  958. window.ga = window.ga || function () {
  959. window.ga.q = window.ga.q || [];
  960. window.ga.q.push(arguments);
  961. };
  962. window.ga.l = new Date();
  963. tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
  964. var uaCreate = {'cookieExpires': 34128000};
  965. tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
  966. ga('create', tarteaucitron.user.analyticsUa, uaCreate);
  967. if (tarteaucitron.user.analyticsAnonymizeIp) {
  968. ga('set', 'anonymizeIp', true);
  969. }
  970. if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
  971. tarteaucitron.user.analyticsPrepare();
  972. }
  973. if (tarteaucitron.user.analyticsPageView) {
  974. ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
  975. } else {
  976. ga('send', 'pageview');
  977. }
  978. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  979. tarteaucitron.user.analyticsMore();
  980. }
  981. });
  982. }
  983. };
  984. // google analytics
  985. tarteaucitron.services.gtag = {
  986. "key": "gtag",
  987. "type": "analytic",
  988. "name": "Google Analytics (gtag.js)",
  989. "uri": "https://support.google.com/analytics/answer/6004245",
  990. "needConsent": true,
  991. "cookies": (function () {
  992. // Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
  993. var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gtagUa;
  994. gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
  995. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie];
  996. })(),
  997. "js": function () {
  998. "use strict";
  999. window.dataLayer = window.dataLayer || [];
  1000. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  1001. window.gtag = function gtag(){dataLayer.push(arguments);}
  1002. gtag('js', new Date());
  1003. gtag('config', tarteaucitron.user.gtagUa);
  1004. if (typeof tarteaucitron.user.gtagMore === 'function') {
  1005. tarteaucitron.user.gtagMore();
  1006. }
  1007. });
  1008. }
  1009. };
  1010. // google maps
  1011. tarteaucitron.services.googlemaps = {
  1012. "key": "googlemaps",
  1013. "type": "api",
  1014. "name": "Google Maps",
  1015. "uri": "https://adssettings.google.com/",
  1016. "needConsent": true,
  1017. "cookies": [],
  1018. "js": function () {
  1019. "use strict";
  1020. var mapOptions,
  1021. map,
  1022. uniqIds = [],
  1023. i;
  1024. if (tarteaucitron.user.mapscallback === undefined) {
  1025. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1026. }
  1027. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1028. var googleMapsLibraries = '';
  1029. if (tarteaucitron.user.googlemapsLibraries) {
  1030. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1031. }
  1032. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback + googleMapsLibraries);
  1033. window.tac_googlemaps_callback = function () {
  1034. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1035. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1036. uniqIds.push(uniqId);
  1037. 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>';
  1038. });
  1039. for (i = 0; i < uniqIds.length; i += 1) {
  1040. mapOptions = {
  1041. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1042. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1043. };
  1044. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1045. }
  1046. };
  1047. },
  1048. "fallback": function () {
  1049. "use strict";
  1050. var id = 'googlemaps';
  1051. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1052. }
  1053. };
  1054. // googlemaps search
  1055. tarteaucitron.services.googlemapssearch = {
  1056. "key": "googlemapssearch",
  1057. "type": "api",
  1058. "name": "Google Maps Seard API",
  1059. "uri": "https://adssettings.google.com/",
  1060. "needConsent": true,
  1061. "cookies": ['nid'],
  1062. "js": function () {
  1063. "use strict";
  1064. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1065. var width = x.getAttribute("width"),
  1066. height = x.getAttribute("height"),
  1067. // url = x.getAttribute("data-url");
  1068. query = escape(x.getAttribute("data-search")),
  1069. key = x.getAttribute("data-api-key");
  1070. // return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1071. 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> '
  1072. });
  1073. },
  1074. "fallback": function () {
  1075. "use strict";
  1076. var id = 'googlemapssearch';
  1077. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1078. elem.style.width = elem.getAttribute('width') + 'px';
  1079. elem.style.height = elem.getAttribute('height') + 'px';
  1080. return tarteaucitron.engage(id);
  1081. });
  1082. }
  1083. };
  1084. // googlemaps embed iframe
  1085. tarteaucitron.services.googlemapsembed = {
  1086. "key": "googlemapsembed",
  1087. "type": "api",
  1088. "name": "Google Maps Embed",
  1089. "uri": "https://adssettings.google.com/",
  1090. "needConsent": true,
  1091. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1092. "js": function () {
  1093. "use strict";
  1094. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1095. var width = tarteaucitron.getElemWidth(x),
  1096. height = tarteaucitron.getElemHeight(x),
  1097. url = x.getAttribute("data-url");
  1098. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1099. });
  1100. },
  1101. "fallback": function () {
  1102. "use strict";
  1103. var id = 'googlemapsembed';
  1104. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1105. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1106. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1107. return tarteaucitron.engage(id);
  1108. });
  1109. }
  1110. };
  1111. // google tag manager
  1112. tarteaucitron.services.googletagmanager = {
  1113. "key": "googletagmanager",
  1114. "type": "api",
  1115. "name": "Google Tag Manager",
  1116. "uri": "https://adssettings.google.com/",
  1117. "needConsent": true,
  1118. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1119. "js": function () {
  1120. "use strict";
  1121. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1122. return;
  1123. }
  1124. window.dataLayer = window.dataLayer || [];
  1125. window.dataLayer.push({
  1126. 'gtm.start': new Date().getTime(),
  1127. event: 'gtm.js'
  1128. });
  1129. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1130. }
  1131. };
  1132. // hubspot
  1133. tarteaucitron.services.hubspot = {
  1134. "key": "hubspot",
  1135. "type": "analytic",
  1136. "name": "Hubspot",
  1137. "uri": "https://legal.hubspot.com/privacy-policy",
  1138. "needConsent": true,
  1139. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1140. "js": function () {
  1141. "use strict";
  1142. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1143. }
  1144. };
  1145. // jsapi
  1146. tarteaucitron.services.jsapi = {
  1147. "key": "jsapi",
  1148. "type": "api",
  1149. "name": "Google jsapi",
  1150. "uri": "https://policies.google.com/privacy",
  1151. "needConsent": true,
  1152. "cookies": [],
  1153. "js": function () {
  1154. "use strict";
  1155. tarteaucitron.addScript('//www.google.com/jsapi');
  1156. }
  1157. };
  1158. // twitterwidgetsapi
  1159. tarteaucitron.services.twitterwidgetsapi = {
  1160. "key": "twitterwidgetsapi",
  1161. "type": "api",
  1162. "name": "Twitter Widgets API",
  1163. "uri": "https://support.twitter.com/articles/20170514",
  1164. "needConsent": true,
  1165. "cookies": [],
  1166. "js": function () {
  1167. "use strict";
  1168. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1169. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1170. },
  1171. "fallback": function () {
  1172. "use strict";
  1173. var id = 'twitterwidgetsapi';
  1174. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1175. }
  1176. };
  1177. // recaptcha
  1178. tarteaucitron.services.recaptcha = {
  1179. "key": "recaptcha",
  1180. "type": "api",
  1181. "name": "reCAPTCHA",
  1182. "uri": "https://policies.google.com/privacy",
  1183. "needConsent": true,
  1184. "cookies": ['nid'],
  1185. "js": function () {
  1186. "use strict";
  1187. tarteaucitron.fallback(['g-recaptcha'], '');
  1188. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js');
  1189. },
  1190. "fallback": function () {
  1191. "use strict";
  1192. var id = 'recaptcha';
  1193. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1194. }
  1195. };
  1196. // linkedin
  1197. tarteaucitron.services.linkedin = {
  1198. "key": "linkedin",
  1199. "type": "social",
  1200. "name": "Linkedin",
  1201. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1202. "needConsent": true,
  1203. "cookies": [],
  1204. "js": function () {
  1205. "use strict";
  1206. tarteaucitron.fallback(['tacLinkedin'], '');
  1207. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1208. if (tarteaucitron.isAjax === true) {
  1209. if (typeof IN !== "undefined") {
  1210. IN.parse();
  1211. }
  1212. }
  1213. },
  1214. "fallback": function () {
  1215. "use strict";
  1216. var id = 'linkedin';
  1217. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1218. }
  1219. };
  1220. // mautic
  1221. tarteaucitron.services.mautic = {
  1222. "key": "mautic",
  1223. "type": "analytic",
  1224. "name": "Mautic",
  1225. "uri": "https://www.mautic.org/privacy-policy/",
  1226. "needConsent": true,
  1227. "cookies": ['mtc_id', 'mtc_sid'],
  1228. "js": function () {
  1229. "use strict";
  1230. if (tarteaucitron.user.mauticurl === undefined) {
  1231. return;
  1232. }
  1233. window['MauticTrackingObject'] = 'mt';
  1234. window['mt'] = window['mt'] || function() {
  1235. (window['mt'].q = window['mt'].q || []).push(arguments);
  1236. };
  1237. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1238. mt('send', 'pageview');
  1239. });
  1240. }
  1241. };
  1242. // microsoftcampaignanalytics
  1243. tarteaucitron.services.microsoftcampaignanalytics = {
  1244. "key": "microsoftcampaignanalytics",
  1245. "type": "analytic",
  1246. "name": "Microsoft Campaign Analytics",
  1247. "uri": "https://privacy.microsoft.com/privacystatement/",
  1248. "needConsent": true,
  1249. "cookies": [],
  1250. "js": function () {
  1251. "use strict";
  1252. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1253. return;
  1254. }
  1255. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1256. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1257. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1258. });
  1259. }
  1260. };
  1261. // pinterest
  1262. tarteaucitron.services.pinterest = {
  1263. "key": "pinterest",
  1264. "type": "social",
  1265. "name": "Pinterest",
  1266. "uri": "https://about.pinterest.com/privacy-policy",
  1267. "needConsent": true,
  1268. "cookies": [],
  1269. "js": function () {
  1270. "use strict";
  1271. tarteaucitron.fallback(['tacPinterest'], '');
  1272. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1273. },
  1274. "fallback": function () {
  1275. "use strict";
  1276. var id = 'pinterest';
  1277. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1278. }
  1279. };
  1280. // prelinker
  1281. tarteaucitron.services.prelinker = {
  1282. "key": "prelinker",
  1283. "type": "ads",
  1284. "name": "Prelinker",
  1285. "uri": "http://www.prelinker.com/index/index/cgu/",
  1286. "needConsent": true,
  1287. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1288. "js": function () {
  1289. "use strict";
  1290. var uniqIds = [],
  1291. i,
  1292. uri;
  1293. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1294. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1295. uniqIds.push(uniqId);
  1296. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1297. });
  1298. for (i = 0; i < uniqIds.length; i += 1) {
  1299. uri = 'http://promo.easy-dating.org/banner/index?';
  1300. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1301. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1302. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1303. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1304. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1305. }
  1306. },
  1307. "fallback": function () {
  1308. "use strict";
  1309. var id = 'prelinker';
  1310. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1311. }
  1312. };
  1313. // prezi
  1314. tarteaucitron.services.prezi = {
  1315. "key": "prezi",
  1316. "type": "video",
  1317. "name": "Prezi",
  1318. "uri": "https://prezi.com/privacy-policy/",
  1319. "needConsent": true,
  1320. "cookies": [],
  1321. "js": function () {
  1322. "use strict";
  1323. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1324. var id = x.getAttribute("data-id"),
  1325. width = x.getAttribute("width"),
  1326. height = x.getAttribute("height"),
  1327. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1328. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1329. });
  1330. },
  1331. "fallback": function () {
  1332. "use strict";
  1333. var id = 'prezi';
  1334. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1335. elem.style.width = elem.getAttribute('width') + 'px';
  1336. elem.style.height = elem.getAttribute('height') + 'px';
  1337. return tarteaucitron.engage(id);
  1338. });
  1339. }
  1340. };
  1341. // pubdirecte
  1342. tarteaucitron.services.pubdirecte = {
  1343. "key": "pubdirecte",
  1344. "type": "ads",
  1345. "name": "Pubdirecte",
  1346. "uri": "http://pubdirecte.com/contact.php",
  1347. "needConsent": true,
  1348. "cookies": [],
  1349. "js": function () {
  1350. "use strict";
  1351. var uniqIds = [],
  1352. i,
  1353. uri;
  1354. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1355. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1356. uniqIds.push(uniqId);
  1357. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1358. });
  1359. for (i = 0; i < uniqIds.length; i += 1) {
  1360. uri = '//www.pubdirecte.com/script/banniere.php?';
  1361. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1362. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1363. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1364. }
  1365. },
  1366. "fallback": function () {
  1367. "use strict";
  1368. var id = 'pubdirecte';
  1369. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1370. }
  1371. };
  1372. // purechat
  1373. tarteaucitron.services.purechat = {
  1374. "key": "purechat",
  1375. "type": "support",
  1376. "name": "PureChat",
  1377. "uri": "https://www.purechat.com/privacy",
  1378. "needConsent": true,
  1379. "cookies": [],
  1380. "js": function () {
  1381. "use strict";
  1382. if (tarteaucitron.user.purechatId === undefined) {
  1383. return;
  1384. }
  1385. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1386. try {
  1387. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1388. } catch (e) {}
  1389. });
  1390. }
  1391. };
  1392. // shareaholic
  1393. tarteaucitron.services.shareaholic = {
  1394. "key": "shareaholic",
  1395. "type": "social",
  1396. "name": "Shareaholic",
  1397. "uri": "https://shareaholic.com/privacy/choices",
  1398. "needConsent": true,
  1399. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1400. "js": function () {
  1401. "use strict";
  1402. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1403. return;
  1404. }
  1405. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1406. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1407. try {
  1408. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1409. } catch (e) {}
  1410. });
  1411. },
  1412. "fallback": function () {
  1413. "use strict";
  1414. var id = 'shareaholic';
  1415. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1416. }
  1417. };
  1418. // shareasale
  1419. tarteaucitron.services.shareasale = {
  1420. "key": "shareasale",
  1421. "type": "ads",
  1422. "name": "ShareASale",
  1423. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1424. "needConsent": true,
  1425. "cookies": [],
  1426. "js": function () {
  1427. "use strict";
  1428. var uniqIds = [],
  1429. i,
  1430. uri;
  1431. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1432. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1433. uniqIds.push(uniqId);
  1434. 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>';
  1435. });
  1436. for (i = 0; i < uniqIds.length; i += 1) {
  1437. uri = 'https://shareasale.com/sale.cfm?';
  1438. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1439. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1440. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1441. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1442. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1443. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1444. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1445. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1446. }
  1447. },
  1448. "fallback": function () {
  1449. "use strict";
  1450. var id = 'shareasale';
  1451. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1452. }
  1453. };
  1454. // sharethis
  1455. tarteaucitron.services.sharethis = {
  1456. "key": "sharethis",
  1457. "type": "social",
  1458. "name": "ShareThis",
  1459. "uri": "http://www.sharethis.com/legal/privacy/",
  1460. "needConsent": true,
  1461. "cookies": ['__unam'],
  1462. "js": function () {
  1463. "use strict";
  1464. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1465. return;
  1466. }
  1467. var switchTo5x = true,
  1468. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1469. tarteaucitron.fallback(['tacSharethis'], '');
  1470. tarteaucitron.addScript(uri, '', function () {
  1471. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1472. });
  1473. if (tarteaucitron.isAjax === true) {
  1474. if (typeof stButtons !== "undefined") {
  1475. stButtons.locateElements();
  1476. }
  1477. }
  1478. },
  1479. "fallback": function () {
  1480. "use strict";
  1481. var id = 'sharethis';
  1482. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1483. }
  1484. };
  1485. // slideshare
  1486. tarteaucitron.services.slideshare = {
  1487. "key": "slideshare",
  1488. "type": "video",
  1489. "name": "SlideShare",
  1490. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1491. "needConsent": true,
  1492. "cookies": [],
  1493. "js": function () {
  1494. "use strict";
  1495. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1496. var id = x.getAttribute("data-id"),
  1497. width = x.getAttribute("width"),
  1498. height = x.getAttribute("height"),
  1499. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1500. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1501. });
  1502. },
  1503. "fallback": function () {
  1504. "use strict";
  1505. var id = 'slideshare';
  1506. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1507. elem.style.width = elem.getAttribute('width') + 'px';
  1508. elem.style.height = elem.getAttribute('height') + 'px';
  1509. return tarteaucitron.engage(id);
  1510. });
  1511. }
  1512. };
  1513. // statcounter
  1514. tarteaucitron.services.statcounter = {
  1515. "key": "statcounter",
  1516. "type": "analytic",
  1517. "name": "StatCounter",
  1518. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1519. "needConsent": true,
  1520. "cookies": ['sc_is_visitor_unique'],
  1521. "js": function () {
  1522. "use strict";
  1523. var uniqIds = [],
  1524. i,
  1525. uri = '//statcounter.com/counter/counter.js';
  1526. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1527. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1528. uniqIds.push(uniqId);
  1529. return '<div id="' + uniqId + '"></div>';
  1530. });
  1531. for (i = 0; i < uniqIds.length; i += 1) {
  1532. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1533. }
  1534. },
  1535. "fallback": function () {
  1536. "use strict";
  1537. var id = 'statcounter';
  1538. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1539. }
  1540. };
  1541. // timelinejs
  1542. tarteaucitron.services.timelinejs = {
  1543. "key": "timelinejs",
  1544. "type": "api",
  1545. "name": "Timeline JS",
  1546. "uri": "http://timeline.knightlab.com/#help",
  1547. "needConsent": true,
  1548. "cookies": [],
  1549. "js": function () {
  1550. "use strict";
  1551. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1552. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1553. width = x.getAttribute("width"),
  1554. height = x.getAttribute("height"),
  1555. lang = x.getAttribute("lang_2_letter"),
  1556. font = x.getAttribute("font"),
  1557. map = x.getAttribute("map"),
  1558. start_at_end = x.getAttribute("start_at_end"),
  1559. hash_bookmark = x.getAttribute("hash_bookmark"),
  1560. start_at_slide = x.getAttribute("start_at_slide"),
  1561. start_zoom = x.getAttribute("start_zoom"),
  1562. 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;
  1563. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1564. });
  1565. },
  1566. "fallback": function () {
  1567. "use strict";
  1568. var id = 'timelinejs';
  1569. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1570. elem.style.width = elem.getAttribute('width') + 'px';
  1571. elem.style.height = elem.getAttribute('height') + 'px';
  1572. return tarteaucitron.engage(id);
  1573. });
  1574. }
  1575. };
  1576. // tagcommander
  1577. tarteaucitron.services.tagcommander = {
  1578. "key": "tagcommander",
  1579. "type": "api",
  1580. "name": "TagCommander",
  1581. "uri": "https://www.commandersact.com/en/privacy/",
  1582. "needConsent": true,
  1583. "cookies": [],
  1584. "js": function () {
  1585. "use strict";
  1586. if (tarteaucitron.user.tagcommanderid === undefined) {
  1587. return;
  1588. }
  1589. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  1590. }
  1591. };
  1592. // typekit
  1593. tarteaucitron.services.typekit = {
  1594. "key": "typekit",
  1595. "type": "api",
  1596. "name": "Typekit (adobe)",
  1597. "uri": "https://www.adobe.com/privacy.html",
  1598. "needConsent": true,
  1599. "cookies": [],
  1600. "js": function () {
  1601. "use strict";
  1602. if (tarteaucitron.user.typekitId === undefined) {
  1603. return;
  1604. }
  1605. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1606. try {
  1607. Typekit.load();
  1608. } catch (e) {}
  1609. });
  1610. }
  1611. };
  1612. // twenga
  1613. tarteaucitron.services.twenga = {
  1614. "key": "twenga",
  1615. "type": "ads",
  1616. "name": "Twenga",
  1617. "uri": "http://www.twenga.com/privacy.php",
  1618. "needConsent": true,
  1619. "cookies": [],
  1620. "js": function () {
  1621. "use strict";
  1622. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1623. return;
  1624. }
  1625. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1626. }
  1627. };
  1628. // twitter
  1629. tarteaucitron.services.twitter = {
  1630. "key": "twitter",
  1631. "type": "social",
  1632. "name": "Twitter",
  1633. "uri": "https://support.twitter.com/articles/20170514",
  1634. "needConsent": true,
  1635. "cookies": [],
  1636. "js": function () {
  1637. "use strict";
  1638. tarteaucitron.fallback(['tacTwitter'], '');
  1639. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1640. },
  1641. "fallback": function () {
  1642. "use strict";
  1643. var id = 'twitter';
  1644. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1645. }
  1646. };
  1647. // twitter embed
  1648. tarteaucitron.services.twitterembed = {
  1649. "key": "twitterembed",
  1650. "type": "social",
  1651. "name": "Twitter (cards)",
  1652. "uri": "https://support.twitter.com/articles/20170514",
  1653. "needConsent": true,
  1654. "cookies": [],
  1655. "js": function () {
  1656. "use strict";
  1657. var uniqIds = [],
  1658. i,
  1659. e,
  1660. html;
  1661. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1662. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1663. uniqIds.push(uniqId);
  1664. html = '<div id="' + uniqId + '" ';
  1665. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1666. html += 'theme="' + x.getAttribute('theme') + '" ';
  1667. html += 'cards="' + x.getAttribute('cards') + '" ';
  1668. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1669. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1670. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1671. html += '></div>';
  1672. return html;
  1673. });
  1674. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1675. for (i = 0; i < uniqIds.length; i += 1) {
  1676. e = document.getElementById(uniqIds[i]);
  1677. twttr.widgets.createTweet(
  1678. e.getAttribute('tweetid'),
  1679. e,
  1680. {
  1681. theme: e.getAttribute('theme'),
  1682. cards: e.getAttribute('cards'),
  1683. conversation: e.getAttribute('conversation'),
  1684. lang: tarteaucitron.getLanguage(),
  1685. dnt: true,
  1686. width: e.getAttribute('data-width'),
  1687. align: e.getAttribute('data-align')
  1688. }
  1689. );
  1690. }
  1691. });
  1692. },
  1693. "fallback": function () {
  1694. "use strict";
  1695. var id = 'twitterembed';
  1696. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1697. elem.style.width = elem.getAttribute('data-width') + 'px';
  1698. return tarteaucitron.engage(id);
  1699. });
  1700. }
  1701. };
  1702. // twitter timeline
  1703. tarteaucitron.services.twittertimeline = {
  1704. "key": "twittertimeline",
  1705. "type": "social",
  1706. "name": "Twitter (timelines)",
  1707. "uri": "https://support.twitter.com/articles/20170514",
  1708. "needConsent": true,
  1709. "cookies": [],
  1710. "js": function () {
  1711. "use strict";
  1712. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1713. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1714. },
  1715. "fallback": function () {
  1716. "use strict";
  1717. var id = 'twittertimeline';
  1718. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1719. }
  1720. };
  1721. // user voice
  1722. tarteaucitron.services.uservoice = {
  1723. "key": "uservoice",
  1724. "type": "support",
  1725. "name": "UserVoice",
  1726. "uri": "https://www.uservoice.com/privacy/",
  1727. "needConsent": true,
  1728. "cookies": [],
  1729. "js": function () {
  1730. "use strict";
  1731. if (tarteaucitron.user.userVoiceApi === undefined) {
  1732. return;
  1733. }
  1734. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1735. }
  1736. };
  1737. // vimeo
  1738. tarteaucitron.services.vimeo = {
  1739. "key": "vimeo",
  1740. "type": "video",
  1741. "name": "Vimeo",
  1742. "uri": "https://vimeo.com/privacy",
  1743. "needConsent": true,
  1744. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1745. "js": function () {
  1746. "use strict";
  1747. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1748. var video_id = x.getAttribute("videoID"),
  1749. video_width = x.getAttribute("width"),
  1750. frame_width = 'width=',
  1751. video_height = x.getAttribute("height"),
  1752. frame_height = 'height=',
  1753. video_title = x.getAttribute("title") || '',
  1754. video_byline = x.getAttribute("byline") || '',
  1755. video_portrait = x.getAttribute("portrait") || '',
  1756. video_loop = x.getAttribute("loop") || '',
  1757. video_autoplay = x.getAttribute("autoplay") || '',
  1758. video_frame;
  1759. var video_qs = '';
  1760. if (video_id === undefined) {
  1761. return "";
  1762. }
  1763. if (video_width !== undefined) {
  1764. frame_width += '"' + video_width + '" ';
  1765. } else {
  1766. frame_width += '"" ';
  1767. }
  1768. if (video_height !== undefined) {
  1769. frame_height += '"' + video_height + '" ';
  1770. } else {
  1771. frame_height += '"" ';
  1772. }
  1773. if (video_title.length > 0 || video_byline.length > 0 || video_portrait.length > 0) {
  1774. video_qs = "?";
  1775. if (video_title.length > 0) {
  1776. video_qs += "title=" + video_title;
  1777. }
  1778. if (video_byline.length > 0) {
  1779. if (video_qs.length > 1) {
  1780. video_qs += "&";
  1781. }
  1782. video_qs += "byline=" + video_byline;
  1783. }
  1784. if (video_portrait.length > 0) {
  1785. if (video_qs.length > 1) {
  1786. video_qs += "&";
  1787. }
  1788. video_qs += "portrait=" + video_portrait;
  1789. }
  1790. if (video_loop.length > 0) {
  1791. if (video_qs.length > 1) {
  1792. video_qs += "&";
  1793. }
  1794. video_qs += "loop=" + video_loop;
  1795. }
  1796. if (video_autoplay.length > 0) {
  1797. if (video_qs.length > 1) {
  1798. video_qs += "&";
  1799. }
  1800. video_qs += "autoplay=" + video_autoplay;
  1801. }
  1802. }
  1803. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1804. return video_frame;
  1805. });
  1806. },
  1807. "fallback": function () {
  1808. "use strict";
  1809. var id = 'vimeo';
  1810. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1811. elem.style.width = elem.getAttribute('width') + 'px';
  1812. elem.style.height = elem.getAttribute('height') + 'px';
  1813. return tarteaucitron.engage(id);
  1814. });
  1815. }
  1816. };
  1817. // visualrevenue
  1818. tarteaucitron.services.visualrevenue = {
  1819. "key": "visualrevenue",
  1820. "type": "analytic",
  1821. "name": "VisualRevenue",
  1822. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1823. "needConsent": true,
  1824. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1825. "js": function () {
  1826. "use strict";
  1827. if (tarteaucitron.user.visualrevenueId === undefined) {
  1828. return;
  1829. }
  1830. window._vrq = window._vrq || [];
  1831. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1832. window._vrq.push(['automate', true]);
  1833. window._vrq.push(['track', function () {}]);
  1834. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1835. }
  1836. };
  1837. // vshop
  1838. tarteaucitron.services.vshop = {
  1839. "key": "vshop",
  1840. "type": "ads",
  1841. "name": "vShop",
  1842. "uri": "http://vshop.fr/privacy-policy",
  1843. "needConsent": true,
  1844. "cookies": [],
  1845. "js": function () {
  1846. "use strict";
  1847. tarteaucitron.fallback(['vcashW'], '');
  1848. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1849. },
  1850. "fallback": function () {
  1851. "use strict";
  1852. var id = 'vshop';
  1853. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1854. }
  1855. };
  1856. // wysistat
  1857. tarteaucitron.services.wysistat = {
  1858. "key": "wysistat",
  1859. "type": "analytic",
  1860. "name": "Wysistat",
  1861. "uri": "http://wysistat.net/contact/",
  1862. "needConsent": true,
  1863. "cookies": ['Wysistat'],
  1864. "js": function () {
  1865. "use strict";
  1866. if (tarteaucitron.user.wysistat === undefined) {
  1867. return;
  1868. }
  1869. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1870. 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);
  1871. });
  1872. }
  1873. };
  1874. // xiti
  1875. tarteaucitron.services.xiti = {
  1876. "key": "xiti",
  1877. "type": "analytic",
  1878. "name": "Xiti",
  1879. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  1880. "needConsent": true,
  1881. "cookies": [],
  1882. "js": function () {
  1883. "use strict";
  1884. if (tarteaucitron.user.xitiId === undefined) {
  1885. return;
  1886. }
  1887. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1888. Xt_r,
  1889. Xt_h,
  1890. Xt_i,
  1891. Xt_s,
  1892. div = document.createElement('div');
  1893. try {
  1894. Xt_r = top.document.referrer;
  1895. } catch (e) {
  1896. Xt_r = document.referrer;
  1897. }
  1898. Xt_h = new Date();
  1899. Xt_i = '<img style="display:none" border="0" alt="" ';
  1900. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1901. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1902. if (parseFloat(navigator.appVersion) >= 4) {
  1903. Xt_s = screen;
  1904. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1905. }
  1906. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1907. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1908. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1909. tarteaucitron.user.xitiMore();
  1910. }
  1911. }
  1912. };
  1913. // AT Internet
  1914. tarteaucitron.services.atinternet = {
  1915. "key": "atinternet",
  1916. "type": "analytic",
  1917. "name": "AT Internet",
  1918. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  1919. "needConsent": true,
  1920. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  1921. "js": function () {
  1922. "use strict";
  1923. if (tarteaucitron.user.atLibUrl === undefined) {
  1924. return;
  1925. }
  1926. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  1927. var tag = new ATInternet.Tracker.Tag();
  1928. if (typeof tarteaucitron.user.atMore === 'function') {
  1929. tarteaucitron.user.atMore();
  1930. }
  1931. })
  1932. }
  1933. };
  1934. // youtube
  1935. tarteaucitron.services.youtube = {
  1936. "key": "youtube",
  1937. "type": "video",
  1938. "name": "YouTube",
  1939. "uri": "https://policies.google.com/privacy",
  1940. "needConsent": true,
  1941. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1942. "js": function () {
  1943. "use strict";
  1944. tarteaucitron.fallback(['youtube_player'], function (x) {
  1945. var video_id = x.getAttribute("videoID"),
  1946. video_width = x.getAttribute("width"),
  1947. frame_width = 'width=',
  1948. video_height = x.getAttribute("height"),
  1949. frame_height = 'height=',
  1950. video_frame,
  1951. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1952. if (video_id === undefined) {
  1953. return "";
  1954. }
  1955. if (video_width !== undefined) {
  1956. frame_width += '"' + video_width + '" ';
  1957. } else {
  1958. frame_width += '"" ';
  1959. }
  1960. if (video_height !== undefined) {
  1961. frame_height += '"' + video_height + '" ';
  1962. } else {
  1963. frame_height += '"" ';
  1964. }
  1965. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1966. return video_frame;
  1967. });
  1968. },
  1969. "fallback": function () {
  1970. "use strict";
  1971. var id = 'youtube';
  1972. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1973. elem.style.width = elem.getAttribute('width') + 'px';
  1974. elem.style.height = elem.getAttribute('height') + 'px';
  1975. return tarteaucitron.engage(id);
  1976. });
  1977. }
  1978. };
  1979. // youtube playlist
  1980. tarteaucitron.services.youtubeplaylist = {
  1981. "key": "youtubeplaylist",
  1982. "type": "video",
  1983. "name": "YouTube (playlist)",
  1984. "uri": "https://policies.google.com/privacy",
  1985. "needConsent": true,
  1986. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1987. "js": function () {
  1988. "use strict";
  1989. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  1990. var playlist_id = x.getAttribute("playlistID"),
  1991. video_width = x.getAttribute("width"),
  1992. frame_width = 'width=',
  1993. video_height = x.getAttribute("height"),
  1994. frame_height = 'height=',
  1995. video_frame,
  1996. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1997. if (playlist_id === undefined) {
  1998. return "";
  1999. }
  2000. if (video_width !== undefined) {
  2001. frame_width += '"' + video_width + '" ';
  2002. } else {
  2003. frame_width += '"" ';
  2004. }
  2005. if (video_height !== undefined) {
  2006. frame_height += '"' + video_height + '" ';
  2007. } else {
  2008. frame_height += '"" ';
  2009. }
  2010. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0"></iframe>';
  2011. return video_frame;
  2012. });
  2013. },
  2014. "fallback": function () {
  2015. "use strict";
  2016. var id = 'youtubeplaylist';
  2017. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  2018. elem.style.width = elem.getAttribute('width') + 'px';
  2019. elem.style.height = elem.getAttribute('height') + 'px';
  2020. return tarteaucitron.engage(id);
  2021. });
  2022. }
  2023. };
  2024. // zopim
  2025. tarteaucitron.services.zopim = {
  2026. "key": "zopim",
  2027. "type": "support",
  2028. "name": "Zopim",
  2029. "uri": "https://www.zopim.com/privacy",
  2030. "needConsent": true,
  2031. "cookies": ['__zlcid', '__zprivacy'],
  2032. "js": function () {
  2033. "use strict";
  2034. if (tarteaucitron.user.zopimID === undefined) {
  2035. return;
  2036. }
  2037. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  2038. }
  2039. };
  2040. // xiti smartTag
  2041. tarteaucitron.services.xiti_smarttag = {
  2042. "key": "xiti_smarttag",
  2043. "type": "analytic",
  2044. "name": "Xiti (SmartTag)",
  2045. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  2046. "needConsent": true,
  2047. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  2048. "js": function () {
  2049. "use strict";
  2050. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  2051. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  2052. } else {
  2053. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  2054. if (xitiSmarttagId === undefined) {
  2055. return;
  2056. }
  2057. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  2058. }
  2059. }
  2060. };
  2061. // facebook pixel
  2062. tarteaucitron.services.facebookpixel = {
  2063. "key": "facebookpixel",
  2064. "type": "ads",
  2065. "name": "Facebook Pixel",
  2066. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  2067. "needConsent": true,
  2068. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  2069. "js": function () {
  2070. "use strict";
  2071. var n;
  2072. if(window.fbq)return;
  2073. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2074. if(!window._fbq)window._fbq=n;
  2075. n.push=n;
  2076. n.loaded=!0;
  2077. n.version='2.0';
  2078. n.queue=[];
  2079. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2080. fbq('init', tarteaucitron.user.facebookpixelId);
  2081. fbq('track', 'PageView');
  2082. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2083. tarteaucitron.user.facebookpixelMore();
  2084. }
  2085. }
  2086. };
  2087. //Issuu
  2088. tarteaucitron.services.issuu = {
  2089. "key": "issuu",
  2090. "type": "other",
  2091. "name": "Issuu",
  2092. "uri": "https://issuu.com/legal/privacy",
  2093. "needConsent": true,
  2094. "cookies": ['__qca', 'iutk', 'mc'],
  2095. "js": function () {
  2096. "use strict";
  2097. tarteaucitron.fallback(['issuu_player'], function (x) {
  2098. var issuu_id = x.getAttribute("issuuID"),
  2099. issuu_width = x.getAttribute("width"),
  2100. frame_width = 'width=',
  2101. issuu_height = x.getAttribute("height"),
  2102. frame_height = 'height=',
  2103. issuu_frame;
  2104. if (issuu_id === undefined) {
  2105. return "";
  2106. }
  2107. if (issuu_width !== undefined) {
  2108. frame_width += '"' + issuu_width + '" ';
  2109. } else {
  2110. frame_width += '"" ';
  2111. }
  2112. if (issuu_height !== undefined) {
  2113. frame_height += '"' + issuu_height + '" ';
  2114. } else {
  2115. frame_height += '"" ';
  2116. }
  2117. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
  2118. return issuu_frame;
  2119. });
  2120. },
  2121. "fallback": function () {
  2122. "use strict";
  2123. var id = 'issuu';
  2124. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2125. elem.style.width = elem.getAttribute('width') + 'px';
  2126. elem.style.height = elem.getAttribute('height') + 'px';
  2127. return tarteaucitron.engage(id);
  2128. });
  2129. }
  2130. };
  2131. // webmecanik
  2132. tarteaucitron.services.webmecanik = {
  2133. "key": "webmecanik",
  2134. "type": "analytic",
  2135. "name": "Webmecanik",
  2136. "uri": "https://webmecanik.com/tos",
  2137. "needConsent": true,
  2138. "cookies": ['mtc_id', 'mtc_sid'],
  2139. "js": function () {
  2140. "use strict";
  2141. if (tarteaucitron.user.webmecanikurl === undefined) {
  2142. return;
  2143. }
  2144. window['WebmecanikTrackingObject'] = 'mt';
  2145. window['mt'] = window['mt'] || function() {
  2146. (window['mt'].q = window['mt'].q || []).push(arguments);
  2147. };
  2148. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2149. mt('send', 'pageview');
  2150. });
  2151. }
  2152. };
  2153. // google analytics multiple
  2154. tarteaucitron.services.multiplegtag = {
  2155. "key": "multiplegtag",
  2156. "type": "analytic",
  2157. "name": "Google Analytics (gtag.js)",
  2158. "uri": "https://support.google.com/analytics/answer/6004245",
  2159. "needConsent": true,
  2160. "cookies": (function () {
  2161. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2162. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2163. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2164. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2165. });
  2166. }
  2167. return cookies;
  2168. })(),
  2169. "js": function () {
  2170. "use strict";
  2171. window.dataLayer = window.dataLayer || [];
  2172. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2173. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2174. window.gtag = function gtag(){dataLayer.push(arguments);}
  2175. gtag('js', new Date());
  2176. gtag('config', ua);
  2177. });
  2178. });
  2179. }
  2180. };
  2181. // Koban
  2182. tarteaucitron.services.koban = {
  2183. "key": "koban",
  2184. "type": "analytic",
  2185. "name": "Koban",
  2186. "uri": "https://koban.cloud/tos",
  2187. "needConsent": true,
  2188. "cookies": ['kbntrk'],
  2189. "js": function () {
  2190. "use strict";
  2191. if (tarteaucitron.user.kobanurl === undefined) {
  2192. return;
  2193. }
  2194. if (tarteaucitron.user.kobanapi === undefined) {
  2195. return;
  2196. }
  2197. window.KobanObject = 'kb';
  2198. window.kb = window.kb || function() {
  2199. window.kb.q = window.kb.q || [];
  2200. window.kb.q.push(arguments);
  2201. };
  2202. window.kb.l = new Date();
  2203. kb('reg', tarteaucitron.user.kobanapi);
  2204. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  2205. });
  2206. }
  2207. };
  2208. // matomo
  2209. /*
  2210. 1. Set the following variable before the initialization :
  2211. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  2212. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  2213. 2. Push the service :
  2214. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  2215. 3. HTML
  2216. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2217. */
  2218. tarteaucitron.services.matomo = {
  2219. "key": "matomo",
  2220. "type": "analytic",
  2221. "name": "Matomo (formerly known as Piwik)",
  2222. "uri": "https://matomo.org/faq/general/faq_146/",
  2223. "needConsent": false,
  2224. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2225. "js": function () {
  2226. "use strict";
  2227. if (tarteaucitron.user.matomoId === undefined) {
  2228. return;
  2229. }
  2230. window._paq = window._paq || [];
  2231. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2232. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2233. window._paq.push(["setDoNotTrack", 1]);
  2234. window._paq.push(["trackPageView"]);
  2235. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2236. window._paq.push(["enableLinkTracking"]);
  2237. window._paq.push([function() {
  2238. var self = this;
  2239. function getOriginalVisitorCookieTimeout() {
  2240. var now = new Date(),
  2241. nowTs = Math.round(now.getTime() / 1000),
  2242. visitorInfo = self.getVisitorInfo();
  2243. var createTs = parseInt(visitorInfo[2]);
  2244. var cookieTimeout = 33696000; // 13 mois en secondes
  2245. var originalTimeout = createTs + cookieTimeout - nowTs;
  2246. return originalTimeout;
  2247. }
  2248. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  2249. }]);
  2250. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2251. // waiting for piwik to be ready to check first party cookies
  2252. var interval = setInterval(function() {
  2253. if (typeof Piwik === 'undefined') return
  2254. clearInterval(interval)
  2255. // make piwik/matomo cookie accessible by getting tracker
  2256. Piwik.getTracker();
  2257. // looping throught cookies
  2258. var theCookies = document.cookie.split(';');
  2259. for (var i = 1 ; i <= theCookies.length; i++) {
  2260. var cookie = theCookies[i-1].split('=');
  2261. var cookieName = cookie[0].trim();
  2262. // if cookie starts like a piwik one, register it
  2263. if (cookieName.indexOf('_pk_') === 0) {
  2264. tarteaucitron.services.matomo.cookies.push(cookieName);
  2265. }
  2266. }
  2267. }, 100)
  2268. }
  2269. };
  2270. // Hotjar
  2271. /*
  2272. 1. Set the following variable before the initialization :
  2273. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  2274. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  2275. 2. Push the service :
  2276. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  2277. 3. HTML
  2278. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2279. */
  2280. tarteaucitron.services.hotjar = {
  2281. "key": "hotjar",
  2282. "type": "analytic",
  2283. "name": "Hotjar",
  2284. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  2285. "needConsent": true,
  2286. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  2287. "js": function () {
  2288. "use strict";
  2289. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  2290. return;
  2291. }
  2292. window.hj = window.hj || function() {
  2293. (window.hj.q = window.hj.q || []).push(arguments)
  2294. };
  2295. window._hjSettings = {
  2296. hjid: tarteaucitron.user.hotjarId,
  2297. hjsv: tarteaucitron.user.HotjarSv
  2298. };
  2299. var uri = 'https://static.hotjar.com/c/hotjar-';
  2300. var extension = '.js?sv=';
  2301. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  2302. }
  2303. };
  2304. // bing ads universal event tracking
  2305. tarteaucitron.services.bingads = {
  2306. 'key': 'bingads',
  2307. 'type': 'ads',
  2308. 'name': 'Bing Ads Universal Event Tracking',
  2309. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  2310. 'needConsent': true,
  2311. 'cookies': ['_uetmsclkid'],
  2312. 'js': function () {
  2313. 'use strict';
  2314. var u = tarteaucitron.user.bingadsTag || 'uetq';
  2315. window[u] = window[u] || [];
  2316. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  2317. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  2318. if ('bingadsStoreCookies' in tarteaucitron.user) {
  2319. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  2320. }
  2321. bingadsCreate.q = window[u];
  2322. window[u] = new UET(bingadsCreate);
  2323. window[u].push('pageLoad');
  2324. });
  2325. }
  2326. };
  2327. //Matterport
  2328. /*
  2329. SERVICE INIT
  2330. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  2331. HTML TAG
  2332. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  2333. DELETE IFRAME
  2334. <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>'
  2335. */
  2336. tarteaucitron.services.matterport = {
  2337. "key": "matterport",
  2338. "type": "other",
  2339. "name": "Matterport",
  2340. "uri": "https://matterport.com/es/legal/privacy-policy/",
  2341. "needConsent": true,
  2342. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  2343. "js": function () {
  2344. "use strict";
  2345. tarteaucitron.fallback(['matterport'], function (x) {
  2346. var matterport_id = x.getAttribute("matterportID"),
  2347. matterport_width = x.getAttribute("width"),
  2348. frame_width = 'width=',
  2349. matterport_height = x.getAttribute("height"),
  2350. frame_height = 'height=',
  2351. matterport_parameters = x.getAttribute("parameters"),
  2352. matterport_frame;
  2353. if (matterport_id === undefined) {
  2354. return "";
  2355. }
  2356. if (matterport_width !== undefined) {
  2357. frame_width += '"' + matterport_width + '" ';
  2358. } else {
  2359. frame_width += '"" ';
  2360. }
  2361. if (matterport_height !== undefined) {
  2362. frame_height += '"' + matterport_height + '" ';
  2363. } else {
  2364. frame_height += '"" ';
  2365. }
  2366. if (matterport_parameters === undefined) {
  2367. return "";
  2368. }
  2369. 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>';
  2370. return matterport_frame;
  2371. });
  2372. },
  2373. "fallback": function () {
  2374. "use strict";
  2375. var id = 'matterport';
  2376. tarteaucitron.fallback(['matterport'], function (elem) {
  2377. elem.style.width = elem.getAttribute('width') + 'px';
  2378. elem.style.height = elem.getAttribute('height') + 'px';
  2379. return tarteaucitron.engage(id);
  2380. });
  2381. }
  2382. };
  2383. // Adform
  2384. tarteaucitron.services.adform = {
  2385. "key": "adform",
  2386. "type": "ads",
  2387. "name": "Adform",
  2388. "uri": "https://site.adform.com/privacy-center/overview/",
  2389. "needConsent": true,
  2390. "cookies": [],
  2391. "js": function () {
  2392. "use strict";
  2393. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  2394. return;
  2395. }
  2396. window._adftrack = {
  2397. pm: tarteaucitron.user.adformpm,
  2398. divider: encodeURIComponent('|'),
  2399. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  2400. };
  2401. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  2402. }
  2403. };
  2404. // Active Campaign
  2405. tarteaucitron.services.activecampaign = {
  2406. "key": "activecampaign",
  2407. "type": "ads",
  2408. "name": "Active Campaign",
  2409. "uri": "https://www.activecampaign.com/privacy-policy/",
  2410. "needConsent": true,
  2411. "cookies": [],
  2412. "js": function () {
  2413. "use strict";
  2414. if (tarteaucitron.user.actid === undefined) {
  2415. return;
  2416. }
  2417. window.trackcmp_email = '';
  2418. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  2419. }
  2420. };
  2421. // tawk.to
  2422. tarteaucitron.services.tawkto = {
  2423. "key": "tawkto",
  2424. "type": "support",
  2425. "name": "Tawk.to chat",
  2426. "uri": "https://www.tawk.to/data-protection/",
  2427. "needConsent": true,
  2428. "cookies": [],
  2429. "js": function () {
  2430. "use strict";
  2431. if (tarteaucitron.user.tawktoId === undefined) {
  2432. return;
  2433. }
  2434. window.Tawk_API=window.Tawk_API||{};
  2435. window.Tawk_LoadStart=new Date();
  2436. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  2437. }
  2438. };
  2439. // getquanty
  2440. tarteaucitron.services.getquanty = {
  2441. "key": "getquanty",
  2442. "type": "analytic",
  2443. "name": "GetQuanty",
  2444. "uri": "https://www.getquanty.com/mentions-legales/",
  2445. "needConsent": true,
  2446. "cookies": [],
  2447. "js": function () {
  2448. "use strict";
  2449. if (tarteaucitron.user.getguanty === undefined) {
  2450. return;
  2451. }
  2452. window.webleads_site_ids = window.webleads_site_ids || [];
  2453. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  2454. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  2455. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  2456. }
  2457. };
  2458. // emolytics
  2459. tarteaucitron.services.emolytics = {
  2460. "key": "emolytics",
  2461. "type": "analytic",
  2462. "name": "Emolytics",
  2463. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  2464. "needConsent": true,
  2465. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  2466. "js": function () {
  2467. "use strict";
  2468. if (tarteaucitron.user.emolyticsID === undefined) {
  2469. return;
  2470. }
  2471. var scriptEmolytics = document.createElement('script');
  2472. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  2473. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  2474. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js');
  2475. }
  2476. };