Cookie Sellsy
You only have a a Sellsy cookie + Google Analytics and you don't want to use Google Tag Manager to install it?
You only have a Sellsy cookie + Google Analytics and you don't want to use Google Tag Manager to install it?

1. Video Presentation

Gérer son chat conformément au RGPD

2. Sellsy cookie integration in custom mode

A - Sellsy chat representation

Le chat est présent dès le chargement de la page

B - Locate it on your website

Here is the code that loads the Sellsy chat and that you should have in your site Header.
1
<script type="application/javascript" src="https://www.sellsy.fr/?_f=snippet&hash=JUU0JUY4JThFJTgyLSU4QSVFQyVCRiVBQiVBRSUyMyVBNyVENmolQzMlMjUlRkIlOTglQUIlQzAlRjQlMTN4JUJBJUFDQiUwQSVFRnUlMDElQUElQUJhJTI3JTBCJUM5JThDJTJDJTI2byVCNSUxMDFJNiUwMiU4MiU5NiVFNiVFNiVBMTclQjAlOTclMDlPRCVENSVBNyUxOCVENiVCRiU2MCUzQw=="></script>
Copied!
It should look like this :
The chat is in the template header
We have to delete the script or deactivate it.

C - Trigger it with Axeptio

We'll transform the script and encapsulate it in a function that allows the script to launch (the launchSellsy function).
1
<script type="text/javascript">
2
function launchSellsy(){
3
var el = document.createElement('script');
4
el.setAttribute('src', 'https://www.sellsy.fr/?_f=snippet&hash=JUU0JUY4JThFJTgyLSU4QSVFQyVCRiVBQiVBRSUyMyVBNyVENmolQzMlMjUlRkIlOTglQUIlQzAlRjQlMTN4JUJBJUFDQiUwQSVFRnUlMDElQUElQUJhJTI3JTBCJUM5JThDJTJDJTI2byVCNSUxMDFJNiUwMiU4MiU5NiVFNiVFNiVBMTclQjAlOTclMDlPRCVENSVBNyUxOCVENiVCRiU2MCUzQw==');
5
document.head.append(el);
6
}
Copied!
Then we take back the function that allows script launches in the Axeptio back office, and we organize it so that if the user chooses Sellsy it launches the function that executes the Sellsy script.
1
void 0 === window._axcb && (window._axcb = []);
2
window._axcb.push(function(axeptio) {
3
axeptio.on("cookies:complete", function(choices) {
4
if(choices.Sellsy) {
5
launchSellsy();
6
}
7
});
8
});
Copied!
We'll then simply add the full script right after the SDK which will look like :
1
<script type="text/javascript">
2
//Le sdk qui permet de lancer le widget Axeptio et de sauvegarder les acceptations
3
window.axeptioSettings = {
4
  clientId: "5c11ff5ce95cd64112feab79",
5
};
6
 
7
(function(d, s) {
8
  var t = d.getElementsByTagName(s)[0], e = d.createElement(s);
9
  e.async = true; e.src = "//static.axept.io/sdk.js";
10
  t.parentNode.insertBefore(e, t);
11
})(document, "script");
12
13
// La fonction qui permet de lancer SellSy
14
function launchSellsy(){
15
var el = document.createElement('script');
16
el.setAttribute('src', 'https://www.sellsy.fr/?_f=snippet&hash=JUU0JUY4JThFJTgyLSU4QSVFQyVCRiVBQiVBRSUyMyVBNyVENmolQzMlMjUlRkIlOTglQUIlQzAlRjQlMTN4JUJBJUFDQiUwQSVFRnUlMDElQUElQUJhJTI3JTBCJUM5JThDJTJDJTI2byVCNSUxMDFJNiUwMiU4MiU5NiVFNiVFNiVBMTclQjAlOTclMDlPRCVENSVBNyUxOCVENiVCRiU2MCUzQw==');
17
document.head.append(el);
18
}
19
20
// La fonction qui relie Axeptio au lancement du cookie Sellsy
21
void 0 === window._axcb && (window._axcb = []);
22
window._axcb.push(function(axeptio) {
23
axeptio.on("cookies:complete", function(choices) {
24
if(choices.Sellsy) {
25
launchSellsy();
26
}
27
});
28
});
29
</script>
Copied!
Congrats ! the Sellsy chat now only appears after the user agreed to it
Last modified 8mo ago