Skip to main content

Track Login

Here, “someUniqueId” is the unique ID with which you want to login the user
ImportantAfter tracking the login, all further attributes and events tracking should have the “identifiers” object defined inside the tracking code (with the “moe_user_id”) as above, until logout event is performed. Otherwise, that attribute or event tracking will not be associated with this logged-in user in your MoEngage dashboard.
For example, if we want to track the above logged-in user’s last name-

Track Logout

ImportantAfter performing the above Moengage logout event, do NOT send “identifiers” with any further tracking code. Because the user had logged-out and further attribute/event tracking must not be associated with this user.