Clears all properties that are tracked on the user level.
Note: This operation is irreversible!!
Disable COPPA (Children's Online Privacy Protection Act) restrictions on IDFA, IDFV, city, IP address and location tracking.
Enable COPPA (Children's Online Privacy Protection Act) restrictions on IDFA, IDFV, city, IP address and location tracking.
This can be used by any customer that does not want to collect IDFA, IDFV, city, IP address and location tracking.
Fetches the deviceId, a unique identifier shared between multiple users using the same app on the same device.
Fetches the sessionId, a timestamp used for log session event.
Set or update properties of particular groups
Send an identify call containing user property operations to Amplitude servers.
Tracks an event. Events are saved locally. Uploads are batched to occur every 30 events or every 30 seconds (whichever comes first), as well as on app close.
The name of the event you wish to track.
Log revenue data.
Note: price is a required field to log revenue events. If quantity is not specified then defaults to 1.
Regenerate the DeviceId
Sets a custom device id. Note: only do this if you know what you are doing!
The device id.
Adds a user to a group or groups. You need to specify a groupType and groupName(s).
Sets the minimum cutoff time in millisseconds for sessions to be considered distinct. The default time is 5 minutes.
Enables tracking opt out.
If the user wants to opt out of all tracking, use this method to enable opt out for them. Once opt out is enabled, no events will be saved locally or sent to the server.
Calling this method again with enabled set to false will turn tracking back on for the user.
Customize the destination for server url.
Dynamically adjust server URL
If your app has its own login system that you want to track users with, you can set the userId.
Adds properties that are tracked on the user level. Note: Property keys must be [String] objects and values must be serializable.
Whether to automatically log start and end session events corresponding to the start and end of a user's session.
Upload all unsent events.
Generated using TypeDoc