|
@@ -1020,7 +1020,16 @@ tarteaucitron.services.gajs = {
|
|
"use strict";
|
|
"use strict";
|
|
window._gaq = window._gaq || [];
|
|
window._gaq = window._gaq || [];
|
|
window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
|
|
window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
|
|
- window._gaq.push(['_trackPageview']);
|
|
|
|
|
|
+
|
|
|
|
+ if (tarteaucitron.user.gajsAnonymizeIp) {
|
|
|
|
+ window._gaq.push (['_gat._anonymizeIp']);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (tarteaucitron.user.gajsPageView) {
|
|
|
|
+ window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
|
|
|
|
+ } else {
|
|
|
|
+ window._gaq.push(['_trackPageview']);
|
|
|
|
+ }
|
|
|
|
|
|
tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
|
|
tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
|
|
if (typeof tarteaucitron.user.gajsMore === 'function') {
|
|
if (typeof tarteaucitron.user.gajsMore === 'function') {
|
|
@@ -1047,8 +1056,24 @@ tarteaucitron.services.analytics = {
|
|
};
|
|
};
|
|
window.ga.l = new Date();
|
|
window.ga.l = new Date();
|
|
tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
|
|
tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
|
|
- ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
|
|
|
|
- ga('send', 'pageview');
|
|
|
|
|
|
+ var uaCreate = {'cookieExpires': 34128000};
|
|
|
|
+ tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
|
|
|
|
+ ga('create', tarteaucitron.user.analyticsUa, uaCreate);
|
|
|
|
+
|
|
|
|
+ if (tarteaucitron.user.analyticsAnonymizeIp) {
|
|
|
|
+ ga('set', 'anonymizeIp', true);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
|
|
|
|
+ tarteaucitron.user.analyticsPrepare();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (tarteaucitron.user.analyticsPageView) {
|
|
|
|
+ ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
|
|
|
|
+ } else {
|
|
|
|
+ ga('send', 'pageview');
|
|
|
|
+ }
|
|
|
|
+
|
|
if (typeof tarteaucitron.user.analyticsMore === 'function') {
|
|
if (typeof tarteaucitron.user.analyticsMore === 'function') {
|
|
tarteaucitron.user.analyticsMore();
|
|
tarteaucitron.user.analyticsMore();
|
|
}
|
|
}
|
|
@@ -1104,7 +1129,7 @@ tarteaucitron.services.googlemaps = {
|
|
}
|
|
}
|
|
|
|
|
|
// Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
|
|
// Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
|
|
- var googleMapsLibraries;
|
|
|
|
|
|
+ var googleMapsLibraries = '';
|
|
if (tarteaucitron.user.googlemapsLibraries) {
|
|
if (tarteaucitron.user.googlemapsLibraries) {
|
|
googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
|
|
googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
|
|
}
|
|
}
|
|
@@ -1166,6 +1191,35 @@ tarteaucitron.services.googlemapssearch = {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+// googlemaps embed iframe
|
|
|
|
+tarteaucitron.services.googlemapsembed = {
|
|
|
|
+ "key": "googlemapsembed",
|
|
|
|
+ "type": "api",
|
|
|
|
+ "name": "Google Maps Embed",
|
|
|
|
+ "uri": "http://www.google.com/ads/preferences/",
|
|
|
|
+ "needConsent": true,
|
|
|
|
+ "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
|
|
|
|
+ "js": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+ tarteaucitron.fallback(['googlemapsembed'], function (x) {
|
|
|
|
+ var width = tarteaucitron.getElemWidth(x),
|
|
|
|
+ height = tarteaucitron.getElemHeight(x),
|
|
|
|
+ url = x.getAttribute("data-url");
|
|
|
|
+
|
|
|
|
+ return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ "fallback": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+ var id = 'googlemapsembed';
|
|
|
|
+ tarteaucitron.fallback(['googlemapsembed'], function (elem) {
|
|
|
|
+ elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
|
|
|
|
+ elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
|
|
|
|
+ return tarteaucitron.engage(id);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
// google tag manager
|
|
// google tag manager
|
|
tarteaucitron.services.googletagmanager = {
|
|
tarteaucitron.services.googletagmanager = {
|
|
"key": "googletagmanager",
|
|
"key": "googletagmanager",
|
|
@@ -2225,7 +2279,7 @@ tarteaucitron.services.koban = {
|
|
window.KobanObject = 'kb';
|
|
window.KobanObject = 'kb';
|
|
window.kb = window.kb || function() {
|
|
window.kb = window.kb || function() {
|
|
window.kb.q = window.kb.q || [];
|
|
window.kb.q = window.kb.q || [];
|
|
- window.kb.q.push(arguments);
|
|
|
|
|
|
+ window.kb.q.push(arguments);
|
|
};
|
|
};
|
|
window.kb.l = new Date();
|
|
window.kb.l = new Date();
|
|
kb('reg', tarteaucitron.user.kobanapi);
|
|
kb('reg', tarteaucitron.user.kobanapi);
|
|
@@ -2254,7 +2308,7 @@ tarteaucitron.services.matomo = {
|
|
"type": "analytic",
|
|
"type": "analytic",
|
|
"name": "Matomo (formerly known as Piwik)",
|
|
"name": "Matomo (formerly known as Piwik)",
|
|
"uri": "https://matomo.org/faq/general/faq_146/",
|
|
"uri": "https://matomo.org/faq/general/faq_146/",
|
|
- "needConsent": true,
|
|
|
|
|
|
+ "needConsent": false,
|
|
"cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
|
|
"cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
|
|
"js": function () {
|
|
"js": function () {
|
|
"use strict";
|
|
"use strict";
|
|
@@ -2269,28 +2323,34 @@ tarteaucitron.services.matomo = {
|
|
window._paq.push(["trackPageView"]);
|
|
window._paq.push(["trackPageView"]);
|
|
window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
|
|
window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
|
|
window._paq.push(["enableLinkTracking"]);
|
|
window._paq.push(["enableLinkTracking"]);
|
|
|
|
+ window._paq.push([function() {
|
|
|
|
+ var self = this;
|
|
|
|
+ function getOriginalVisitorCookieTimeout() {
|
|
|
|
+ var now = new Date(),
|
|
|
|
+ nowTs = Math.round(now.getTime() / 1000),
|
|
|
|
+ visitorInfo = self.getVisitorInfo();
|
|
|
|
+ var createTs = parseInt(visitorInfo[2]);
|
|
|
|
+ var cookieTimeout = 33696000; // 13 mois en secondes
|
|
|
|
+ var originalTimeout = createTs + cookieTimeout - nowTs;
|
|
|
|
+ return originalTimeout;
|
|
|
|
+ }
|
|
|
|
+ this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
|
|
|
|
+ }]);
|
|
|
|
|
|
tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
|
|
tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
// Hotjar
|
|
// Hotjar
|
|
-
|
|
|
|
-/*
|
|
|
|
|
|
+ /*
|
|
1. Set the following variable before the initialization :
|
|
1. Set the following variable before the initialization :
|
|
-
|
|
|
|
- tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
|
|
|
|
|
|
+ tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
|
|
tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
|
|
tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
|
|
-
|
|
|
|
- 2. Push the service :
|
|
|
|
-
|
|
|
|
- (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
|
|
|
|
-
|
|
|
|
- 3. HTML
|
|
|
|
|
|
+ 2. Push the service :
|
|
|
|
+ (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
|
|
|
|
+ 3. HTML
|
|
You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
|
|
You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
|
|
-
|
|
|
|
-
|
|
|
|
- */
|
|
|
|
|
|
+ */
|
|
tarteaucitron.services.hotjar = {
|
|
tarteaucitron.services.hotjar = {
|
|
"key": "hotjar",
|
|
"key": "hotjar",
|
|
"type": "analytic",
|
|
"type": "analytic",
|
|
@@ -2303,17 +2363,192 @@ tarteaucitron.services.hotjar = {
|
|
if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
|
|
if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
- window.hj = window.hj || function() {
|
|
|
|
|
|
+ window.hj = window.hj || function() {
|
|
(window.hj.q = window.hj.q || []).push(arguments)
|
|
(window.hj.q = window.hj.q || []).push(arguments)
|
|
};
|
|
};
|
|
window._hjSettings = {
|
|
window._hjSettings = {
|
|
hjid: tarteaucitron.user.hotjarId,
|
|
hjid: tarteaucitron.user.hotjarId,
|
|
hjsv: tarteaucitron.user.HotjarSv
|
|
hjsv: tarteaucitron.user.HotjarSv
|
|
};
|
|
};
|
|
-
|
|
|
|
- var uri = 'https://static.hotjar.com/c/hotjar-';
|
|
|
|
|
|
+ var uri = 'https://static.hotjar.com/c/hotjar-';
|
|
var extension = '.js?sv=';
|
|
var extension = '.js?sv=';
|
|
tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
|
|
tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+// bing ads universal event tracking
|
|
|
|
+tarteaucitron.services.bingads = {
|
|
|
|
+ 'key': 'bingads',
|
|
|
|
+ 'type': 'ads',
|
|
|
|
+ 'name': 'Bing Ads Universal Event Tracking',
|
|
|
|
+ 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
|
|
|
|
+ 'needConsent': true,
|
|
|
|
+ 'cookies': ['_uetmsclkid'],
|
|
|
|
+ 'js': function () {
|
|
|
|
+ 'use strict';
|
|
|
|
+ var u = tarteaucitron.user.bingadsTag || 'uetq';
|
|
|
|
+ window[u] = window[u] || [];
|
|
|
|
+
|
|
|
|
+ tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
|
|
|
|
+ var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
|
|
|
|
+
|
|
|
|
+ if ('bingadsStoreCookies' in tarteaucitron.user) {
|
|
|
|
+ bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ bingadsCreate.q = window[u];
|
|
|
|
+ window[u] = new UET(bingadsCreate);
|
|
|
|
+ window[u].push('pageload');
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+//Matterport
|
|
|
|
+/*
|
|
|
|
+SERVICE INIT
|
|
|
|
+ (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
|
|
|
|
+
|
|
|
|
+HTML TAG
|
|
|
|
+ <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
|
|
|
|
+
|
|
|
|
+DELETE IFRAME
|
|
|
|
+ <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>'
|
|
|
|
+ */
|
|
|
|
+tarteaucitron.services.matterport = {
|
|
|
|
+ "key": "matterport",
|
|
|
|
+ "type": "other",
|
|
|
|
+ "name": "Matterport",
|
|
|
|
+ "uri": "https://matterport.com/es/legal/privacy-policy/",
|
|
|
|
+ "needConsent": true,
|
|
|
|
+ "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
|
|
|
|
+ "js": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+ tarteaucitron.fallback(['matterport'], function (x) {
|
|
|
|
+ var matterport_id = x.getAttribute("matterportID"),
|
|
|
|
+ matterport_width = x.getAttribute("width"),
|
|
|
|
+ frame_width = 'width=',
|
|
|
|
+ matterport_height = x.getAttribute("height"),
|
|
|
|
+ frame_height = 'height=',
|
|
|
|
+ matterport_parameters = x.getAttribute("parameters"),
|
|
|
|
+ matterport_frame;
|
|
|
|
+
|
|
|
|
+ if (matterport_id === undefined) {
|
|
|
|
+ return "";
|
|
|
|
+ }
|
|
|
|
+ if (matterport_width !== undefined) {
|
|
|
|
+ frame_width += '"' + matterport_width + '" ';
|
|
|
|
+ } else {
|
|
|
|
+ frame_width += '"" ';
|
|
|
|
+ }
|
|
|
|
+ if (matterport_height !== undefined) {
|
|
|
|
+ frame_height += '"' + matterport_height + '" ';
|
|
|
|
+ } else {
|
|
|
|
+ frame_height += '"" ';
|
|
|
|
+ }
|
|
|
|
+ if (matterport_parameters === undefined) {
|
|
|
|
+ return "";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ 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>';
|
|
|
|
+ return matterport_frame;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ "fallback": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+ var id = 'matterport';
|
|
|
|
+ tarteaucitron.fallback(['matterport'], function (elem) {
|
|
|
|
+ elem.style.width = elem.getAttribute('width') + 'px';
|
|
|
|
+ elem.style.height = elem.getAttribute('height') + 'px';
|
|
|
|
+ return tarteaucitron.engage(id);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+// Adform
|
|
|
|
+tarteaucitron.services.adform = {
|
|
|
|
+ "key": "adform",
|
|
|
|
+ "type": "ads",
|
|
|
|
+ "name": "Adform",
|
|
|
|
+ "uri": "https://site.adform.com/privacy-center/overview/",
|
|
|
|
+ "needConsent": true,
|
|
|
|
+ "cookies": [],
|
|
|
|
+ "js": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+
|
|
|
|
+ if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ window._adftrack = {
|
|
|
|
+ pm: tarteaucitron.user.adformpm,
|
|
|
|
+ divider: encodeURIComponent('|'),
|
|
|
|
+ pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+// Active Campaign
|
|
|
|
+tarteaucitron.services.activecampaign = {
|
|
|
|
+ "key": "activecampaign",
|
|
|
|
+ "type": "ads",
|
|
|
|
+ "name": "Active Campaign",
|
|
|
|
+ "uri": "https://www.activecampaign.com/privacy-policy/",
|
|
|
|
+ "needConsent": true,
|
|
|
|
+ "cookies": [],
|
|
|
|
+ "js": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+ if (tarteaucitron.user.actid === undefined) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ window.trackcmp_email = '';
|
|
|
|
+
|
|
|
|
+ tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+// tawk.to
|
|
|
|
+tarteaucitron.services.tawkto = {
|
|
|
|
+ "key": "tawkto",
|
|
|
|
+ "type": "support",
|
|
|
|
+ "name": "Tawk.to chat",
|
|
|
|
+ "uri": "https://www.tawk.to/data-protection/",
|
|
|
|
+ "needConsent": true,
|
|
|
|
+ "cookies": [],
|
|
|
|
+ "js": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+ if (tarteaucitron.user.tawktoId === undefined) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ window.Tawk_API=window.Tawk_API||{};
|
|
|
|
+ window.Tawk_LoadStart=new Date();
|
|
|
|
+
|
|
|
|
+ tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+// getquanty
|
|
|
|
+tarteaucitron.services.getquanty = {
|
|
|
|
+ "key": "getquanty",
|
|
|
|
+ "type": "analytic",
|
|
|
|
+ "name": "GetQuanty",
|
|
|
|
+ "uri": "https://www.getquanty.com/mentions-legales/",
|
|
|
|
+ "needConsent": true,
|
|
|
|
+ "cookies": [],
|
|
|
|
+ "js": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+ if (tarteaucitron.user.getguanty === undefined) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ window.webleads_site_ids = window.webleads_site_ids || [];
|
|
|
|
+ window.webleads_site_ids.push(tarteaucitron.user.getguanty);
|
|
|
|
+
|
|
|
|
+ tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
|
|
|
|
+ tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
|
|
|
|
+ }
|
|
|
|
+};
|