Skip to content

Commit

Permalink
fix crisp typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Oct 19, 2023
1 parent a709ca2 commit c236bab
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lemarche/templates/includes/_tracker_tarteaucitron.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
(tarteaucitron.job = tarteaucitron.job || []).push('googletagmanager');

// Crisp (voir plus bas)
tarteaucitron.user.cripsWebsiteId = "{{ CRISP_ID }}";
tarteaucitron.user.cripsMore = function () {
tarteaucitron.user.crispWebsiteId = "{{ CRISP_ID }}";
tarteaucitron.user.crispMore = function () {
// Ajouter ici les $crisp.push()
};
(tarteaucitron.job = tarteaucitron.job || []).push('crips');
(tarteaucitron.job = tarteaucitron.job || []).push('crisp');

// Matomo
tarteaucitron.user.matomoId = {{ MATOMO_SITE_ID }};
Expand Down Expand Up @@ -72,25 +72,25 @@

<!-- Ajouter manuellement Crisp à tarteaucitron : https://github.com/AmauriC/tarteaucitron.js/pull/281 -->
<script type="text/javascript">
tarteaucitron.services.crips = {
"key": "crips",
tarteaucitron.services.crisp = {
"key": "crisp",
"type": "support",
"name": "Crips",
"name": "Crisp",
"uri": "https://crisp.chat/fr/privacy/",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.cripsWebsiteId === undefined) {
if (tarteaucitron.user.crispWebsiteId === undefined) {
return;
}
window.$crisp = [];

window.CRISP_WEBSITE_ID = tarteaucitron.user.cripsWebsiteId;
window.CRISP_WEBSITE_ID = tarteaucitron.user.crispWebsiteId;

tarteaucitron.addScript('https://client.crisp.chat/l.js');

// waiting for crips to be ready to check first party cookies
// waiting for crisp to be ready to check first party cookies
var interval = setInterval(function () {
if (typeof $crisp === 'undefined') return

Expand All @@ -104,13 +104,13 @@

// if cookie starts like a piwik one, register it
if (cookieName.indexOf('crisp-client') === 0) {
tarteaucitron.services.crips.cookies.push(cookieName);
tarteaucitron.services.crisp.cookies.push(cookieName);
}
}
}, 100)

if (typeof tarteaucitron.user.cripsMore === 'function') {
tarteaucitron.user.cripsMore();
if (typeof tarteaucitron.user.crispMore === 'function') {
tarteaucitron.user.crispMore();
}
}
};
Expand Down

0 comments on commit c236bab

Please sign in to comment.