◾Front-end integration
1. Installing the Smartico script
<script>
(function(d, r, b, h, s){h=d.getElementsByTagName('head')[0];s = d.createElement('script');s.onload=b;s.src=r;h.appendChild(s);})
(document, 'https://libs.smartico.ai/smartico.js', function() {
_smartico.init('_label_key', { brand_key: '_brand_key_' });
});
</script>2. Identifying the user
<script>
window._smartico_user_id = 'some_id';
window._smartico_language = 'fr';
</script>3. Preparation for Web-push notifications
4. Triggering gamification widget
5. Validating setup
Last updated
Was this helpful?