Tracking customers - optimove-tech/Optimove-SDK-Android GitHub Wiki
- Upon user account creation / login
- Newsletter signup
- Guest checkout
Once the user successfully creates an account, they become an recognized customer.
Use one of the following functions accordingly:
-
setUserIdmethod and pass theSDK IDwhen an "email address" is not available:
// Call to notify the SDK that the user has a known customer id (aka SDK ID)
Optimove.getInstance().setUserId("<YOUR_CUSTOMERS_SDK_ID>");-
registerUsermethod and pass theSDK IDwhen an "email address" is available:
// Call to notify the SDK that the user has a known customer id (aka SDK ID)
Optimove.getInstance().registerUser("<YOUR_CUSTOMERS_SDK_ID>", "<YOUR_CUSTOMERS_EMAIL_ADDRESS>");Important Note: We highly recommend apps to send the SDK the
SDK IDevery time the app starts. It increases the chances of successful tracking of already existing end users. The SDK blocks multiple calls with the sameSDK IDand/orsetUserId/registerUserevery time the app starts.
If you will be sending encrypted SDK ID, please follow the steps in Reporting encrypted CustomerIDs
To send emails to users who are not customers, call the setUserEmail method accordingly:
Optimove.getInstance().setUserEmail("<MY_EMAIL>");Important Note: The SDK blocks multiple calls with the same
setUserEmailevery time the app starts.