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.wooxy.com/js/v2/JS_SCRIPT_ID.js" charset="UTF-8">
</script>
<script>
let contact = new _wooxyContact('{{identifier}}');
</script>
Parameters | Description |
new _wooxyContact(); '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. |