tarteaucitron.services.js 92 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590
  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.fr/gp/help/customer/display.html?ie=UTF8&*Version*=1&*entries*=0&nodeId=201149360",
  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": "http://www.google.com/ads/preferences/",
  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": "http://www.google.com/ads/preferences/",
  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": "http://www.google.com/ads/preferences/",
  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": "http://www.google.com/ads/preferences/",
  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": "http://www.google.com/ads/preferences/",
  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": "http://www.google.com/ads/preferences/",
  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": "http://www.google.com/ads/preferences/",
  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": "http://www.google.com/ads/preferences/",
  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": "http://www.google.com/policies/privacy/",
  1151. "needConsent": true,
  1152. "cookies": [],
  1153. "js": function () {
  1154. "use strict";
  1155. tarteaucitron.addScript('//www.google.com/jsapi');
  1156. }
  1157. };
  1158. // recaptcha
  1159. tarteaucitron.services.recaptcha = {
  1160. "key": "recaptcha",
  1161. "type": "api",
  1162. "name": "reCAPTCHA",
  1163. "uri": "http://www.google.com/policies/privacy/",
  1164. "needConsent": true,
  1165. "cookies": ['nid'],
  1166. "js": function () {
  1167. "use strict";
  1168. tarteaucitron.fallback(['g-recaptcha'], '');
  1169. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js');
  1170. },
  1171. "fallback": function () {
  1172. "use strict";
  1173. var id = 'recaptcha';
  1174. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1175. }
  1176. };
  1177. // linkedin
  1178. tarteaucitron.services.linkedin = {
  1179. "key": "linkedin",
  1180. "type": "social",
  1181. "name": "Linkedin",
  1182. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1183. "needConsent": true,
  1184. "cookies": [],
  1185. "js": function () {
  1186. "use strict";
  1187. tarteaucitron.fallback(['tacLinkedin'], '');
  1188. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1189. if (tarteaucitron.isAjax === true) {
  1190. if (typeof IN !== "undefined") {
  1191. IN.parse();
  1192. }
  1193. }
  1194. },
  1195. "fallback": function () {
  1196. "use strict";
  1197. var id = 'linkedin';
  1198. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1199. }
  1200. };
  1201. // mautic
  1202. tarteaucitron.services.mautic = {
  1203. "key": "mautic",
  1204. "type": "analytic",
  1205. "name": "Mautic",
  1206. "uri": "https://www.mautic.org/privacy-policy/",
  1207. "needConsent": true,
  1208. "cookies": ['mtc_id', 'mtc_sid'],
  1209. "js": function () {
  1210. "use strict";
  1211. if (tarteaucitron.user.mauticurl === undefined) {
  1212. return;
  1213. }
  1214. window['MauticTrackingObject'] = 'mt';
  1215. window['mt'] = window['mt'] || function() {
  1216. (window['mt'].q = window['mt'].q || []).push(arguments);
  1217. };
  1218. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1219. mt('send', 'pageview');
  1220. });
  1221. }
  1222. };
  1223. // microsoftcampaignanalytics
  1224. tarteaucitron.services.microsoftcampaignanalytics = {
  1225. "key": "microsoftcampaignanalytics",
  1226. "type": "analytic",
  1227. "name": "Microsoft Campaign Analytics",
  1228. "uri": "https://privacy.microsoft.com/privacystatement/",
  1229. "needConsent": true,
  1230. "cookies": [],
  1231. "js": function () {
  1232. "use strict";
  1233. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1234. return;
  1235. }
  1236. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1237. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1238. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1239. });
  1240. }
  1241. };
  1242. // pinterest
  1243. tarteaucitron.services.pinterest = {
  1244. "key": "pinterest",
  1245. "type": "social",
  1246. "name": "Pinterest",
  1247. "uri": "https://about.pinterest.com/privacy-policy",
  1248. "needConsent": true,
  1249. "cookies": [],
  1250. "js": function () {
  1251. "use strict";
  1252. tarteaucitron.fallback(['tacPinterest'], '');
  1253. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1254. },
  1255. "fallback": function () {
  1256. "use strict";
  1257. var id = 'pinterest';
  1258. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1259. }
  1260. };
  1261. // prelinker
  1262. tarteaucitron.services.prelinker = {
  1263. "key": "prelinker",
  1264. "type": "ads",
  1265. "name": "Prelinker",
  1266. "uri": "http://www.prelinker.com/index/index/cgu/",
  1267. "needConsent": true,
  1268. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1269. "js": function () {
  1270. "use strict";
  1271. var uniqIds = [],
  1272. i,
  1273. uri;
  1274. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1275. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1276. uniqIds.push(uniqId);
  1277. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1278. });
  1279. for (i = 0; i < uniqIds.length; i += 1) {
  1280. uri = 'http://promo.easy-dating.org/banner/index?';
  1281. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1282. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1283. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1284. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1285. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1286. }
  1287. },
  1288. "fallback": function () {
  1289. "use strict";
  1290. var id = 'prelinker';
  1291. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1292. }
  1293. };
  1294. // prezi
  1295. tarteaucitron.services.prezi = {
  1296. "key": "prezi",
  1297. "type": "video",
  1298. "name": "Prezi",
  1299. "uri": "https://prezi.com/privacy-policy/",
  1300. "needConsent": true,
  1301. "cookies": [],
  1302. "js": function () {
  1303. "use strict";
  1304. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1305. var id = x.getAttribute("data-id"),
  1306. width = x.getAttribute("width"),
  1307. height = x.getAttribute("height"),
  1308. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1309. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1310. });
  1311. },
  1312. "fallback": function () {
  1313. "use strict";
  1314. var id = 'prezi';
  1315. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1316. elem.style.width = elem.getAttribute('width') + 'px';
  1317. elem.style.height = elem.getAttribute('height') + 'px';
  1318. return tarteaucitron.engage(id);
  1319. });
  1320. }
  1321. };
  1322. // pubdirecte
  1323. tarteaucitron.services.pubdirecte = {
  1324. "key": "pubdirecte",
  1325. "type": "ads",
  1326. "name": "Pubdirecte",
  1327. "uri": "http://pubdirecte.com/contact.php",
  1328. "needConsent": true,
  1329. "cookies": [],
  1330. "js": function () {
  1331. "use strict";
  1332. var uniqIds = [],
  1333. i,
  1334. uri;
  1335. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1336. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1337. uniqIds.push(uniqId);
  1338. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1339. });
  1340. for (i = 0; i < uniqIds.length; i += 1) {
  1341. uri = '//www.pubdirecte.com/script/banniere.php?';
  1342. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1343. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1344. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1345. }
  1346. },
  1347. "fallback": function () {
  1348. "use strict";
  1349. var id = 'pubdirecte';
  1350. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1351. }
  1352. };
  1353. // purechat
  1354. tarteaucitron.services.purechat = {
  1355. "key": "purechat",
  1356. "type": "support",
  1357. "name": "PureChat",
  1358. "uri": "https://www.purechat.com/privacy",
  1359. "needConsent": true,
  1360. "cookies": [],
  1361. "js": function () {
  1362. "use strict";
  1363. if (tarteaucitron.user.purechatId === undefined) {
  1364. return;
  1365. }
  1366. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1367. try {
  1368. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1369. } catch (e) {}
  1370. });
  1371. }
  1372. };
  1373. // shareaholic
  1374. tarteaucitron.services.shareaholic = {
  1375. "key": "shareaholic",
  1376. "type": "social",
  1377. "name": "Shareaholic",
  1378. "uri": "https://shareaholic.com/privacy/choices",
  1379. "needConsent": true,
  1380. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1381. "js": function () {
  1382. "use strict";
  1383. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1384. return;
  1385. }
  1386. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1387. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1388. try {
  1389. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1390. } catch (e) {}
  1391. });
  1392. },
  1393. "fallback": function () {
  1394. "use strict";
  1395. var id = 'shareaholic';
  1396. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1397. }
  1398. };
  1399. // shareasale
  1400. tarteaucitron.services.shareasale = {
  1401. "key": "shareasale",
  1402. "type": "ads",
  1403. "name": "ShareASale",
  1404. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1405. "needConsent": true,
  1406. "cookies": [],
  1407. "js": function () {
  1408. "use strict";
  1409. var uniqIds = [],
  1410. i,
  1411. uri;
  1412. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1413. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1414. uniqIds.push(uniqId);
  1415. 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>';
  1416. });
  1417. for (i = 0; i < uniqIds.length; i += 1) {
  1418. uri = 'https://shareasale.com/sale.cfm?';
  1419. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1420. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1421. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1422. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1423. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1424. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1425. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1426. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1427. }
  1428. },
  1429. "fallback": function () {
  1430. "use strict";
  1431. var id = 'shareasale';
  1432. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1433. }
  1434. };
  1435. // sharethis
  1436. tarteaucitron.services.sharethis = {
  1437. "key": "sharethis",
  1438. "type": "social",
  1439. "name": "ShareThis",
  1440. "uri": "http://www.sharethis.com/legal/privacy/",
  1441. "needConsent": true,
  1442. "cookies": ['__unam'],
  1443. "js": function () {
  1444. "use strict";
  1445. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1446. return;
  1447. }
  1448. var switchTo5x = true,
  1449. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1450. tarteaucitron.fallback(['tacSharethis'], '');
  1451. tarteaucitron.addScript(uri, '', function () {
  1452. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1453. });
  1454. if (tarteaucitron.isAjax === true) {
  1455. if (typeof stButtons !== "undefined") {
  1456. stButtons.locateElements();
  1457. }
  1458. }
  1459. },
  1460. "fallback": function () {
  1461. "use strict";
  1462. var id = 'sharethis';
  1463. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1464. }
  1465. };
  1466. // slideshare
  1467. tarteaucitron.services.slideshare = {
  1468. "key": "slideshare",
  1469. "type": "video",
  1470. "name": "SlideShare",
  1471. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1472. "needConsent": true,
  1473. "cookies": [],
  1474. "js": function () {
  1475. "use strict";
  1476. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1477. var id = x.getAttribute("data-id"),
  1478. width = x.getAttribute("width"),
  1479. height = x.getAttribute("height"),
  1480. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1481. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1482. });
  1483. },
  1484. "fallback": function () {
  1485. "use strict";
  1486. var id = 'slideshare';
  1487. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1488. elem.style.width = elem.getAttribute('width') + 'px';
  1489. elem.style.height = elem.getAttribute('height') + 'px';
  1490. return tarteaucitron.engage(id);
  1491. });
  1492. }
  1493. };
  1494. // statcounter
  1495. tarteaucitron.services.statcounter = {
  1496. "key": "statcounter",
  1497. "type": "analytic",
  1498. "name": "StatCounter",
  1499. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1500. "needConsent": true,
  1501. "cookies": ['sc_is_visitor_unique'],
  1502. "js": function () {
  1503. "use strict";
  1504. var uniqIds = [],
  1505. i,
  1506. uri = '//statcounter.com/counter/counter.js';
  1507. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1508. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1509. uniqIds.push(uniqId);
  1510. return '<div id="' + uniqId + '"></div>';
  1511. });
  1512. for (i = 0; i < uniqIds.length; i += 1) {
  1513. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1514. }
  1515. },
  1516. "fallback": function () {
  1517. "use strict";
  1518. var id = 'statcounter';
  1519. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1520. }
  1521. };
  1522. // timelinejs
  1523. tarteaucitron.services.timelinejs = {
  1524. "key": "timelinejs",
  1525. "type": "api",
  1526. "name": "Timeline JS",
  1527. "uri": "http://timeline.knightlab.com/#help",
  1528. "needConsent": true,
  1529. "cookies": [],
  1530. "js": function () {
  1531. "use strict";
  1532. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1533. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1534. width = x.getAttribute("width"),
  1535. height = x.getAttribute("height"),
  1536. lang = x.getAttribute("lang_2_letter"),
  1537. font = x.getAttribute("font"),
  1538. map = x.getAttribute("map"),
  1539. start_at_end = x.getAttribute("start_at_end"),
  1540. hash_bookmark = x.getAttribute("hash_bookmark"),
  1541. start_at_slide = x.getAttribute("start_at_slide"),
  1542. start_zoom = x.getAttribute("start_zoom"),
  1543. 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;
  1544. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1545. });
  1546. },
  1547. "fallback": function () {
  1548. "use strict";
  1549. var id = 'timelinejs';
  1550. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1551. elem.style.width = elem.getAttribute('width') + 'px';
  1552. elem.style.height = elem.getAttribute('height') + 'px';
  1553. return tarteaucitron.engage(id);
  1554. });
  1555. }
  1556. };
  1557. // typekit
  1558. tarteaucitron.services.typekit = {
  1559. "key": "typekit",
  1560. "type": "api",
  1561. "name": "Typekit (adobe)",
  1562. "uri": "http://www.adobe.com/fr/privacy.html",
  1563. "needConsent": true,
  1564. "cookies": [],
  1565. "js": function () {
  1566. "use strict";
  1567. if (tarteaucitron.user.typekitId === undefined) {
  1568. return;
  1569. }
  1570. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1571. try {
  1572. Typekit.load();
  1573. } catch (e) {}
  1574. });
  1575. }
  1576. };
  1577. // twenga
  1578. tarteaucitron.services.twenga = {
  1579. "key": "twenga",
  1580. "type": "ads",
  1581. "name": "Twenga",
  1582. "uri": "http://www.twenga.com/privacy.php",
  1583. "needConsent": true,
  1584. "cookies": [],
  1585. "js": function () {
  1586. "use strict";
  1587. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1588. return;
  1589. }
  1590. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1591. }
  1592. };
  1593. // twitter
  1594. tarteaucitron.services.twitter = {
  1595. "key": "twitter",
  1596. "type": "social",
  1597. "name": "Twitter",
  1598. "uri": "https://support.twitter.com/articles/20170514",
  1599. "needConsent": true,
  1600. "cookies": [],
  1601. "js": function () {
  1602. "use strict";
  1603. tarteaucitron.fallback(['tacTwitter'], '');
  1604. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1605. },
  1606. "fallback": function () {
  1607. "use strict";
  1608. var id = 'twitter';
  1609. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1610. }
  1611. };
  1612. // twitter embed
  1613. tarteaucitron.services.twitterembed = {
  1614. "key": "twitterembed",
  1615. "type": "social",
  1616. "name": "Twitter (cards)",
  1617. "uri": "https://support.twitter.com/articles/20170514",
  1618. "needConsent": true,
  1619. "cookies": [],
  1620. "js": function () {
  1621. "use strict";
  1622. var uniqIds = [],
  1623. i,
  1624. e,
  1625. html;
  1626. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1627. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1628. uniqIds.push(uniqId);
  1629. html = '<div id="' + uniqId + '" ';
  1630. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1631. html += 'theme="' + x.getAttribute('theme') + '" ';
  1632. html += 'cards="' + x.getAttribute('cards') + '" ';
  1633. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1634. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1635. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1636. html += '></div>';
  1637. return html;
  1638. });
  1639. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1640. for (i = 0; i < uniqIds.length; i += 1) {
  1641. e = document.getElementById(uniqIds[i]);
  1642. twttr.widgets.createTweet(
  1643. e.getAttribute('tweetid'),
  1644. e,
  1645. {
  1646. theme: e.getAttribute('theme'),
  1647. cards: e.getAttribute('cards'),
  1648. conversation: e.getAttribute('conversation'),
  1649. lang: tarteaucitron.getLanguage(),
  1650. dnt: true,
  1651. width: e.getAttribute('data-width'),
  1652. align: e.getAttribute('data-align')
  1653. }
  1654. );
  1655. }
  1656. });
  1657. },
  1658. "fallback": function () {
  1659. "use strict";
  1660. var id = 'twitterembed';
  1661. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1662. elem.style.width = elem.getAttribute('data-width') + 'px';
  1663. return tarteaucitron.engage(id);
  1664. });
  1665. }
  1666. };
  1667. // twitter timeline
  1668. tarteaucitron.services.twittertimeline = {
  1669. "key": "twittertimeline",
  1670. "type": "social",
  1671. "name": "Twitter (timelines)",
  1672. "uri": "https://support.twitter.com/articles/20170514",
  1673. "needConsent": true,
  1674. "cookies": [],
  1675. "js": function () {
  1676. "use strict";
  1677. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1678. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1679. },
  1680. "fallback": function () {
  1681. "use strict";
  1682. var id = 'twittertimeline';
  1683. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1684. }
  1685. };
  1686. // user voice
  1687. tarteaucitron.services.uservoice = {
  1688. "key": "uservoice",
  1689. "type": "support",
  1690. "name": "UserVoice",
  1691. "uri": "https://www.uservoice.com/privacy/",
  1692. "needConsent": true,
  1693. "cookies": [],
  1694. "js": function () {
  1695. "use strict";
  1696. if (tarteaucitron.user.userVoiceApi === undefined) {
  1697. return;
  1698. }
  1699. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1700. }
  1701. };
  1702. // vimeo
  1703. tarteaucitron.services.vimeo = {
  1704. "key": "vimeo",
  1705. "type": "video",
  1706. "name": "Vimeo",
  1707. "uri": "http://vimeo.com/privacy",
  1708. "needConsent": true,
  1709. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1710. "js": function () {
  1711. "use strict";
  1712. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1713. var video_id = x.getAttribute("videoID"),
  1714. video_width = x.getAttribute("width"),
  1715. frame_width = 'width=',
  1716. video_height = x.getAttribute("height"),
  1717. frame_height = 'height=',
  1718. video_frame;
  1719. if (video_id === undefined) {
  1720. return "";
  1721. }
  1722. if (video_width !== undefined) {
  1723. frame_width += '"' + video_width + '" ';
  1724. } else {
  1725. frame_width += '"" ';
  1726. }
  1727. if (video_height !== undefined) {
  1728. frame_height += '"' + video_height + '" ';
  1729. } else {
  1730. frame_height += '"" ';
  1731. }
  1732. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1733. return video_frame;
  1734. });
  1735. },
  1736. "fallback": function () {
  1737. "use strict";
  1738. var id = 'vimeo';
  1739. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1740. elem.style.width = elem.getAttribute('width') + 'px';
  1741. elem.style.height = elem.getAttribute('height') + 'px';
  1742. return tarteaucitron.engage(id);
  1743. });
  1744. }
  1745. };
  1746. // visualrevenue
  1747. tarteaucitron.services.visualrevenue = {
  1748. "key": "visualrevenue",
  1749. "type": "analytic",
  1750. "name": "VisualRevenue",
  1751. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1752. "needConsent": true,
  1753. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1754. "js": function () {
  1755. "use strict";
  1756. if (tarteaucitron.user.visualrevenueId === undefined) {
  1757. return;
  1758. }
  1759. window._vrq = window._vrq || [];
  1760. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1761. window._vrq.push(['automate', true]);
  1762. window._vrq.push(['track', function () {}]);
  1763. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1764. }
  1765. };
  1766. // vshop
  1767. tarteaucitron.services.vshop = {
  1768. "key": "vshop",
  1769. "type": "ads",
  1770. "name": "vShop",
  1771. "uri": "http://vshop.fr/privacy-policy",
  1772. "needConsent": true,
  1773. "cookies": [],
  1774. "js": function () {
  1775. "use strict";
  1776. tarteaucitron.fallback(['vcashW'], '');
  1777. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1778. },
  1779. "fallback": function () {
  1780. "use strict";
  1781. var id = 'vshop';
  1782. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1783. }
  1784. };
  1785. // wysistat
  1786. tarteaucitron.services.wysistat = {
  1787. "key": "wysistat",
  1788. "type": "analytic",
  1789. "name": "Wysistat",
  1790. "uri": "http://wysistat.net/contact/",
  1791. "needConsent": true,
  1792. "cookies": ['Wysistat'],
  1793. "js": function () {
  1794. "use strict";
  1795. if (tarteaucitron.user.wysistat === undefined) {
  1796. return;
  1797. }
  1798. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1799. 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);
  1800. });
  1801. }
  1802. };
  1803. // xiti
  1804. tarteaucitron.services.xiti = {
  1805. "key": "xiti",
  1806. "type": "analytic",
  1807. "name": "Xiti",
  1808. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1809. "needConsent": true,
  1810. "cookies": [],
  1811. "js": function () {
  1812. "use strict";
  1813. if (tarteaucitron.user.xitiId === undefined) {
  1814. return;
  1815. }
  1816. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1817. Xt_r,
  1818. Xt_h,
  1819. Xt_i,
  1820. Xt_s,
  1821. div = document.createElement('div');
  1822. try {
  1823. Xt_r = top.document.referrer;
  1824. } catch (e) {
  1825. Xt_r = document.referrer;
  1826. }
  1827. Xt_h = new Date();
  1828. Xt_i = '<img style="display:none" border="0" alt="" ';
  1829. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1830. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1831. if (parseFloat(navigator.appVersion) >= 4) {
  1832. Xt_s = screen;
  1833. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1834. }
  1835. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1836. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1837. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1838. tarteaucitron.user.xitiMore();
  1839. }
  1840. }
  1841. };
  1842. // AT Internet
  1843. tarteaucitron.services.atinternet = {
  1844. "key": "atinternet",
  1845. "type": "analytic",
  1846. "name": "AT Internet",
  1847. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1848. "needConsent": true,
  1849. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  1850. "js": function () {
  1851. "use strict";
  1852. if (tarteaucitron.user.atLibUrl === undefined) {
  1853. return;
  1854. }
  1855. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  1856. if (typeof tarteaucitron.user.atMore === 'function') {
  1857. tarteaucitron.user.atMore();
  1858. }
  1859. })
  1860. }
  1861. };
  1862. // youtube
  1863. tarteaucitron.services.youtube = {
  1864. "key": "youtube",
  1865. "type": "video",
  1866. "name": "YouTube",
  1867. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1868. "needConsent": true,
  1869. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1870. "js": function () {
  1871. "use strict";
  1872. tarteaucitron.fallback(['youtube_player'], function (x) {
  1873. var video_id = x.getAttribute("videoID"),
  1874. video_width = x.getAttribute("width"),
  1875. frame_width = 'width=',
  1876. video_height = x.getAttribute("height"),
  1877. frame_height = 'height=',
  1878. video_frame,
  1879. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1880. if (video_id === undefined) {
  1881. return "";
  1882. }
  1883. if (video_width !== undefined) {
  1884. frame_width += '"' + video_width + '" ';
  1885. } else {
  1886. frame_width += '"" ';
  1887. }
  1888. if (video_height !== undefined) {
  1889. frame_height += '"' + video_height + '" ';
  1890. } else {
  1891. frame_height += '"" ';
  1892. }
  1893. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1894. return video_frame;
  1895. });
  1896. },
  1897. "fallback": function () {
  1898. "use strict";
  1899. var id = 'youtube';
  1900. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1901. elem.style.width = elem.getAttribute('width') + 'px';
  1902. elem.style.height = elem.getAttribute('height') + 'px';
  1903. return tarteaucitron.engage(id);
  1904. });
  1905. }
  1906. };
  1907. // youtube playlist
  1908. tarteaucitron.services.youtubeplaylist = {
  1909. "key": "youtubeplaylist",
  1910. "type": "video",
  1911. "name": "YouTube (playlist)",
  1912. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1913. "needConsent": true,
  1914. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1915. "js": function () {
  1916. "use strict";
  1917. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  1918. var playlist_id = x.getAttribute("playlistID"),
  1919. video_width = x.getAttribute("width"),
  1920. frame_width = 'width=',
  1921. video_height = x.getAttribute("height"),
  1922. frame_height = 'height=',
  1923. video_frame,
  1924. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1925. if (playlist_id === undefined) {
  1926. return "";
  1927. }
  1928. if (video_width !== undefined) {
  1929. frame_width += '"' + video_width + '" ';
  1930. } else {
  1931. frame_width += '"" ';
  1932. }
  1933. if (video_height !== undefined) {
  1934. frame_height += '"' + video_height + '" ';
  1935. } else {
  1936. frame_height += '"" ';
  1937. }
  1938. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0"></iframe>';
  1939. return video_frame;
  1940. });
  1941. },
  1942. "fallback": function () {
  1943. "use strict";
  1944. var id = 'youtubeplaylist';
  1945. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  1946. elem.style.width = elem.getAttribute('width') + 'px';
  1947. elem.style.height = elem.getAttribute('height') + 'px';
  1948. return tarteaucitron.engage(id);
  1949. });
  1950. }
  1951. };
  1952. // zopim
  1953. tarteaucitron.services.zopim = {
  1954. "key": "zopim",
  1955. "type": "support",
  1956. "name": "Zopim",
  1957. "uri": "https://www.zopim.com/privacy",
  1958. "needConsent": true,
  1959. "cookies": ['__zlcid', '__zprivacy'],
  1960. "js": function () {
  1961. "use strict";
  1962. if (tarteaucitron.user.zopimID === undefined) {
  1963. return;
  1964. }
  1965. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1966. }
  1967. };
  1968. // xiti smartTag
  1969. tarteaucitron.services.xiti_smarttag = {
  1970. "key": "xiti_smarttag",
  1971. "type": "analytic",
  1972. "name": "Xiti (SmartTag)",
  1973. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  1974. "needConsent": true,
  1975. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  1976. "js": function () {
  1977. "use strict";
  1978. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  1979. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  1980. } else {
  1981. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  1982. if (xitiSmarttagId === undefined) {
  1983. return;
  1984. }
  1985. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  1986. }
  1987. }
  1988. };
  1989. // facebook pixel
  1990. tarteaucitron.services.facebookpixel = {
  1991. "key": "facebookpixel",
  1992. "type": "ads",
  1993. "name": "Facebook Pixel",
  1994. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  1995. "needConsent": true,
  1996. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  1997. "js": function () {
  1998. "use strict";
  1999. var n;
  2000. if(window.fbq)return;
  2001. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2002. if(!window._fbq)window._fbq=n;
  2003. n.push=n;
  2004. n.loaded=!0;
  2005. n.version='2.0';
  2006. n.queue=[];
  2007. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2008. fbq('init', tarteaucitron.user.facebookpixelId);
  2009. fbq('track', 'PageView');
  2010. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2011. tarteaucitron.user.facebookpixelMore();
  2012. }
  2013. }
  2014. };
  2015. //Issuu
  2016. tarteaucitron.services.issuu = {
  2017. "key": "issuu",
  2018. "type": "other",
  2019. "name": "Issuu",
  2020. "uri": "https://issuu.com/legal/privacy",
  2021. "needConsent": true,
  2022. "cookies": ['__qca', 'iutk', 'mc'],
  2023. "js": function () {
  2024. "use strict";
  2025. tarteaucitron.fallback(['issuu_player'], function (x) {
  2026. var issuu_id = x.getAttribute("issuuID"),
  2027. issuu_width = x.getAttribute("width"),
  2028. frame_width = 'width=',
  2029. issuu_height = x.getAttribute("height"),
  2030. frame_height = 'height=',
  2031. issuu_frame;
  2032. if (issuu_id === undefined) {
  2033. return "";
  2034. }
  2035. if (issuu_width !== undefined) {
  2036. frame_width += '"' + issuu_width + '" ';
  2037. } else {
  2038. frame_width += '"" ';
  2039. }
  2040. if (issuu_height !== undefined) {
  2041. frame_height += '"' + issuu_height + '" ';
  2042. } else {
  2043. frame_height += '"" ';
  2044. }
  2045. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
  2046. return issuu_frame;
  2047. });
  2048. },
  2049. "fallback": function () {
  2050. "use strict";
  2051. var id = 'issuu';
  2052. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2053. elem.style.width = elem.getAttribute('width') + 'px';
  2054. elem.style.height = elem.getAttribute('height') + 'px';
  2055. return tarteaucitron.engage(id);
  2056. });
  2057. }
  2058. };
  2059. // webmecanik
  2060. tarteaucitron.services.webmecanik = {
  2061. "key": "webmecanik",
  2062. "type": "analytic",
  2063. "name": "Webmecanik",
  2064. "uri": "https://webmecanik.com/tos",
  2065. "needConsent": true,
  2066. "cookies": ['mtc_id', 'mtc_sid'],
  2067. "js": function () {
  2068. "use strict";
  2069. if (tarteaucitron.user.webmecanikurl === undefined) {
  2070. return;
  2071. }
  2072. window['WebmecanikTrackingObject'] = 'mt';
  2073. window['mt'] = window['mt'] || function() {
  2074. (window['mt'].q = window['mt'].q || []).push(arguments);
  2075. };
  2076. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2077. mt('send', 'pageview');
  2078. });
  2079. }
  2080. };
  2081. // google analytics multiple
  2082. tarteaucitron.services.multiplegtag = {
  2083. "key": "multiplegtag",
  2084. "type": "analytic",
  2085. "name": "Google Analytics (gtag.js)",
  2086. "uri": "https://support.google.com/analytics/answer/6004245",
  2087. "needConsent": true,
  2088. "cookies": (function () {
  2089. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2090. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2091. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2092. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2093. });
  2094. }
  2095. return cookies;
  2096. })(),
  2097. "js": function () {
  2098. "use strict";
  2099. window.dataLayer = window.dataLayer || [];
  2100. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2101. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2102. window.gtag = function gtag(){dataLayer.push(arguments);}
  2103. gtag('js', new Date());
  2104. gtag('config', ua);
  2105. });
  2106. });
  2107. }
  2108. };
  2109. // Koban
  2110. tarteaucitron.services.koban = {
  2111. "key": "koban",
  2112. "type": "analytic",
  2113. "name": "Koban",
  2114. "uri": "https://koban.cloud/tos",
  2115. "needConsent": true,
  2116. "cookies": ['kbntrk'],
  2117. "js": function () {
  2118. "use strict";
  2119. if (tarteaucitron.user.kobanurl === undefined) {
  2120. return;
  2121. }
  2122. if (tarteaucitron.user.kobanapi === undefined) {
  2123. return;
  2124. }
  2125. window.KobanObject = 'kb';
  2126. window.kb = window.kb || function() {
  2127. window.kb.q = window.kb.q || [];
  2128. window.kb.q.push(arguments);
  2129. };
  2130. window.kb.l = new Date();
  2131. kb('reg', tarteaucitron.user.kobanapi);
  2132. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  2133. });
  2134. }
  2135. };
  2136. // matomo
  2137. /*
  2138. 1. Set the following variable before the initialization :
  2139. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  2140. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  2141. 2. Push the service :
  2142. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  2143. 3. HTML
  2144. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2145. */
  2146. tarteaucitron.services.matomo = {
  2147. "key": "matomo",
  2148. "type": "analytic",
  2149. "name": "Matomo (formerly known as Piwik)",
  2150. "uri": "https://matomo.org/faq/general/faq_146/",
  2151. "needConsent": false,
  2152. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2153. "js": function () {
  2154. "use strict";
  2155. if (tarteaucitron.user.matomoId === undefined) {
  2156. return;
  2157. }
  2158. window._paq = window._paq || [];
  2159. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2160. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2161. window._paq.push(["setDoNotTrack", 1]);
  2162. window._paq.push(["trackPageView"]);
  2163. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2164. window._paq.push(["enableLinkTracking"]);
  2165. window._paq.push([function() {
  2166. var self = this;
  2167. function getOriginalVisitorCookieTimeout() {
  2168. var now = new Date(),
  2169. nowTs = Math.round(now.getTime() / 1000),
  2170. visitorInfo = self.getVisitorInfo();
  2171. var createTs = parseInt(visitorInfo[2]);
  2172. var cookieTimeout = 33696000; // 13 mois en secondes
  2173. var originalTimeout = createTs + cookieTimeout - nowTs;
  2174. return originalTimeout;
  2175. }
  2176. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  2177. }]);
  2178. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2179. }
  2180. };
  2181. // Hotjar
  2182. /*
  2183. 1. Set the following variable before the initialization :
  2184. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  2185. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  2186. 2. Push the service :
  2187. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  2188. 3. HTML
  2189. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2190. */
  2191. tarteaucitron.services.hotjar = {
  2192. "key": "hotjar",
  2193. "type": "analytic",
  2194. "name": "Hotjar",
  2195. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  2196. "needConsent": true,
  2197. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  2198. "js": function () {
  2199. "use strict";
  2200. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  2201. return;
  2202. }
  2203. window.hj = window.hj || function() {
  2204. (window.hj.q = window.hj.q || []).push(arguments)
  2205. };
  2206. window._hjSettings = {
  2207. hjid: tarteaucitron.user.hotjarId,
  2208. hjsv: tarteaucitron.user.HotjarSv
  2209. };
  2210. var uri = 'https://static.hotjar.com/c/hotjar-';
  2211. var extension = '.js?sv=';
  2212. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  2213. }
  2214. };
  2215. // bing ads universal event tracking
  2216. tarteaucitron.services.bingads = {
  2217. 'key': 'bingads',
  2218. 'type': 'ads',
  2219. 'name': 'Bing Ads Universal Event Tracking',
  2220. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  2221. 'needConsent': true,
  2222. 'cookies': ['_uetmsclkid'],
  2223. 'js': function () {
  2224. 'use strict';
  2225. var u = tarteaucitron.user.bingadsTag || 'uetq';
  2226. window[u] = window[u] || [];
  2227. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  2228. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  2229. if ('bingadsStoreCookies' in tarteaucitron.user) {
  2230. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  2231. }
  2232. bingadsCreate.q = window[u];
  2233. window[u] = new UET(bingadsCreate);
  2234. window[u].push('pageload');
  2235. });
  2236. }
  2237. };
  2238. //Matterport
  2239. /*
  2240. SERVICE INIT
  2241. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  2242. HTML TAG
  2243. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  2244. DELETE IFRAME
  2245. <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>'
  2246. */
  2247. tarteaucitron.services.matterport = {
  2248. "key": "matterport",
  2249. "type": "other",
  2250. "name": "Matterport",
  2251. "uri": "https://matterport.com/es/legal/privacy-policy/",
  2252. "needConsent": true,
  2253. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  2254. "js": function () {
  2255. "use strict";
  2256. tarteaucitron.fallback(['matterport'], function (x) {
  2257. var matterport_id = x.getAttribute("matterportID"),
  2258. matterport_width = x.getAttribute("width"),
  2259. frame_width = 'width=',
  2260. matterport_height = x.getAttribute("height"),
  2261. frame_height = 'height=',
  2262. matterport_parameters = x.getAttribute("parameters"),
  2263. matterport_frame;
  2264. if (matterport_id === undefined) {
  2265. return "";
  2266. }
  2267. if (matterport_width !== undefined) {
  2268. frame_width += '"' + matterport_width + '" ';
  2269. } else {
  2270. frame_width += '"" ';
  2271. }
  2272. if (matterport_height !== undefined) {
  2273. frame_height += '"' + matterport_height + '" ';
  2274. } else {
  2275. frame_height += '"" ';
  2276. }
  2277. if (matterport_parameters === undefined) {
  2278. return "";
  2279. }
  2280. 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>';
  2281. return matterport_frame;
  2282. });
  2283. },
  2284. "fallback": function () {
  2285. "use strict";
  2286. var id = 'matterport';
  2287. tarteaucitron.fallback(['matterport'], function (elem) {
  2288. elem.style.width = elem.getAttribute('width') + 'px';
  2289. elem.style.height = elem.getAttribute('height') + 'px';
  2290. return tarteaucitron.engage(id);
  2291. });
  2292. }
  2293. };
  2294. // Adform
  2295. tarteaucitron.services.adform = {
  2296. "key": "adform",
  2297. "type": "ads",
  2298. "name": "Adform",
  2299. "uri": "https://site.adform.com/privacy-center/overview/",
  2300. "needConsent": true,
  2301. "cookies": [],
  2302. "js": function () {
  2303. "use strict";
  2304. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  2305. return;
  2306. }
  2307. window._adftrack = {
  2308. pm: tarteaucitron.user.adformpm,
  2309. divider: encodeURIComponent('|'),
  2310. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  2311. };
  2312. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  2313. }
  2314. };
  2315. // Active Campaign
  2316. tarteaucitron.services.activecampaign = {
  2317. "key": "activecampaign",
  2318. "type": "ads",
  2319. "name": "Active Campaign",
  2320. "uri": "https://www.activecampaign.com/privacy-policy/",
  2321. "needConsent": true,
  2322. "cookies": [],
  2323. "js": function () {
  2324. "use strict";
  2325. if (tarteaucitron.user.actid === undefined) {
  2326. return;
  2327. }
  2328. window.trackcmp_email = '';
  2329. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  2330. }
  2331. };
  2332. // tawk.to
  2333. tarteaucitron.services.tawkto = {
  2334. "key": "tawkto",
  2335. "type": "support",
  2336. "name": "Tawk.to chat",
  2337. "uri": "https://www.tawk.to/data-protection/",
  2338. "needConsent": true,
  2339. "cookies": [],
  2340. "js": function () {
  2341. "use strict";
  2342. if (tarteaucitron.user.tawktoId === undefined) {
  2343. return;
  2344. }
  2345. window.Tawk_API=window.Tawk_API||{};
  2346. window.Tawk_LoadStart=new Date();
  2347. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  2348. }
  2349. };
  2350. // getquanty
  2351. tarteaucitron.services.getquanty = {
  2352. "key": "getquanty",
  2353. "type": "analytic",
  2354. "name": "GetQuanty",
  2355. "uri": "https://www.getquanty.com/mentions-legales/",
  2356. "needConsent": true,
  2357. "cookies": [],
  2358. "js": function () {
  2359. "use strict";
  2360. if (tarteaucitron.user.getguanty === undefined) {
  2361. return;
  2362. }
  2363. window.webleads_site_ids = window.webleads_site_ids || [];
  2364. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  2365. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  2366. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  2367. }
  2368. };