Amplitude destination
Getting started
- Go to Data & Integrations > Integrations and select the Amplitude entry in the Directory tab.
- (Optional) Select the data sources that you want to connect to your outbound integration. You can always connect data sources later. We'll only show you data sources that work with your integration.
-
Configure your integration.
- API Key: Amplitude project API key. You can find this key in the "General" tab of your Amplitude project.
- Secret Key: Amplitude project secret key. You can find this key in the "General" tab of your Amplitude project.
- Endpoint Region: The region to send your data.
- Click Enable Destination.
Actions
When you're done setting things up, you can go to the Actions tab to see how we map incoming data to your integration.
You may need to add actions for this integration
While we often have default triggers for actions, we don't always add those actions as defaults. You may need to add actions to make sure that you're sending all the data that you want to send to your integration. See our actions page for help setting up actions.
Log Event
Default Trigger:type = "track"Send an event to Amplitude.
- user_idstringDefault:
$.userIdA unique identifier for a user. If your call references user ID you haven't added to Amplitude yet, then the user tied to that ID will not be marked "new" until their first event. Required unless device ID is present. - device_idstringDefault:
coalesce($.context.device.id, $.anonymousId)A device identifier, like the Identifier for Vendor (IDFV) on iOS. Required unless the request includes auser_id. - event_typestringDefault:
$.eventA unique identifier for your event. - session_idstring(datetime)Default:
$.integrations.Actions Amplitude.session_idThe start time of the session, necessary if you want to associate events with a particular system. To use automatic Amplitude session tracking in browsers, enable Analytics 2.0 on your connected source. - timestring(datetime)Default:
$.timestampThe timestamp of the event. If time is not sent with the event, it will be set to the request upload time. - event_propertiesobjectDefault:
$.propertiesAn object of key-value pairs that represent additional data to be sent along with the event. You can store property values in an array, but note that Amplitude only supports one-dimensional arrays. Date values are transformed into string values. object depth may not exceed 40 layers. - user_propertiesobjectDefault:
$.traitsAn object of key-value pairs that represent additional data tied to the user. You can store property values in an array, but note that Amplitude only supports one-dimensional arrays. Date values are transformed into string values. object depth may not exceed 40 layers. - groupsobjectGroups of users for the event as an event-level group. You can only track up to 5 groups. Note: This Amplitude feature is only available to Enterprise customers who have purchased the Accounts add-on.
- app_versionstringDefault:
$.context.app.versionThe current version of your application. - platformstringDefault:
$.context.device.typePlatform of the device. - os_namestringDefault:
$.context.os.nameThe name of the mobile operating system or browser that the user is using. - os_versionstringDefault:
$.context.os.versionThe version of the mobile operating system or browser the user is using. - device_brandstringDefault:
$.context.device.brandThe device brand that the user is using. - device_manufacturerstringDefault:
$.context.device.manufacturerThe device manufacturer that the user is using. - device_modelstringDefault:
$.context.device.modelThe device model that the user is using. - carrierstringDefault:
$.context.network.carrierThe carrier that the user is using. - countrystringDefault:
$.context.location.countryThe current country of the user. - regionstringDefault:
$.context.location.regionThe current region of the user. - citystringDefault:
$.context.location.cityThe current city of the user. - dmastringThe current Designated Market Area of the user.
- languagestringDefault:
$.context.localeThe language set by the user. - pricenumberDefault:
$.properties.priceThe price of the item purchased. Required for revenue data if the revenue field is not sent. You can use negative values to indicate refunds. - quantityintegerDefault:
$.properties.quantityThe quantity of the item purchased. Defaults to 1 if not specified. - revenuenumberDefault:
$.properties.revenueRevenue = price quantity. If you send all 3 fields of price, quantity, and revenue, then (price quantity) will be used as the revenue value. You can use negative values to indicate refunds. Note: You will need to explicitly set this if you are using the Amplitude in cloud-mode. - productIdstringDefault:
$.properties.productIdAn identifier for the item purchased. You must send a price and quantity or revenue with this field. - revenueTypestringDefault:
$.properties.revenueTypeThe type of revenue for the item purchased. You must send a price and quantity or revenue with this field. - location_latnumberDefault:
$.context.location.latitudeThe current Latitude of the user. - location_lngnumberDefault:
$.context.location.longitudeThe current Longitude of the user. - ipstringDefault:
$.context.ipThe IP address of the user. Use "$remote" to use the IP address on the upload request. Amplitude will use the IP address to reverse lookup a user's location (city, country, region, and DMA). Amplitude has the ability to drop the location and IP address from events once it reaches our servers. You can submit a request to Amplitude's platform specialist team here to configure this for you. - idfastringDefault:
coalesce($.context.device.advertisingId, $.context.device.idfa)Identifier for Advertiser. _(iOS)_ - idfvstringDefault:
$.context.device.idIdentifier for Vendor. _(iOS)_ - adidstringDefault:
coalesce($.context.device.advertisingId, $.context.device.idfa)Google Play Services advertising ID. _(Android)_ - android_idstringAndroid ID (not the advertising ID). _(Android)_
- event_idintegerAn incrementing counter to distinguish events with the same user ID and timestamp from each other. Amplitude recommends you send an event ID, increasing over time, especially if you expect events to occur simultanenously.
- insert_idstringAmplitude will deduplicate subsequent events sent with this ID we have already seen before within the past 7 days. Amplitude recommends generating a UUID or using some combination of device ID, user ID, event type, event ID, and time.
- librarystringDefault:
$.context.library.nameThe name of the library that generated the event. - Default:
$.properties.productsThe list of products purchased, where each object in the array represents an individual product. - use_batch_endpointbooleanDefault:
falseIf true, events are sent to Amplitude'sbatchendpoint rather than theirhttpapievents endpoint. Enabling this setting may help reduce 429s – or throttling errors – from Amplitude. More information about Amplitude's throttling is available in their docs. - userAgentstringDefault:
$.context.userAgentThe user agent of the device sending the event. - userAgentParsingbooleanDefault:
trueEnabling this setting will set the Device manufacturer, Device Model and OS Name properties based on the user agent string provided in the userAgent field - UTM Tracking Properties
- referrerstringDefault:
$.context.page.referrerThe referrer of the web request. Sent to Amplitude as both last touch “referrer” and first touch “initial_referrer” - min_id_lengthintegerAmplitude has a default minimum id length of 5 characters for
user_idanddevice_idfields. This field allows the minimum to be overridden to allow shorter id lengths.
Identify User
Default Trigger:type = "identify"Set the user ID for a particular device ID or update user properties without sending an event to Amplitude.
- user_idstringDefault:
$.userIdA unique identifier for a user. If your call references user ID you haven't added to Amplitude yet, then the user tied to that ID will not be marked "new" until their first event. Required unless device ID is present. - device_idstringDefault:
coalesce($.context.device.id, $.anonymousId)A device identifier, like the Identifier for Vendor (IDFV) on iOS. Required unless the request includes auser_id. - user_propertiesobjectDefault:
$.traitsAdditional data tied to the user in Amplitude. Each distinct value appears as a user segment in Amplitude. object depth cannot not exceed 40 layers. Date values are transformed to string strings. - groupsobjectGroups of users for the event as an event-level group. You can only track up to 5 groups. Note: This Amplitude feature is only available to Enterprise customers who have purchased the Accounts add-on.
- app_versionstringDefault:
$.context.app.versionVersion of the app the user is on. - platformstringDefault:
$.context.device.typeThe platform of the user's device. - os_namestringDefault:
$.context.os.nameThe mobile operating system or browser of the user's device. - os_versionstringDefault:
$.context.os.versionThe version of the mobile operating system or browser of the user's device. - device_brandstringDefault:
$.context.device.brandThe brand of user's the device. - device_manufacturerstringDefault:
$.context.device.manufacturerThe manufacturer of the user's device. - device_modelstringDefault:
$.context.device.modelThe model of the user's device. - carrierstringDefault:
$.context.network.carrierThe user's mobile carrier. - countrystringDefault:
$.context.location.countryThe country in which the user is located. - regionstringDefault:
$.context.location.regionThe geographical region in which the user is located. - citystringDefault:
$.context.location.cityThe city in which the user is located. - dmastringThe Designated Market Area in which the user is located.
- languagestringDefault:
$.context.localeLanguage the user has set on their device or browser. - payingbooleanWhether the user is paying or not.
- start_versionstringThe version of the app the user was first on.
- insert_idstringAmplitude will deduplicate subsequent events sent with this ID we have already seen before within the past 7 days. Amplitude recommends generating a UUID or using some combination of device ID, user ID, event type, event ID, and time.
- userAgentstringDefault:
$.context.userAgentThe user agent of the device sending the event. - userAgentParsingbooleanDefault:
trueEnabling this setting will set the Device manufacturer, Device Model and OS Name properties based on the user agent string provided in the userAgent field - UTM Tracking Properties
- referrerstringDefault:
$.context.page.referrerThe referrer of a web request. Sent to Amplitude as both last touch “referrer” and first touch “initial_referrer” - min_id_lengthintegerAmplitude has a default minimum id length of 5 characters for
user_idanddevice_id`` fields. This field allows the minimum to be overridden to allow shorter id lengths. - librarystringDefault:
$.context.library.nameThe name of the library that generated the event.
Map User
Default Trigger:type = "alias"Merge two users together that would otherwise have different User IDs tracked in Amplitude.
- user_idstringDefault:
$.previousIdThe User ID to be associated. - global_user_idstringDefault:
$.userIdThe Global User ID to associate with the User ID. - min_id_lengthintegerAmplitude has a default minimum id length of 5 characters for
user_idanddevice_idfields. This field allows the minimum to be overridden to allow shorter id lengths.
Group Identify User
Default Trigger:type = "group"Set or update properties of particular groups. Note that these updates will only affect events going forward.
- user_idstringDefault:
$.userIdA unique identifier for a user. If your call references user ID you haven't added to Amplitude yet, then the user tied to that ID will not be marked "new" until their first event. Required unless device ID is present. - device_idstringDefault:
coalesce($.context.device.id, $.anonymousId)A device identifier, like the Identifier for Vendor (IDFV) on iOS. Required unless the request includes auser_id. - insert_idstringAmplitude will deduplicate subsequent events sent with this ID we have already seen before within the past 7 days. Amplitude recommends generating a UUID or using some combination of device ID, user ID, event type, event ID, and time.
- timestringDefault:
$.timestampThe timestamp of the event. If time is not sent with the event, it will be set to the request upload time. - group_propertiesobjectDefault:
$.traitsAdditional data tied to the group in Amplitude. - group_typestringThe type of the group
- group_valuestringThe value of the group
- min_id_lengthintegerAmplitude has a default minimum id length of 5 characters for
user_idanddevice_idfields. This field allows the minimum to be overridden to allow shorter id lengths.
Log Purchase
Default Trigger:type = "track"Send an event to Amplitude.
- user_idstringDefault:
$.userIdA unique identifier for a user. If your call references user ID you haven't added to Amplitude yet, then the user tied to that ID will not be marked "new" until their first event. Required unless device ID is present. - device_idstringDefault:
coalesce($.context.device.id, $.anonymousId)A device identifier, like the Identifier for Vendor (IDFV) on iOS. Required unless the request includes auser_id. - event_typestringDefault:
$.eventA unique identifier for your event. - session_idstring(datetime)Default:
$.integrations.Actions Amplitude.session_idThe start time of the session, necessary if you want to associate events with a particular system. To use automatic Amplitude session tracking in browsers, enable Analytics 2.0 on your connected source. - timestring(datetime)Default:
$.timestampThe timestamp of the event. If time is not sent with the event, it will be set to the request upload time. - event_propertiesobjectDefault:
$.propertiesAn object of key-value pairs that represent additional data to be sent along with the event. You can store property values in an array, but note that Amplitude only supports one-dimensional arrays. Date values are transformed into string values. object depth may not exceed 40 layers. - user_propertiesobjectDefault:
$.traitsAn object of key-value pairs that represent additional data tied to the user. You can store property values in an array, but note that Amplitude only supports one-dimensional arrays. Date values are transformed into string values. object depth may not exceed 40 layers. - groupsobjectGroups of users for the event as an event-level group. You can only track up to 5 groups. Note: This Amplitude feature is only available to Enterprise customers who have purchased the Accounts add-on.
- app_versionstringDefault:
$.context.app.versionThe current version of your application. - platformstringDefault:
$.context.device.typePlatform of the device. - os_namestringDefault:
$.context.os.nameThe name of the mobile operating system or browser that the user is using. - os_versionstringDefault:
$.context.os.versionThe version of the mobile operating system or browser the user is using. - device_brandstringDefault:
$.context.device.brandThe device brand that the user is using. - device_manufacturerstringDefault:
$.context.device.manufacturerThe device manufacturer that the user is using. - device_modelstringDefault:
$.context.device.modelThe device model that the user is using. - carrierstringDefault:
$.context.network.carrierThe carrier that the user is using. - countrystringDefault:
$.context.location.countryThe current country of the user. - regionstringDefault:
$.context.location.regionThe current region of the user. - citystringDefault:
$.context.location.cityThe current city of the user. - dmastringThe current Designated Market Area of the user.
- languagestringDefault:
$.context.localeThe language set by the user. - pricenumberDefault:
$.properties.priceThe price of the item purchased. Required for revenue data if the revenue field is not sent. You can use negative values to indicate refunds. - quantityintegerDefault:
$.properties.quantityThe quantity of the item purchased. Defaults to 1 if not specified. - revenuenumberDefault:
$.properties.revenueRevenue = price quantity. If you send all 3 fields of price, quantity, and revenue, then (price quantity) will be used as the revenue value. You can use negative values to indicate refunds. Note: You will need to explicitly set this if you are using the Amplitude in cloud-mode. - productIdstringDefault:
$.properties.productIdAn identifier for the item purchased. You must send a price and quantity or revenue with this field. - revenueTypestringDefault:
$.properties.revenueTypeThe type of revenue for the item purchased. You must send a price and quantity or revenue with this field. - location_latnumberDefault:
$.context.location.latitudeThe current Latitude of the user. - location_lngnumberDefault:
$.context.location.longitudeThe current Longitude of the user. - ipstringDefault:
$.context.ipThe IP address of the user. Use "$remote" to use the IP address on the upload request. Amplitude will use the IP address to reverse lookup a user's location (city, country, region, and DMA). Amplitude has the ability to drop the location and IP address from events once it reaches our servers. You can submit a request to Amplitude's platform specialist team here to configure this for you. - idfastringDefault:
coalesce($.context.device.advertisingId, $.context.device.idfa)Identifier for Advertiser. _(iOS)_ - idfvstringDefault:
$.context.device.idIdentifier for Vendor. _(iOS)_ - adidstringDefault:
coalesce($.context.device.advertisingId, $.context.device.idfa)Google Play Services advertising ID. _(Android)_ - android_idstringAndroid ID (not the advertising ID). _(Android)_
- event_idintegerAn incrementing counter to distinguish events with the same user ID and timestamp from each other. Amplitude recommends you send an event ID, increasing over time, especially if you expect events to occur simultanenously.
- insert_idstringAmplitude will deduplicate subsequent events sent with this ID we have already seen before within the past 7 days. Amplitude recommends generating a UUID or using some combination of device ID, user ID, event type, event ID, and time.
- librarystringDefault:
$.context.library.nameThe name of the library that generated the event. - Default:
$.properties.productsThe list of products purchased, where each object in the array represents an individual product. - trackRevenuePerProductbooleanDefault:
falseWhen enabled, track revenue with each product within the event. When disabled, track total revenue once for the event. - use_batch_endpointbooleanDefault:
falseIf true, events are sent to Amplitude'sbatchendpoint rather than theirhttpapievents endpoint. Enabling this setting may help reduce 429s – or throttling errors – from Amplitude. More information about Amplitude's throttling is available in their docs. - userAgentstringDefault:
$.context.userAgentThe user agent of the device sending the event. - userAgentParsingbooleanDefault:
trueEnabling this setting will set the Device manufacturer, Device Model and OS Name properties based on the user agent string provided in the userAgent field - UTM Tracking Properties
- referrerstringDefault:
$.context.page.referrerThe referrer of the web request. Sent to Amplitude as both last touch “referrer” and first touch “initial_referrer” - min_id_lengthintegerAmplitude has a default minimum id length of 5 characters for
user_idanddevice_idfields. This field allows the minimum to be overridden to allow shorter id lengths.
Log Event V2
Default Trigger:type = "track"Send an event to Amplitude
- user_idstringDefault:
$.userIdA unique identifier for a user. If your call references user ID you haven't added to Amplitude yet, then the user tied to that ID will not be marked "new" until their first event. Required unless device ID is present. - device_idstringDefault:
coalesce($.context.device.id, $.anonymousId)A device identifier, like the Identifier for Vendor (IDFV) on iOS. Required unless the request includes auser_id. - event_typestringDefault:
$.eventA unique identifier for your event. - session_idstring(datetime)Default:
$.integrations.Actions Amplitude.session_idThe start time of the session, necessary if you want to associate events with a particular system. To use automatic Amplitude session tracking in browsers, enable Analytics 2.0 on your connected source. - timestring(datetime)Default:
$.timestampThe timestamp of the event. If time is not sent with the event, it will be set to the request upload time. - event_propertiesobjectDefault:
$.propertiesAn object of key-value pairs that represent additional data to be sent along with the event. You can store property values in an array, but note that Amplitude only supports one-dimensional arrays. Date values are transformed into string values. object depth may not exceed 40 layers. - user_propertiesobjectDefault:
$.traitsAn object of key-value pairs that represent additional data tied to the user. You can store property values in an array, but note that Amplitude only supports one-dimensional arrays. Date values are transformed into string values. object depth may not exceed 40 layers. - groupsobjectGroups of users for the event as an event-level group. You can only track up to 5 groups. Note: This Amplitude feature is only available to Enterprise customers who have purchased the Accounts add-on.
- app_versionstringDefault:
$.context.app.versionThe current version of your application. - platformstringDefault:
$.context.device.typePlatform of the device. - os_namestringDefault:
$.context.os.nameThe name of the mobile operating system or browser that the user is using. - os_versionstringDefault:
$.context.os.versionThe version of the mobile operating system or browser the user is using. - device_brandstringDefault:
$.context.device.brandThe device brand that the user is using. - device_manufacturerstringDefault:
$.context.device.manufacturerThe device manufacturer that the user is using. - device_modelstringDefault:
$.context.device.modelThe device model that the user is using. - carrierstringDefault:
$.context.network.carrierThe carrier that the user is using. - countrystringDefault:
$.context.location.countryThe current country of the user. - regionstringDefault:
$.context.location.regionThe current region of the user. - citystringDefault:
$.context.location.cityThe current city of the user. - dmastringThe current Designated Market Area of the user.
- languagestringDefault:
$.context.localeThe language set by the user. - pricenumberDefault:
$.properties.priceThe price of the item purchased. Required for revenue data if the revenue field is not sent. You can use negative values to indicate refunds. - quantityintegerDefault:
$.properties.quantityThe quantity of the item purchased. Defaults to 1 if not specified. - revenuenumberDefault:
$.properties.revenueRevenue = price quantity. If you send all 3 fields of price, quantity, and revenue, then (price quantity) will be used as the revenue value. You can use negative values to indicate refunds. Note: You will need to explicitly set this if you are using the Amplitude in cloud-mode. - productIdstringDefault:
$.properties.productIdAn identifier for the item purchased. You must send a price and quantity or revenue with this field. - revenueTypestringDefault:
$.properties.revenueTypeThe type of revenue for the item purchased. You must send a price and quantity or revenue with this field. - location_latnumberDefault:
$.context.location.latitudeThe current Latitude of the user. - location_lngnumberDefault:
$.context.location.longitudeThe current Longitude of the user. - ipstringDefault:
$.context.ipThe IP address of the user. Use "$remote" to use the IP address on the upload request. Amplitude will use the IP address to reverse lookup a user's location (city, country, region, and DMA). Amplitude has the ability to drop the location and IP address from events once it reaches our servers. You can submit a request to Amplitude's platform specialist team here to configure this for you. - idfastringDefault:
coalesce($.context.device.advertisingId, $.context.device.idfa)Identifier for Advertiser. _(iOS)_ - idfvstringDefault:
$.context.device.idIdentifier for Vendor. _(iOS)_ - adidstringDefault:
coalesce($.context.device.advertisingId, $.context.device.idfa)Google Play Services advertising ID. _(Android)_ - android_idstringAndroid ID (not the advertising ID). _(Android)_
- event_idintegerAn incrementing counter to distinguish events with the same user ID and timestamp from each other. Amplitude recommends you send an event ID, increasing over time, especially if you expect events to occur simultanenously.
- insert_idstringAmplitude will deduplicate subsequent events sent with this ID we have already seen before within the past 7 days. Amplitude recommends generating a UUID or using some combination of device ID, user ID, event type, event ID, and time.
- librarystringDefault:
$.context.library.nameThe name of the library that generated the event. - Default:
$.properties.productsThe list of products purchased, where each object in the array represents an individual product. - Set these properties once or with every event depending on the key. Relevant to AJS2.
- Set these properties once or with every event depending on the key. Relevant to AJS2.
- addobjectIncrement a user property by a number with add. If the user property doesn't have a value set yet, it's initialized to 0.
- use_batch_endpointbooleanDefault:
falseIf true, events are sent to Amplitude'sbatchendpoint rather than theirhttpapievents endpoint. Enabling this setting may help reduce 429s – or throttling errors – from Amplitude. More information about Amplitude's throttling is available in their docs. - userAgentstringDefault:
$.context.userAgentThe user agent of the device sending the event. - userAgentParsingbooleanDefault:
trueEnabling this setting will set the Device manufacturer, Device Model and OS Name properties based on the user agent string provided in the userAgent field. - min_id_lengthintegerAmplitude has a default minimum id length of 5 characters for
user_idanddevice_idfields. This field allows the minimum to be overridden to allow shorter id lengths.