sibu 0.9.1 → 0.9.2

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