January 11, 2022
User identification
Things to know before you start:
- To identify your user, you need to provide at least one unique user identification.
(userId| email | phoneNumber) - You should make JS API calls after identifying your user, so that you can associate events with a person in your Contact List.
- WARNING Minimum one unique user identificator (userId| email | phoneNumber) is required.
- IMPORTANT: Include this snippet on every page in your app, immediately before the closing tag to initialize JS API and identify your user.
<script type="text/javascript" src="//js.smartsender.io/js/v1/JS_SCRIPT_ID.js>
</script>
<script>
var contact = new_smartSenderContact('user@example.com');
</script>
Parameters | Description |
new_smartSenderContact(); 'required' | Call Web Push Notification One-click Subscription Prompt on any page or by user action. |
contact 'required' | Minimum one unique user identificator (userId| email | phoneNumber) is required to identify and match the user in Contact List. |