In order to identify users with a known attribute such as an email, phone, username and etc., the SDK provides a method called “identify”. This method should be invoked after user login. During identify method call, the user’s session will be created in the SDK.

Method

public void identify(@NonNull String id, Context context, **boolean** addGeo)

Parameters

id	    - A string containing the user identifier
context	- The activity context.
addGeo	- Flag used to decide whether to append the geo parameter(latitude and longitude) in the Payloads or Not.

Example

Tracker.singleton().track(event, Tracker.EVENT_ID_ON_KEY, MainActivity.this, addGeo)