Provides access to https://amplitude.com/ mobile analytics. Wraps Amplitude’s iOS and Android SDKs.
Note: Session tracking may not work correctly when running Experiences in the main Exponent app. It will work correctly if you create a standalone app.
Exponent.Amplitude.initialize(apiKey)
Initializes Amplitude with your Amplitude API key. Find your API key using these instructions.
Exponent.Amplitude.setUserId(userId)
Assign a user ID to the current user. If you don’t have a system for user IDs you don’t need to call this. See https://amplitude.zendesk.com/hc/en-us/articles/206404628-Step-2-Assign-User-IDs-and-Identify-your-Users.
Exponent.Amplitude.setUserProperties(userProperties)
Set properties for the current user. See https://amplitude.zendesk.com/hc/en-us/articles/207108327-Step-4-Set-User-Properties-and-Event-Properties.
Exponent.Amplitude.clearUserProperties()
Clear properties set by Exponent.Amplitude.setUserProperties()
.
Exponent.Amplitude.logEvent(eventName)
Log an event to Amplitude. https://amplitude.zendesk.com/hc/en-us/articles/206404698-Step-3-Track-Events-and-Understand-the-Actions-Users-Take has information about what kind of events to track.
Exponent.Amplitude.logEventWithProperties(eventName, properties)
Log an event to Amplitude with custom properties. https://amplitude.zendesk.com/hc/en-us/articles/206404698-Step-3-Track-Events-and-Understand-the-Actions-Users-Take has information about what kind of events to track.
Exponent.Amplitude.setGroup(groupType, groupNames)
Add the current user to a group. See https://github.com/amplitude/Amplitude-iOS#setting-groups and https://github.com/amplitude/Amplitude-Android#setting-groups.
© Copyright 2025, Exponent. Created using Gatsby.