Add snapchatMore initialization

Required to add custom events.
Website documentation should be updated @AmauriC
This commit is contained in:
Simon 2022-08-08 12:29:54 +02:00 committed by GitHub
parent db8924d207
commit 707c1b9606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ tarteaucitron.services.snapchat = {
window.snaptr('track', 'PAGE_VIEW'); window.snaptr('track', 'PAGE_VIEW');
tarteaucitron.addScript('https://sc-static.net/scevent.min.js'); tarteaucitron.addScript('https://sc-static.net/scevent.min.js');
if (typeof tarteaucitron.user.snapchatMore === 'function') {
tarteaucitron.user.snapchatMore();
}
} }
}; };