![]() logEvent ( "initialize_game", eventProperties, groups ) Track revenue ¶Īmplitude can track revenue generated by a user. put ( "key", "value" ) JSONObjectgroups = newJSONObject (). JSONObjecteventProperties = newJSONObject (). groupType is a string, and groupName can be either a string or an array of strings to indicate that a user is in multiple groups. Setting a group also sets the groupType:groupName as a user property, and overwrites any existing groupName value set for that user's groupType, and the corresponding user property value. Another example of a groupType could be 'sport' with groupName values like 'tennis' and 'baseball'. In the previous example, 'orgId' is the groupType and '10' and '15' are the values for groupName. When setting groups, define a groupType and groupName. You can query their organizations in the Event Segmentation Chart. Sue and Joe both perform a certain event. Joe is in 'orgId' '10', and Sue is in 'orgId' '15'. If at least one member of the group has performed the specific event, then the count includes the group.įor example, you want to group your users based on what organization they're in by using an 'orgId'. This feature is available in accounts with a Growth or Enterprise plan with the Accounts add-on.Īmplitude supports assigning users to groups and performing queries, such as Count by Distinct, on those groups. This SDK doesn't support batch mode, the batch API endpoint. You can customize batch behavior with setEventUploadPeriodSeconds. Events are flushed in batches in background. Every event logged by the logEvent method is queued in memory. To support high-performance environments, the SDK sends events in batches. For example, Amplitude.getInstance().useAppSetIdForDeviceId(true). Please check here for the required module and permission. The deviceId will be UUID+"R" by default.īool. For example, Amplitude.getInstance().useAdvertisingIdForDeviceId(true). Whether to use advertising id as device id. For example, Amplitude.getInstance().setOffline(true).īool. Weather the SDK will upload events to Amplitude servers. For example, Amplitude.getInstance().setUseDynamicConfig(true).īool. Find the best server url automatically based on users' geo location. For example, Amplitude.getInstance().setServerUrl().īool. The API endpoint URL that events are sent to. For example, Amplitude.getInstance().setServerZone(AmplitudeServerZone.US). The input parameter is in seconds.ĪmplitudeServerZone. For example, Amplitude.getInstance().setEventUploadPeriodSeconds(50). The buffer is flushed every eventUploadPeriodSeconds or reach 30 events threshold. Events wait in the buffer and are sent in a batch. For example, Amplitude.getInstance().setMinTimeBetweenSessionsMillis(100000). The amount of time for session timeout if disable foreground tracking. By default the SDK will track several user properties such as carrier, city, country, ip_address, language, platform, etc. The API key for your Amplitude project is required.Įnable COPPA (Children's Online Privacy Protection Act) restrictions on IDFA, IDFV, city, IP address and location tracking.ĭisable COPPA (Children's Online Privacy Protection Act) restrictions on IDFA, IDFV, city, IP address and location tracking. ![]() ![]() Initialization is necessary you can do instrumentation. > Player > iOS Tab, open the dropdown menu Other Settings, scroll to Configuration, and select either value needed for the Target SDK field. To change the settings for the build, select Unity > Edit > Project Settings. If Xcode doesn't let you use a simulator or device, it's because you must configure the Unity project to use either the Device SDK (real life devices) or the Simulator SDK (emulator). If you use google dependency resolver, update the dependency version for OkHttp in *Dependency.xml file. jar file, you can downgrade OkHttp library by replacing it with a version lower than 3.13. Android instructions ¶Ĭhange the version of OkHttp to be lower than 3.13. Read details here.Īmplitude doesn't restrict which OkHttp version to use. For API 19, 20 (Android KitKat) to work, downgrade the OkHttp version to be lower than 3.13. OkHttp v3.13 requires the minimum version to be Android 5.0, Android Lollipop (API 21). *Dependencies.xml Android: API compatibility ¶Īmplitude SDK depends on the OkHttp library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |