Code pour ajouter quelques services non présents dans la documentation de Tarteaucitron:
Zoominfo
tarteaucitron.services.zoominfo = {
"key": "zoominfo",
"type": "other",
"name": "Zoominfo",
"needConsent": true,
"cookies": [],
"readmoreLink": "https://www.zoominfo.com/legal/privacy-policy",
"uri": "https://www.zoominfo.com/",
"js": function () {
"use strict";
tarteaucitron.addScript('https://ws.zoominfo.com/pixel/YOURKEYHERE')
},
"fallback": function () {
"use strict";
// when use deny cookie
}
};Lancer le service
(tarteaucitron.job = tarteaucitron.job || []).push('zoominfo');Salesloft
tarteaucitron.services.salesloft = {
"key": "salesloft",
"type": "other",
"name": "Salesloft",
"needConsent": true,
"cookies": [],
"readmoreLink": "https://www.salesloft.com/legal/privacy-policies",
"uri": "https://salesloft.com/",
"js": function () {
"use strict";
tarteaucitron.addScript('https://scout-cdn.salesloft.com/sl.js', '', function () {
if (typeof slscout !== "undefined") {
slscout(["init", tarteaucitron.user.salesloftID]);
}
});
},
"fallback": function () {
"use strict";
// when use deny cookie
}
};Lancer le service
tarteaucitron.user.salesloftID = "YOURKEY";
(tarteaucitron.job = tarteaucitron.job || []).push('salesloft');Appolo.io
tarteaucitron.services.apolloio = {
"key": "apolloio",
"type": "other",
"name": "Apollo",
"needConsent": true,
"cookies": [],
"readmoreLink": "https://www.apollo.io/privacy-policy",
"uri": "https://apollo.io/",
"js": function () {
"use strict";
var n = Math.random().toString(36).substring(7);
tarteaucitron.addScript('https://assets.apollo.io/micro/website-tracker/tracker.iife.js?nocache=' + n, '', function () {
if (typeof window.trackingFunctions !== "undefined" && window.trackingFunctions.onLoad) {
window.trackingFunctions.onLoad({
appId: tarteaucitron.user.apolloioID
});
}
});
},
"fallback": function () {
"use strict";
// when use deny cookie
}
};Lancer le service
tarteaucitron.user.apolloioID = "YOURKEY";
(tarteaucitron.job = tarteaucitron.job || []).push('apolloio');Drift
tarteaucitron.services.drift = {
"key": "drift",
"type": "support",
"name": "Drift Chat",
"needConsent": true,
"cookies": ["driftt_aid"],
"readmoreLink": "https://www.drift.com/privacy-policy/",
"uri": "https://www.drift.com/",
"js": function () {
"use strict";
var t = window.driftt = window.drift = window.driftt || [];
if (!t.init) {
if (t.invoked) return;
t.invoked = true;
t.methods = ["identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on"];
t.factory = function(e) {
return function() {
var n = Array.prototype.slice.call(arguments);
n.unshift(e);
t.push(n);
return t;
};
};
t.methods.forEach(function(e) {
t[e] = t.factory(e);
});
}
drift.SNIPPET_VERSION = '0.3.1';
var e = 300000;
var n = Math.ceil(new Date() / e) * e;
tarteaucitron.addScript(
"https://js.driftt.com/include/" + n + "/" + tarteaucitron.user.driftID + ".js"
);
},
"fallback": function () {
"use strict";
// Code si refus
}
};Lancer le service
tarteaucitron.user.driftID = "YOURKEY";
(tarteaucitron.job = tarteaucitron.job || []).push('drift');Pardot Tracker
tarteaucitron.services.pardot = {
"key": "pardot",
"type": "analytic",
"name": "Pardot Tracker",
"needConsent": true,
"cookies": [],
"readmoreLink": "https://www.salesforce.com/company/privacy/",
"uri": "https://www.salesforce.com/",
"js": function () {
"use strict";
var base = (document.location.protocol === 'https:') ? 'https://YOURSUBDOMAIN1' : 'http://YOURSUBDOMAIN2';
tarteaucitron.addScript(base + '.YOURDOMAIN.com/pd.js');
},
"fallback": function () {
"use strict";
}
};Lancer le service
(tarteaucitron.job = tarteaucitron.job || []).push('pardot');