Tracks revenue. This allows us to automatically display data relevant to
revenue on the Amplitude website, including average revenue per daily
active user (ARPDAU), 7, 30, and 90 day revenue, lifetime value (LTV)
estimates, and revenue by advertising campaign cohort and daily/weekly/monthly cohorts.
Tracks revenue. This allows us to automatically display data relevant to
revenue on the Amplitude website, including average revenue per daily
active user (ARPDAU), 7, 30, and 90 day revenue, lifetime value (LTV)
estimates, and revenue by advertising campaign cohort and daily/weekly/monthly cohorts.
Regenerates a new random deviceId for current user.
Note: this is not recommended unless you know what you are doing.
This can be used in conjunction with setUserId(null) to anonymize users after they log out.
With a null userId and a completely new deviceId, the current user would appear as a brand new user in dashboard.
Adds a user to a group or groups. You need to specify a groupType and groupName(s).
For example you can group people by their organization. In this case,
groupType is "orgId", and groupName would be the actual ID(s).
groupName can be a string or an array of strings to indicate a user in multiple groups.
You can also call setGroup multiple times with different groupTypes to track
multiple types of groups (up to 5 per app).
Note: This will also set groupType: groupName as a user property.
Set Amplitude Server Zone, switch to zone related configuration, including dynamic configuration and server url.
To send data to Amplitude's EU servers, you need to configure the serverZone to EU like client.setServerZone("EU");
serverZone could be EU or US. Recommend to keep updateServerUrl to be true for alignment.