tarteaucitron.services.js 102 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901
  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 || []).push(arguments);
  1314. };
  1315. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1316. mt('send', 'pageview');
  1317. });
  1318. }
  1319. };
  1320. // microsoftcampaignanalytics
  1321. tarteaucitron.services.microsoftcampaignanalytics = {
  1322. "key": "microsoftcampaignanalytics",
  1323. "type": "analytic",
  1324. "name": "Microsoft Campaign Analytics",
  1325. "uri": "https://privacy.microsoft.com/privacystatement/",
  1326. "needConsent": true,
  1327. "cookies": [],
  1328. "js": function () {
  1329. "use strict";
  1330. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1331. return;
  1332. }
  1333. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1334. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1335. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1336. });
  1337. }
  1338. };
  1339. // pinterest
  1340. tarteaucitron.services.pinterest = {
  1341. "key": "pinterest",
  1342. "type": "social",
  1343. "name": "Pinterest",
  1344. "uri": "https://about.pinterest.com/privacy-policy",
  1345. "needConsent": true,
  1346. "cookies": [],
  1347. "js": function () {
  1348. "use strict";
  1349. tarteaucitron.fallback(['tacPinterest'], '');
  1350. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1351. },
  1352. "fallback": function () {
  1353. "use strict";
  1354. var id = 'pinterest';
  1355. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1356. }
  1357. };
  1358. // prelinker
  1359. tarteaucitron.services.prelinker = {
  1360. "key": "prelinker",
  1361. "type": "ads",
  1362. "name": "Prelinker",
  1363. "uri": "http://www.prelinker.com/index/index/cgu/",
  1364. "needConsent": true,
  1365. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1366. "js": function () {
  1367. "use strict";
  1368. var uniqIds = [],
  1369. i,
  1370. uri;
  1371. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1372. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1373. uniqIds.push(uniqId);
  1374. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1375. });
  1376. for (i = 0; i < uniqIds.length; i += 1) {
  1377. uri = 'http://promo.easy-dating.org/banner/index?';
  1378. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1379. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1380. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1381. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1382. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1383. }
  1384. },
  1385. "fallback": function () {
  1386. "use strict";
  1387. var id = 'prelinker';
  1388. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1389. }
  1390. };
  1391. // prezi
  1392. tarteaucitron.services.prezi = {
  1393. "key": "prezi",
  1394. "type": "video",
  1395. "name": "Prezi",
  1396. "uri": "https://prezi.com/privacy-policy/",
  1397. "needConsent": true,
  1398. "cookies": [],
  1399. "js": function () {
  1400. "use strict";
  1401. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1402. var id = x.getAttribute("data-id"),
  1403. width = x.getAttribute("width"),
  1404. height = x.getAttribute("height"),
  1405. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1406. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1407. });
  1408. },
  1409. "fallback": function () {
  1410. "use strict";
  1411. var id = 'prezi';
  1412. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1413. elem.style.width = elem.getAttribute('width') + 'px';
  1414. elem.style.height = elem.getAttribute('height') + 'px';
  1415. return tarteaucitron.engage(id);
  1416. });
  1417. }
  1418. };
  1419. // pubdirecte
  1420. tarteaucitron.services.pubdirecte = {
  1421. "key": "pubdirecte",
  1422. "type": "ads",
  1423. "name": "Pubdirecte",
  1424. "uri": "http://pubdirecte.com/contact.php",
  1425. "needConsent": true,
  1426. "cookies": [],
  1427. "js": function () {
  1428. "use strict";
  1429. var uniqIds = [],
  1430. i,
  1431. uri;
  1432. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1433. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1434. uniqIds.push(uniqId);
  1435. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1436. });
  1437. for (i = 0; i < uniqIds.length; i += 1) {
  1438. uri = '//www.pubdirecte.com/script/banniere.php?';
  1439. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1440. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1441. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1442. }
  1443. },
  1444. "fallback": function () {
  1445. "use strict";
  1446. var id = 'pubdirecte';
  1447. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1448. }
  1449. };
  1450. // purechat
  1451. tarteaucitron.services.purechat = {
  1452. "key": "purechat",
  1453. "type": "support",
  1454. "name": "PureChat",
  1455. "uri": "https://www.purechat.com/privacy",
  1456. "needConsent": true,
  1457. "cookies": [],
  1458. "js": function () {
  1459. "use strict";
  1460. if (tarteaucitron.user.purechatId === undefined) {
  1461. return;
  1462. }
  1463. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1464. try {
  1465. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1466. } catch (e) {}
  1467. });
  1468. }
  1469. };
  1470. // shareaholic
  1471. tarteaucitron.services.shareaholic = {
  1472. "key": "shareaholic",
  1473. "type": "social",
  1474. "name": "Shareaholic",
  1475. "uri": "https://shareaholic.com/privacy/choices",
  1476. "needConsent": true,
  1477. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1478. "js": function () {
  1479. "use strict";
  1480. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1481. return;
  1482. }
  1483. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1484. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1485. try {
  1486. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1487. } catch (e) {}
  1488. });
  1489. },
  1490. "fallback": function () {
  1491. "use strict";
  1492. var id = 'shareaholic';
  1493. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1494. }
  1495. };
  1496. // shareasale
  1497. tarteaucitron.services.shareasale = {
  1498. "key": "shareasale",
  1499. "type": "ads",
  1500. "name": "ShareASale",
  1501. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1502. "needConsent": true,
  1503. "cookies": [],
  1504. "js": function () {
  1505. "use strict";
  1506. var uniqIds = [],
  1507. i,
  1508. uri;
  1509. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1510. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1511. uniqIds.push(uniqId);
  1512. 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>';
  1513. });
  1514. for (i = 0; i < uniqIds.length; i += 1) {
  1515. uri = 'https://shareasale.com/sale.cfm?';
  1516. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1517. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1518. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1519. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1520. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1521. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1522. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1523. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1524. }
  1525. },
  1526. "fallback": function () {
  1527. "use strict";
  1528. var id = 'shareasale';
  1529. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1530. }
  1531. };
  1532. // sharethis
  1533. tarteaucitron.services.sharethis = {
  1534. "key": "sharethis",
  1535. "type": "social",
  1536. "name": "ShareThis",
  1537. "uri": "http://www.sharethis.com/legal/privacy/",
  1538. "needConsent": true,
  1539. "cookies": ['__unam'],
  1540. "js": function () {
  1541. "use strict";
  1542. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1543. return;
  1544. }
  1545. var switchTo5x = true,
  1546. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1547. tarteaucitron.fallback(['tacSharethis'], '');
  1548. tarteaucitron.addScript(uri, '', function () {
  1549. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1550. });
  1551. if (tarteaucitron.isAjax === true) {
  1552. if (typeof stButtons !== "undefined") {
  1553. stButtons.locateElements();
  1554. }
  1555. }
  1556. },
  1557. "fallback": function () {
  1558. "use strict";
  1559. var id = 'sharethis';
  1560. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1561. }
  1562. };
  1563. // slideshare
  1564. tarteaucitron.services.slideshare = {
  1565. "key": "slideshare",
  1566. "type": "video",
  1567. "name": "SlideShare",
  1568. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1569. "needConsent": true,
  1570. "cookies": [],
  1571. "js": function () {
  1572. "use strict";
  1573. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1574. var id = x.getAttribute("data-id"),
  1575. width = x.getAttribute("width"),
  1576. height = x.getAttribute("height"),
  1577. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1578. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1579. });
  1580. },
  1581. "fallback": function () {
  1582. "use strict";
  1583. var id = 'slideshare';
  1584. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1585. elem.style.width = elem.getAttribute('width') + 'px';
  1586. elem.style.height = elem.getAttribute('height') + 'px';
  1587. return tarteaucitron.engage(id);
  1588. });
  1589. }
  1590. };
  1591. // statcounter
  1592. tarteaucitron.services.statcounter = {
  1593. "key": "statcounter",
  1594. "type": "analytic",
  1595. "name": "StatCounter",
  1596. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1597. "needConsent": true,
  1598. "cookies": ['sc_is_visitor_unique'],
  1599. "js": function () {
  1600. "use strict";
  1601. var uniqIds = [],
  1602. i,
  1603. uri = '//statcounter.com/counter/counter.js';
  1604. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1605. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1606. uniqIds.push(uniqId);
  1607. return '<div id="' + uniqId + '"></div>';
  1608. });
  1609. for (i = 0; i < uniqIds.length; i += 1) {
  1610. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1611. }
  1612. },
  1613. "fallback": function () {
  1614. "use strict";
  1615. var id = 'statcounter';
  1616. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1617. }
  1618. };
  1619. // timelinejs
  1620. tarteaucitron.services.timelinejs = {
  1621. "key": "timelinejs",
  1622. "type": "api",
  1623. "name": "Timeline JS",
  1624. "uri": "http://timeline.knightlab.com/#help",
  1625. "needConsent": true,
  1626. "cookies": [],
  1627. "js": function () {
  1628. "use strict";
  1629. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1630. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1631. width = x.getAttribute("width"),
  1632. height = x.getAttribute("height"),
  1633. lang = x.getAttribute("lang_2_letter"),
  1634. font = x.getAttribute("font"),
  1635. map = x.getAttribute("map"),
  1636. start_at_end = x.getAttribute("start_at_end"),
  1637. hash_bookmark = x.getAttribute("hash_bookmark"),
  1638. start_at_slide = x.getAttribute("start_at_slide"),
  1639. start_zoom = x.getAttribute("start_zoom"),
  1640. 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;
  1641. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1642. });
  1643. },
  1644. "fallback": function () {
  1645. "use strict";
  1646. var id = 'timelinejs';
  1647. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1648. elem.style.width = elem.getAttribute('width') + 'px';
  1649. elem.style.height = elem.getAttribute('height') + 'px';
  1650. return tarteaucitron.engage(id);
  1651. });
  1652. }
  1653. };
  1654. // tagcommander
  1655. tarteaucitron.services.tagcommander = {
  1656. "key": "tagcommander",
  1657. "type": "api",
  1658. "name": "TagCommander",
  1659. "uri": "https://www.commandersact.com/en/privacy/",
  1660. "needConsent": true,
  1661. "cookies": [],
  1662. "js": function () {
  1663. "use strict";
  1664. if (tarteaucitron.user.tagcommanderid === undefined) {
  1665. return;
  1666. }
  1667. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  1668. }
  1669. };
  1670. // typekit
  1671. tarteaucitron.services.typekit = {
  1672. "key": "typekit",
  1673. "type": "api",
  1674. "name": "Typekit (adobe)",
  1675. "uri": "https://www.adobe.com/privacy.html",
  1676. "needConsent": true,
  1677. "cookies": [],
  1678. "js": function () {
  1679. "use strict";
  1680. if (tarteaucitron.user.typekitId === undefined) {
  1681. return;
  1682. }
  1683. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1684. try {
  1685. Typekit.load();
  1686. } catch (e) {}
  1687. });
  1688. }
  1689. };
  1690. // twenga
  1691. tarteaucitron.services.twenga = {
  1692. "key": "twenga",
  1693. "type": "ads",
  1694. "name": "Twenga",
  1695. "uri": "http://www.twenga.com/privacy.php",
  1696. "needConsent": true,
  1697. "cookies": [],
  1698. "js": function () {
  1699. "use strict";
  1700. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1701. return;
  1702. }
  1703. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1704. }
  1705. };
  1706. // twitter
  1707. tarteaucitron.services.twitter = {
  1708. "key": "twitter",
  1709. "type": "social",
  1710. "name": "Twitter",
  1711. "uri": "https://support.twitter.com/articles/20170514",
  1712. "needConsent": true,
  1713. "cookies": [],
  1714. "js": function () {
  1715. "use strict";
  1716. tarteaucitron.fallback(['tacTwitter'], '');
  1717. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1718. },
  1719. "fallback": function () {
  1720. "use strict";
  1721. var id = 'twitter';
  1722. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1723. }
  1724. };
  1725. // twitter embed
  1726. tarteaucitron.services.twitterembed = {
  1727. "key": "twitterembed",
  1728. "type": "social",
  1729. "name": "Twitter (cards)",
  1730. "uri": "https://support.twitter.com/articles/20170514",
  1731. "needConsent": true,
  1732. "cookies": [],
  1733. "js": function () {
  1734. "use strict";
  1735. var uniqIds = [],
  1736. i,
  1737. e,
  1738. html;
  1739. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1740. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1741. uniqIds.push(uniqId);
  1742. html = '<div id="' + uniqId + '" ';
  1743. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1744. html += 'theme="' + x.getAttribute('theme') + '" ';
  1745. html += 'cards="' + x.getAttribute('cards') + '" ';
  1746. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1747. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1748. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1749. html += '></div>';
  1750. return html;
  1751. });
  1752. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1753. for (i = 0; i < uniqIds.length; i += 1) {
  1754. e = document.getElementById(uniqIds[i]);
  1755. twttr.widgets.createTweet(
  1756. e.getAttribute('tweetid'),
  1757. e,
  1758. {
  1759. theme: e.getAttribute('theme'),
  1760. cards: e.getAttribute('cards'),
  1761. conversation: e.getAttribute('conversation'),
  1762. lang: tarteaucitron.getLanguage(),
  1763. dnt: true,
  1764. width: e.getAttribute('data-width'),
  1765. align: e.getAttribute('data-align')
  1766. }
  1767. );
  1768. }
  1769. });
  1770. },
  1771. "fallback": function () {
  1772. "use strict";
  1773. var id = 'twitterembed';
  1774. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1775. elem.style.width = elem.getAttribute('data-width') + 'px';
  1776. return tarteaucitron.engage(id);
  1777. });
  1778. }
  1779. };
  1780. // twitter timeline
  1781. tarteaucitron.services.twittertimeline = {
  1782. "key": "twittertimeline",
  1783. "type": "social",
  1784. "name": "Twitter (timelines)",
  1785. "uri": "https://support.twitter.com/articles/20170514",
  1786. "needConsent": true,
  1787. "cookies": [],
  1788. "js": function () {
  1789. "use strict";
  1790. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1791. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1792. },
  1793. "fallback": function () {
  1794. "use strict";
  1795. var id = 'twittertimeline';
  1796. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1797. }
  1798. };
  1799. // user voice
  1800. tarteaucitron.services.uservoice = {
  1801. "key": "uservoice",
  1802. "type": "support",
  1803. "name": "UserVoice",
  1804. "uri": "https://www.uservoice.com/privacy/",
  1805. "needConsent": true,
  1806. "cookies": [],
  1807. "js": function () {
  1808. "use strict";
  1809. if (tarteaucitron.user.userVoiceApi === undefined) {
  1810. return;
  1811. }
  1812. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1813. }
  1814. };
  1815. // vimeo
  1816. tarteaucitron.services.vimeo = {
  1817. "key": "vimeo",
  1818. "type": "video",
  1819. "name": "Vimeo",
  1820. "uri": "https://vimeo.com/privacy",
  1821. "needConsent": true,
  1822. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1823. "js": function () {
  1824. "use strict";
  1825. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1826. var video_width = x.getAttribute("data-width") || x.getAttribute("width"),
  1827. frame_width = 'width=',
  1828. video_height = x.getAttribute("data-height") || x.getAttribute("height"),
  1829. frame_height = 'height=',
  1830. video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
  1831. video_autopause = x.getAttribute("data-autopause") || '',
  1832. video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
  1833. video_background = x.getAttribute("data-background") || '',
  1834. video_byline = x.getAttribute("data-byline") || x.getAttribute("byline") || '',
  1835. video_color = x.getAttribute("data-color") || '',
  1836. video_controls = x.getAttribute("data-controls") || '',
  1837. video_loop = x.getAttribute("data-loop") || x.getAttribute("loop") || '',
  1838. video_maxheight = x.getAttribute("data-maxheight") || '',
  1839. video_maxwidth = x.getAttribute("data-maxwidth") || '',
  1840. video_muted = x.getAttribute("data-muted") || '',
  1841. video_playsinline = x.getAttribute("data-playsinline") || '',
  1842. video_portrait = x.getAttribute("data-portrait") || x.getAttribute("portrait") || '',
  1843. video_speed = x.getAttribute("data-speed") || '',
  1844. video_title = x.getAttribute("data-title") || x.getAttribute("title") || '',
  1845. video_transparent = x.getAttribute("data-transparent") || '',
  1846. video_frame;
  1847. var video_qs = '';
  1848. if (video_id === undefined) {
  1849. return "";
  1850. }
  1851. if (video_width !== undefined) {
  1852. frame_width += '"' + video_width + '" ';
  1853. } else {
  1854. frame_width += '"" ';
  1855. }
  1856. if (video_height !== undefined) {
  1857. frame_height += '"' + video_height + '" ';
  1858. } else {
  1859. frame_height += '"" ';
  1860. }
  1861. if (video_title.length > 0 || video_byline.length > 0 || video_portrait.length > 0) {
  1862. video_qs = "?";
  1863. if (video_title.length > 0) {
  1864. video_qs += "title=" + video_title;
  1865. }
  1866. if (video_byline.length > 0) {
  1867. if (video_qs.length > 1) {
  1868. video_qs += "&";
  1869. }
  1870. video_qs += "byline=" + video_byline;
  1871. }
  1872. if (video_portrait.length > 0) {
  1873. if (video_qs.length > 1) {
  1874. video_qs += "&";
  1875. }
  1876. video_qs += "portrait=" + video_portrait;
  1877. }
  1878. if (video_loop.length > 0) {
  1879. if (video_qs.length > 1) {
  1880. video_qs += "&";
  1881. }
  1882. video_qs += "loop=" + video_loop;
  1883. }
  1884. if (video_autoplay.length > 0) {
  1885. if (video_qs.length > 1) {
  1886. video_qs += "&";
  1887. }
  1888. video_qs += "autoplay=" + video_autoplay;
  1889. }
  1890. if (video_autopause.length > 0) {
  1891. if (video_qs.length > 1) {
  1892. video_qs += "&";
  1893. }
  1894. video_qs += "autopause=" + video_autopause;
  1895. }
  1896. if (video_background.length > 0) {
  1897. if (video_qs.length > 1) {
  1898. video_qs += "&";
  1899. }
  1900. video_qs += "background=" + video_background;
  1901. }
  1902. if (video_color.length > 0) {
  1903. if (video_qs.length > 1) {
  1904. video_qs += "&";
  1905. }
  1906. video_qs += "color=" + video_color;
  1907. }
  1908. if (video_controls.length > 0) {
  1909. if (video_qs.length > 1) {
  1910. video_qs += "&";
  1911. }
  1912. video_qs += "controls=" + video_controls;
  1913. }
  1914. if (video_maxheight.length > 0) {
  1915. if (video_qs.length > 1) {
  1916. video_qs += "&";
  1917. }
  1918. video_qs += "maxheight=" + video_maxheight;
  1919. }
  1920. if (video_maxwidth.length > 0) {
  1921. if (video_qs.length > 1) {
  1922. video_qs += "&";
  1923. }
  1924. video_qs += "maxwidth=" + video_maxwidth;
  1925. }
  1926. if (video_muted.length > 0) {
  1927. if (video_qs.length > 1) {
  1928. video_qs += "&";
  1929. }
  1930. video_qs += "muted=" + video_muted;
  1931. }
  1932. if (video_playsinline.length > 0) {
  1933. if (video_qs.length > 1) {
  1934. video_qs += "&";
  1935. }
  1936. video_qs += "playsinline=" + video_playsinline;
  1937. }
  1938. if (video_speed.length > 0) {
  1939. if (video_qs.length > 1) {
  1940. video_qs += "&";
  1941. }
  1942. video_qs += "speed=" + video_speed;
  1943. }
  1944. if (video_transparent.length > 0) {
  1945. if (video_qs.length > 1) {
  1946. video_qs += "&";
  1947. }
  1948. video_qs += "transparent=" + video_transparent;
  1949. }
  1950. }
  1951. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1952. return video_frame;
  1953. });
  1954. },
  1955. "fallback": function () {
  1956. "use strict";
  1957. var id = 'vimeo';
  1958. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1959. elem.style.width = elem.getAttribute('width') + 'px';
  1960. elem.style.height = elem.getAttribute('height') + 'px';
  1961. return tarteaucitron.engage(id);
  1962. });
  1963. }
  1964. };
  1965. // visualrevenue
  1966. tarteaucitron.services.visualrevenue = {
  1967. "key": "visualrevenue",
  1968. "type": "analytic",
  1969. "name": "VisualRevenue",
  1970. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1971. "needConsent": true,
  1972. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1973. "js": function () {
  1974. "use strict";
  1975. if (tarteaucitron.user.visualrevenueId === undefined) {
  1976. return;
  1977. }
  1978. window._vrq = window._vrq || [];
  1979. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1980. window._vrq.push(['automate', true]);
  1981. window._vrq.push(['track', function () {}]);
  1982. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1983. }
  1984. };
  1985. // vshop
  1986. tarteaucitron.services.vshop = {
  1987. "key": "vshop",
  1988. "type": "ads",
  1989. "name": "vShop",
  1990. "uri": "http://vshop.fr/privacy-policy",
  1991. "needConsent": true,
  1992. "cookies": [],
  1993. "js": function () {
  1994. "use strict";
  1995. tarteaucitron.fallback(['vcashW'], '');
  1996. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1997. },
  1998. "fallback": function () {
  1999. "use strict";
  2000. var id = 'vshop';
  2001. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  2002. }
  2003. };
  2004. // wysistat
  2005. tarteaucitron.services.wysistat = {
  2006. "key": "wysistat",
  2007. "type": "analytic",
  2008. "name": "Wysistat",
  2009. "uri": "http://wysistat.net/contact/",
  2010. "needConsent": true,
  2011. "cookies": ['Wysistat'],
  2012. "js": function () {
  2013. "use strict";
  2014. if (tarteaucitron.user.wysistat === undefined) {
  2015. return;
  2016. }
  2017. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  2018. 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);
  2019. });
  2020. }
  2021. };
  2022. // xiti
  2023. tarteaucitron.services.xiti = {
  2024. "key": "xiti",
  2025. "type": "analytic",
  2026. "name": "Xiti",
  2027. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2028. "needConsent": true,
  2029. "cookies": [],
  2030. "js": function () {
  2031. "use strict";
  2032. if (tarteaucitron.user.xitiId === undefined) {
  2033. return;
  2034. }
  2035. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  2036. Xt_r,
  2037. Xt_h,
  2038. Xt_i,
  2039. Xt_s,
  2040. div = document.createElement('div');
  2041. try {
  2042. Xt_r = top.document.referrer;
  2043. } catch (e) {
  2044. Xt_r = document.referrer;
  2045. }
  2046. Xt_h = new Date();
  2047. Xt_i = '<img style="display:none" border="0" alt="" ';
  2048. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  2049. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  2050. if (parseFloat(navigator.appVersion) >= 4) {
  2051. Xt_s = screen;
  2052. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  2053. }
  2054. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  2055. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  2056. if (typeof tarteaucitron.user.xitiMore === 'function') {
  2057. tarteaucitron.user.xitiMore();
  2058. }
  2059. }
  2060. };
  2061. // AT Internet
  2062. tarteaucitron.services.atinternet = {
  2063. "key": "atinternet",
  2064. "type": "analytic",
  2065. "name": "AT Internet",
  2066. "uri": "https://www.atinternet.com/societe/rgpd-et-vie-privee/",
  2067. "needConsent": true,
  2068. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2069. "js": function () {
  2070. "use strict";
  2071. if (tarteaucitron.user.atLibUrl === undefined) {
  2072. return;
  2073. }
  2074. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2075. var tag = new ATInternet.Tracker.Tag();
  2076. if (typeof tarteaucitron.user.atMore === 'function') {
  2077. tarteaucitron.user.atMore();
  2078. }
  2079. })
  2080. }
  2081. };
  2082. // youtube
  2083. tarteaucitron.services.youtube = {
  2084. "key": "youtube",
  2085. "type": "video",
  2086. "name": "YouTube",
  2087. "uri": "https://policies.google.com/privacy",
  2088. "needConsent": true,
  2089. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2090. "js": function () {
  2091. "use strict";
  2092. tarteaucitron.fallback(['youtube_player'], function (x) {
  2093. var video_id = x.getAttribute("videoID"),
  2094. video_width = x.getAttribute("width"),
  2095. frame_width = 'width=',
  2096. video_height = x.getAttribute("height"),
  2097. frame_height = 'height=',
  2098. video_frame,
  2099. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2100. if (video_id === undefined) {
  2101. return "";
  2102. }
  2103. if (video_width !== undefined) {
  2104. frame_width += '"' + video_width + '" ';
  2105. } else {
  2106. frame_width += '"" ';
  2107. }
  2108. if (video_height !== undefined) {
  2109. frame_height += '"' + video_height + '" ';
  2110. } else {
  2111. frame_height += '"" ';
  2112. }
  2113. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0" allowfullscreen></iframe>';
  2114. return video_frame;
  2115. });
  2116. },
  2117. "fallback": function () {
  2118. "use strict";
  2119. var id = 'youtube';
  2120. tarteaucitron.fallback(['youtube_player'], function (elem) {
  2121. elem.style.width = elem.getAttribute('width') + 'px';
  2122. elem.style.height = elem.getAttribute('height') + 'px';
  2123. return tarteaucitron.engage(id);
  2124. });
  2125. }
  2126. };
  2127. // youtube playlist
  2128. tarteaucitron.services.youtubeplaylist = {
  2129. "key": "youtubeplaylist",
  2130. "type": "video",
  2131. "name": "YouTube (playlist)",
  2132. "uri": "https://policies.google.com/privacy",
  2133. "needConsent": true,
  2134. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2135. "js": function () {
  2136. "use strict";
  2137. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  2138. var playlist_id = x.getAttribute("playlistID"),
  2139. video_width = x.getAttribute("width"),
  2140. frame_width = 'width=',
  2141. video_height = x.getAttribute("height"),
  2142. frame_height = 'height=',
  2143. video_frame,
  2144. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  2145. if (playlist_id === undefined) {
  2146. return "";
  2147. }
  2148. if (video_width !== undefined) {
  2149. frame_width += '"' + video_width + '" ';
  2150. } else {
  2151. frame_width += '"" ';
  2152. }
  2153. if (video_height !== undefined) {
  2154. frame_height += '"' + video_height + '" ';
  2155. } else {
  2156. frame_height += '"" ';
  2157. }
  2158. 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>';
  2159. return video_frame;
  2160. });
  2161. },
  2162. "fallback": function () {
  2163. "use strict";
  2164. var id = 'youtubeplaylist';
  2165. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  2166. elem.style.width = elem.getAttribute('width') + 'px';
  2167. elem.style.height = elem.getAttribute('height') + 'px';
  2168. return tarteaucitron.engage(id);
  2169. });
  2170. }
  2171. };
  2172. // zopim
  2173. tarteaucitron.services.zopim = {
  2174. "key": "zopim",
  2175. "type": "support",
  2176. "name": "Zopim",
  2177. "uri": "https://www.zopim.com/privacy",
  2178. "needConsent": true,
  2179. "cookies": ['__zlcid', '__zprivacy'],
  2180. "js": function () {
  2181. "use strict";
  2182. if (tarteaucitron.user.zopimID === undefined) {
  2183. return;
  2184. }
  2185. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  2186. }
  2187. };
  2188. // xiti smartTag
  2189. tarteaucitron.services.xiti_smarttag = {
  2190. "key": "xiti_smarttag",
  2191. "type": "analytic",
  2192. "name": "Xiti (SmartTag)",
  2193. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  2194. "needConsent": true,
  2195. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  2196. "js": function () {
  2197. "use strict";
  2198. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  2199. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  2200. } else {
  2201. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  2202. if (xitiSmarttagId === undefined) {
  2203. return;
  2204. }
  2205. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  2206. }
  2207. }
  2208. };
  2209. // facebook pixel
  2210. tarteaucitron.services.facebookpixel = {
  2211. "key": "facebookpixel",
  2212. "type": "ads",
  2213. "name": "Facebook Pixel",
  2214. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  2215. "needConsent": true,
  2216. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  2217. "js": function () {
  2218. "use strict";
  2219. var n;
  2220. if(window.fbq)return;
  2221. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2222. if(!window._fbq)window._fbq=n;
  2223. n.push=n;
  2224. n.loaded=!0;
  2225. n.version='2.0';
  2226. n.queue=[];
  2227. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2228. fbq('init', tarteaucitron.user.facebookpixelId);
  2229. fbq('track', 'PageView');
  2230. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2231. tarteaucitron.user.facebookpixelMore();
  2232. }
  2233. }
  2234. };
  2235. //Issuu
  2236. tarteaucitron.services.issuu = {
  2237. "key": "issuu",
  2238. "type": "other",
  2239. "name": "Issuu",
  2240. "uri": "https://issuu.com/legal/privacy",
  2241. "needConsent": true,
  2242. "cookies": ['__qca', 'iutk', 'mc'],
  2243. "js": function () {
  2244. "use strict";
  2245. tarteaucitron.fallback(['issuu_player'], function (x) {
  2246. var issuu_id = x.getAttribute("issuuID"),
  2247. issuu_width = x.getAttribute("width"),
  2248. frame_width = 'width=',
  2249. issuu_height = x.getAttribute("height"),
  2250. frame_height = 'height=',
  2251. issuu_frame;
  2252. if (issuu_id === undefined) {
  2253. return "";
  2254. }
  2255. if (issuu_width !== undefined) {
  2256. frame_width += '"' + issuu_width + '" ';
  2257. } else {
  2258. frame_width += '"" ';
  2259. }
  2260. if (issuu_height !== undefined) {
  2261. frame_height += '"' + issuu_height + '" ';
  2262. } else {
  2263. frame_height += '"" ';
  2264. }
  2265. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
  2266. return issuu_frame;
  2267. });
  2268. },
  2269. "fallback": function () {
  2270. "use strict";
  2271. var id = 'issuu';
  2272. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2273. elem.style.width = elem.getAttribute('width') + 'px';
  2274. elem.style.height = elem.getAttribute('height') + 'px';
  2275. return tarteaucitron.engage(id);
  2276. });
  2277. }
  2278. };
  2279. // webmecanik
  2280. tarteaucitron.services.webmecanik = {
  2281. "key": "webmecanik",
  2282. "type": "analytic",
  2283. "name": "Webmecanik",
  2284. "uri": "https://webmecanik.com/tos",
  2285. "needConsent": true,
  2286. "cookies": ['mtc_id', 'mtc_sid'],
  2287. "js": function () {
  2288. "use strict";
  2289. if (tarteaucitron.user.webmecanikurl === undefined) {
  2290. return;
  2291. }
  2292. window['WebmecanikTrackingObject'] = 'mt';
  2293. window['mt'] = window['mt'] || function() {
  2294. (window['mt'].q = window['mt'].q || []).push(arguments);
  2295. };
  2296. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2297. mt('send', 'pageview');
  2298. });
  2299. }
  2300. };
  2301. // google analytics multiple
  2302. tarteaucitron.services.multiplegtag = {
  2303. "key": "multiplegtag",
  2304. "type": "analytic",
  2305. "name": "Google Analytics (gtag.js)",
  2306. "uri": "https://support.google.com/analytics/answer/6004245",
  2307. "needConsent": true,
  2308. "cookies": (function () {
  2309. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2310. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2311. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2312. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2313. });
  2314. }
  2315. return cookies;
  2316. })(),
  2317. "js": function () {
  2318. "use strict";
  2319. window.dataLayer = window.dataLayer || [];
  2320. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2321. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2322. window.gtag = function gtag(){dataLayer.push(arguments);}
  2323. gtag('js', new Date());
  2324. gtag('config', ua);
  2325. });
  2326. });
  2327. }
  2328. };
  2329. // Koban
  2330. tarteaucitron.services.koban = {
  2331. "key": "koban",
  2332. "type": "analytic",
  2333. "name": "Koban",
  2334. "uri": "https://koban.cloud/tos",
  2335. "needConsent": true,
  2336. "cookies": ['kbntrk'],
  2337. "js": function () {
  2338. "use strict";
  2339. if (tarteaucitron.user.kobanurl === undefined) {
  2340. return;
  2341. }
  2342. if (tarteaucitron.user.kobanapi === undefined) {
  2343. return;
  2344. }
  2345. window.KobanObject = 'kb';
  2346. window.kb = window.kb || function() {
  2347. window.kb.q = window.kb.q || [];
  2348. window.kb.q.push(arguments);
  2349. };
  2350. window.kb.l = new Date();
  2351. kb('reg', tarteaucitron.user.kobanapi);
  2352. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  2353. });
  2354. }
  2355. };
  2356. // matomo
  2357. /*
  2358. 1. Set the following variable before the initialization :
  2359. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  2360. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  2361. 2. Push the service :
  2362. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  2363. 3. HTML
  2364. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2365. */
  2366. tarteaucitron.services.matomo = {
  2367. "key": "matomo",
  2368. "type": "analytic",
  2369. "name": "Matomo (formerly known as Piwik)",
  2370. "uri": "https://matomo.org/faq/general/faq_146/",
  2371. "needConsent": false,
  2372. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2373. "js": function () {
  2374. "use strict";
  2375. if (tarteaucitron.user.matomoId === undefined) {
  2376. return;
  2377. }
  2378. window._paq = window._paq || [];
  2379. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2380. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2381. window._paq.push(["setDoNotTrack", 1]);
  2382. window._paq.push(["trackPageView"]);
  2383. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2384. window._paq.push(["enableLinkTracking"]);
  2385. window._paq.push([function() {
  2386. var self = this;
  2387. function getOriginalVisitorCookieTimeout() {
  2388. var now = new Date(),
  2389. nowTs = Math.round(now.getTime() / 1000),
  2390. visitorInfo = self.getVisitorInfo();
  2391. var createTs = parseInt(visitorInfo[2]);
  2392. var cookieTimeout = 33696000; // 13 mois en secondes
  2393. var originalTimeout = createTs + cookieTimeout - nowTs;
  2394. return originalTimeout;
  2395. }
  2396. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  2397. }]);
  2398. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2399. // waiting for piwik to be ready to check first party cookies
  2400. var interval = setInterval(function() {
  2401. if (typeof Piwik === 'undefined') return
  2402. clearInterval(interval)
  2403. // make piwik/matomo cookie accessible by getting tracker
  2404. Piwik.getTracker();
  2405. // looping throught cookies
  2406. var theCookies = document.cookie.split(';');
  2407. for (var i = 1 ; i <= theCookies.length; i++) {
  2408. var cookie = theCookies[i-1].split('=');
  2409. var cookieName = cookie[0].trim();
  2410. // if cookie starts like a piwik one, register it
  2411. if (cookieName.indexOf('_pk_') === 0) {
  2412. tarteaucitron.services.matomo.cookies.push(cookieName);
  2413. }
  2414. }
  2415. }, 100)
  2416. }
  2417. };
  2418. // Hotjar
  2419. /*
  2420. 1. Set the following variable before the initialization :
  2421. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  2422. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  2423. 2. Push the service :
  2424. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  2425. 3. HTML
  2426. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2427. */
  2428. tarteaucitron.services.hotjar = {
  2429. "key": "hotjar",
  2430. "type": "analytic",
  2431. "name": "Hotjar",
  2432. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  2433. "needConsent": true,
  2434. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  2435. "js": function () {
  2436. "use strict";
  2437. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  2438. return;
  2439. }
  2440. window.hj = window.hj || function() {
  2441. (window.hj.q = window.hj.q || []).push(arguments)
  2442. };
  2443. window._hjSettings = {
  2444. hjid: tarteaucitron.user.hotjarId,
  2445. hjsv: tarteaucitron.user.HotjarSv
  2446. };
  2447. var uri = 'https://static.hotjar.com/c/hotjar-';
  2448. var extension = '.js?sv=';
  2449. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  2450. }
  2451. };
  2452. // bing ads universal event tracking
  2453. tarteaucitron.services.bingads = {
  2454. 'key': 'bingads',
  2455. 'type': 'ads',
  2456. 'name': 'Bing Ads Universal Event Tracking',
  2457. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  2458. 'needConsent': true,
  2459. 'cookies': ['_uetmsclkid'],
  2460. 'js': function () {
  2461. 'use strict';
  2462. var u = tarteaucitron.user.bingadsTag || 'uetq';
  2463. window[u] = window[u] || [];
  2464. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  2465. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  2466. if ('bingadsStoreCookies' in tarteaucitron.user) {
  2467. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  2468. }
  2469. bingadsCreate.q = window[u];
  2470. window[u] = new UET(bingadsCreate);
  2471. window[u].push('pageLoad');
  2472. });
  2473. }
  2474. };
  2475. //Matterport
  2476. /*
  2477. SERVICE INIT
  2478. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  2479. HTML TAG
  2480. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  2481. DELETE IFRAME
  2482. <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>'
  2483. */
  2484. tarteaucitron.services.matterport = {
  2485. "key": "matterport",
  2486. "type": "other",
  2487. "name": "Matterport",
  2488. "uri": "https://matterport.com/es/legal/privacy-policy/",
  2489. "needConsent": true,
  2490. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  2491. "js": function () {
  2492. "use strict";
  2493. tarteaucitron.fallback(['matterport'], function (x) {
  2494. var matterport_id = x.getAttribute("matterportID"),
  2495. matterport_width = x.getAttribute("width"),
  2496. frame_width = 'width=',
  2497. matterport_height = x.getAttribute("height"),
  2498. frame_height = 'height=',
  2499. matterport_parameters = x.getAttribute("parameters"),
  2500. matterport_frame;
  2501. if (matterport_id === undefined) {
  2502. return "";
  2503. }
  2504. if (matterport_width !== undefined) {
  2505. frame_width += '"' + matterport_width + '" ';
  2506. } else {
  2507. frame_width += '"" ';
  2508. }
  2509. if (matterport_height !== undefined) {
  2510. frame_height += '"' + matterport_height + '" ';
  2511. } else {
  2512. frame_height += '"" ';
  2513. }
  2514. if (matterport_parameters === undefined) {
  2515. return "";
  2516. }
  2517. 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>';
  2518. return matterport_frame;
  2519. });
  2520. },
  2521. "fallback": function () {
  2522. "use strict";
  2523. var id = 'matterport';
  2524. tarteaucitron.fallback(['matterport'], function (elem) {
  2525. elem.style.width = elem.getAttribute('width') + 'px';
  2526. elem.style.height = elem.getAttribute('height') + 'px';
  2527. return tarteaucitron.engage(id);
  2528. });
  2529. }
  2530. };
  2531. // Adform
  2532. tarteaucitron.services.adform = {
  2533. "key": "adform",
  2534. "type": "ads",
  2535. "name": "Adform",
  2536. "uri": "https://site.adform.com/privacy-center/overview/",
  2537. "needConsent": true,
  2538. "cookies": [],
  2539. "js": function () {
  2540. "use strict";
  2541. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  2542. return;
  2543. }
  2544. window._adftrack = {
  2545. pm: tarteaucitron.user.adformpm,
  2546. divider: encodeURIComponent('|'),
  2547. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  2548. };
  2549. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  2550. }
  2551. };
  2552. // Active Campaign
  2553. tarteaucitron.services.activecampaign = {
  2554. "key": "activecampaign",
  2555. "type": "ads",
  2556. "name": "Active Campaign",
  2557. "uri": "https://www.activecampaign.com/privacy-policy/",
  2558. "needConsent": true,
  2559. "cookies": [],
  2560. "js": function () {
  2561. "use strict";
  2562. if (tarteaucitron.user.actid === undefined) {
  2563. return;
  2564. }
  2565. window.trackcmp_email = '';
  2566. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  2567. }
  2568. };
  2569. // tawk.to
  2570. tarteaucitron.services.tawkto = {
  2571. "key": "tawkto",
  2572. "type": "support",
  2573. "name": "Tawk.to chat",
  2574. "uri": "https://www.tawk.to/data-protection/",
  2575. "needConsent": true,
  2576. "cookies": [],
  2577. "js": function () {
  2578. "use strict";
  2579. if (tarteaucitron.user.tawktoId === undefined) {
  2580. return;
  2581. }
  2582. window.Tawk_API=window.Tawk_API||{};
  2583. window.Tawk_LoadStart=new Date();
  2584. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  2585. }
  2586. };
  2587. // getquanty
  2588. tarteaucitron.services.getquanty = {
  2589. "key": "getquanty",
  2590. "type": "analytic",
  2591. "name": "GetQuanty",
  2592. "uri": "https://www.getquanty.com/mentions-legales/",
  2593. "needConsent": true,
  2594. "cookies": [],
  2595. "js": function () {
  2596. "use strict";
  2597. if (tarteaucitron.user.getguanty === undefined) {
  2598. return;
  2599. }
  2600. window.webleads_site_ids = window.webleads_site_ids || [];
  2601. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  2602. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  2603. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  2604. }
  2605. };
  2606. // emolytics
  2607. tarteaucitron.services.emolytics = {
  2608. "key": "emolytics",
  2609. "type": "analytic",
  2610. "name": "Emolytics",
  2611. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  2612. "needConsent": true,
  2613. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  2614. "js": function () {
  2615. "use strict";
  2616. if (tarteaucitron.user.emolyticsID === undefined) {
  2617. return;
  2618. }
  2619. var scriptEmolytics = document.createElement('script');
  2620. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  2621. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  2622. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  2623. }
  2624. };
  2625. // youtubeapi
  2626. tarteaucitron.services.youtubeapi = {
  2627. "key": "youtubeapi",
  2628. "type": "video",
  2629. "name": "Youtube (Js API)",
  2630. "uri": "https://policies.google.com/privacy/",
  2631. "needConsent": true,
  2632. "cookies": [],
  2633. "js": function () {
  2634. "use strict";
  2635. tarteaucitron.addScript('https://www.youtube.com/player_api');
  2636. }
  2637. };