โพ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://_location_of_the_smartico_script_/s.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 the gamification widget
5. Validating setup
Custom language codes
Regional variation
Smartico custom code
Note
Serving smartico scripts & connectivity from a custom domain
Bypassing Regional IP Restrictions
Last updated
Was this helpful?