tarteaucitron.services.js 92 KB

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