tarteaucitron.services.js 102 KB

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