In MoEngage, users are categorized as registered, and anonymous users. Each user is identified with a unique user ID generated and associated with the users in the system with their mobile number and email address. A user who logs in to your app or website would have parameters such as Mobile Number, Email Address, or Custom Identifier (the ID generated by the app). For each user, MoEngage also generates an identifier, the MoEngage ID. You can search for the user using any of the parameters mentioned above. For more information on these user types, refer to Users in MoEngage.
We will achieve this use case by creating segments,
- To find registered users in the system.
- To find anonymous users in the system.
Expected result:
You will be able to see the users who logged in to your application and anonymous users in the system.
Registered users inyour system:
Anonymous users in your system:
Steps to find a user who logged in to the system
You can search using a mobile number, email address, or MoEngage ID from the search bar. In this example, we will use MoEngage ID.
- On the left navigation menu in the MoEngage dashboard, click Segments, and then click Search Users.
- In the search bar, search using Name, Email, Mobile Number, MoEngage ID, or ID.
- Enter one of the parameters in the search box and press Enter. This search presents a list of users matching your input with the parameters.
- Click the user you want to view, and the user profile of the respective user will be displayed.
info Information
Search by MoEngage ID is not supported for a user base below 10k.
- The same functionality is also present on Create Segments page, click Segments, and then click Create Segment. For more information on creating segments, refer here.
- With Admin and Managers access, you can also provide instructions for their team members on how to look up their users, as shown below:
Steps to find anonymous users
Anonymous users typically have only the MoEngage ID. You can, however, search for them using the advertising identifiers or web push tokens depending on the platform on which the user is available.
Perform the following steps to identify users on the respective platforms as mentioned below:
library_add_check |
Prerequisites Ensure you have Google Advertising ID (GAID) enabled during integration for users who are not logged in. |
You can fetch Android users who are not logged in to MoEngage using GAID.
- To fetch GAID, check your Android phone's Settings.
- You can also fetch GAID using the Apps available on the Google Play Store; for more information, refer to the Sample app.
Search a user with GAID
- On the left navigation menu in the MoEngage dashboard, click Segments, and then click Create segment.
- Click the Filter users by option, and then click the User property tab.
- Add the filter criteria with user attributes, Google Advertising ID (Android)
- Select the GAID from the dropdown Select Option.
- Click Show count.
- From the Query result, click on the user icon in Sample users to open the User Profile.
You can identify iOS users who are not logged in using IDFA (Identifiers For Advertisers). To use IDFA, your users should opt in for IDFA tracking in MoEngage.
info |
Note
|
Search a user with IDFA
- On the left navigation menu in the MoEngage dashboard, click Segments, and then click Create segment.
- Click the Filter users by option, and then click the User attributes tab.
- Add the filter criteria with user attributes, Advertising Identifiers(iOS and Windows)
- Select the IDFA number from the dropdown Select Option. Click Show count.
- From the Query result, click on the user icon in Sample users to open the User Profile.
Web push token for laptops, desktops, and Tablets
You can find users who subscribed to web push notifications on the MoEngage dashboard using the web push notifications token. Perform the following steps to obtain the token for laptops, desktops, and tablets:
Obtain a web push notifications token:
The user must have accepted the request to receive the web push notifications. If the notification request was denied previously, the user must do the following:
- Open the website.
- Click the Security Icon[] on the left side of the address bar.
- Select site settings > Notifications and change it from Block to Ask.
- Reload the page and accept to receive the Web Push notification.
View the user 's web push token:
- Install the MoEngage SDK extension for the Chrome browser using this link.
- Open your website.
- Click on the MoEngage extension.
- Copy the push token present in the Web Push tab. (It may take a few seconds to get the push token information. If unavailable, reload the website and click the extension after some time.)
Web push token for Mobile devices
- Perform the following steps to know the push token for mobile devices:
- Connect the phone to the laptop, and open the site in Chrome.
- Open this link:chrome://inspect/#devices on the laptop. You’ll see your device listed with the sites opened on your phone.
- Inspect the website being tested by right-clicking and selecting Inspect.
- Navigate to the applications tab from Inspect, select local storage > MOE data, and fetch the push token.
Searching user with Web Push Token
Perform the following steps to search for a user on the Segmentation page using the Web Push token:
- On the left navigation menu in the MoEngage dashboard, click Segments, and then click Create segment.
- Enter the following criteria: User Behavior, Has Executed Subscribed to WebPush in the last 3 days.
- From the time attribute list, select the time duration during which the user must have subscribed to the web push.
- Click + attribute and filter for MOE_WEB_PUSH_TOKEN (this is the event attribute).
Enter your web push token into the options field and click Show count.
To search for a user on the Segmentation page using the Web Push token, do the following:
- Navigate to Segment -> Create Segment on the MoEngage Dashboard.
- Select the Filter users by option.
- In the User behavior tab, select the following from the event drop-down list:
Has Executed Subscribed to WebPush. - From the time attribute drop-down list, select the time duration in which the user must have subscribed to the web push.
- Click Add attribute and filter for MOE_WEB_PUSH_TOKEN (this is the event attribute)
- Copy and paste your web push token into the filter box
-
Click Show count.
- In the Query result section, click on the user icon in sample users to open the User Profile.