From 707c1b960607f3d8aa61a647576a50250a61d4aa Mon Sep 17 00:00:00 2001 From: Simon <1218015+simondaigre@users.noreply.github.com> Date: Mon, 8 Aug 2022 12:29:54 +0200 Subject: [PATCH] Add snapchatMore initialization Required to add custom events. Website documentation should be updated @AmauriC --- tarteaucitron.services.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 93ff79d..e232ba4 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -81,6 +81,10 @@ tarteaucitron.services.snapchat = { window.snaptr('track', 'PAGE_VIEW'); tarteaucitron.addScript('https://sc-static.net/scevent.min.js'); + + if (typeof tarteaucitron.user.snapchatMore === 'function') { + tarteaucitron.user.snapchatMore(); + } } };