Browse Source

Add snapchatMore initialization

Required to add custom events.
Website documentation should be updated @AmauriC
Simon 2 years ago
parent
commit
707c1b9606
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tarteaucitron.services.js

+ 4 - 0
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();
+        }
     }
 };