Skip to content

Commit

Permalink
Retire Crisp de tarteaucitron
Browse files Browse the repository at this point in the history
En effet, Crisp ne génère aucun cookie et ce serait dommage de ne pas
avoir accès au support juste parce qu'on a cliqué sur "tout refuser"

De plus, Crisp n'utilise pas de cookie de tracking par défaut. Nous ne
sommes donc pas obligé de demander le consentement de l'utilisateur.
https://tarteaucitron.io/fr/service/crisp/

De plus on déplace l'icone de tarteaucitron en bas à gauche pour qu'elle
ne soit pas en conflit avec l'icone de Crisp
  • Loading branch information
etienneCharignon committed May 29, 2023
1 parent 68983f8 commit eaa2138
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions app/assets/javascripts/crisp.js.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
// Integration Crisp
<% if ENV['CRISP_WEBSITE_ID'].present? %>
tarteaucitron.user.crispID = "<%= ENV['CRISP_WEBSITE_ID'] %>";
(tarteaucitron.job = tarteaucitron.job || []).push('crisp');
window.$crisp=[];
window.CRISP_WEBSITE_ID="<%= ENV['CRISP_WEBSITE_ID'] %>";
(function(){
d=document;
s=d.createElement("script");
s.src="https://client.crisp.chat/l.js";
s.async=1;
d.getElementsByTagName("head")[0].appendChild(s);
})();
<% end %>
2 changes: 1 addition & 1 deletion app/assets/javascripts/tarteaucitron-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tarteaucitron.init({

"showIcon": true, /* Show cookie icon to manage cookies */
//"iconSrc": "", /* Optionnal: URL or base64 encoded image */
"iconPosition": "BottomRight", /* BottomRight, BottomLeft, TopRight and TopLeft */
"iconPosition": "BottomLeft", /* BottomRight, BottomLeft, TopRight and TopLeft */

"adblocker": false, /* Show a Warning if an adblocker is detected */

Expand Down

0 comments on commit eaa2138

Please sign in to comment.