Amplitude

What Is Amplitude?

Amplitude is a product analytics platform that helps businesses understand user behavior across digital products. It provides insights and advanced analytics to track user interactions, measure user engagement, and optimize product experiences. Amplitude's features include event tracking, user segmentation, cohort analysis, and A/B testing. It enables data-driven decision-making by offering powerful visualizations and integrations with other tools. Businesses use Amplitude to enhance customer retention, improve user acquisition, and drive growth through data-informed strategies.


Product Type: Analytics
Integration Type: Starter Kit
Event Source Type: Web, Mobile Browser, and Mobile App
Event Scope: Full-Funnel Events


Capabilities

  • Sends server-side event data to Amplitude, eliminating the need for a client-side Amplitude tag.
  • Reduces client-side load, helping improve site speed and performance.
  • Supports full-funnel events including page, product, cart, and order lifecycle actions.
  • Enriches events with user, device, campaign, and geolocation properties.
  • Supports batching of events for delivery.

Considerations

  • If you are using this integration for the EU, contact your MetaRouter support team. They will assist you in adjusting the integration to serve the EU endpoint.
  • The API URL defaults to https://api2.amplitude.com and must be changed to https://api.eu.amplitude.com for EU data residency.
  • Additional identifiers such as geolocation fields (location_lat, location_lng, country, region, city, dma) and mobile advertising IDs (idfa, idfv, adid, android_id) can be added as Global or Event Specific mappings to improve user match rates when available.
  • The identify event is sent to Amplitude's identify endpoint using a GET request. The following GET constraints apply to that event:
    • In our testing, requests above ~20,000 characters in the URL began to fail. While this isn't a formally documented limit, it may be a practical constraint to consider when using this integration.
    • All values must be URL-encoded and arrays pipe-delimited.
    • One request per event; batching not supported.
    • Complex lists (e.g., products) must be pipe-delimited.

Starter Kit Setup Guide

1. Gather Credentials

  • Refer to Amplitude's guide on API Authentication to obtain your API Key.

2. Add an Amplitude Integration

  • From the integration library, add an Amplitude integration. Then, fill out the Connection Parameters:
Connection ParameterDescription
API_KEYAPI key from your Amplitude account.
API_URLDefault API URL set to https://api2.amplitude.com. Change to https://api.eu.amplitude.com for EU residency.

3. Configure Event Mapping

  • MetaRouter provides all of the event mappings that Amplitude integrations typically require. You may add custom events, parameters, or mappings in accordance with Amplitude's API documentation.

4. Deploy to Pipeline

  • In the Pipelines tab, add your Amplitude integration.
  • Select the correct integration revision.
  • Click Add Integration to finalize deployment.

Event Mappings

Global

Global mappings will be applied to all events. If your parameter names do not match the Expected Inputs provided, you will need to overwrite the Inputs provided with your own.

Output KeyDescriptionExpected Input
partner_id RequiredString: The partner ID associated with the event.Enrichment – 'metarouter'

Event Specific

Identify

Output KeyDescriptionExpected Input
api_key RequiredString: Amplitude API key.$$API_KEY$$
identification RequiredObject: User identification object containing various properties.Expression – builds identification object from user, device, and campaign data

Page

Output KeyDescriptionExpected Input
event_type RequiredString: A unique identifier for the event.Enrichment – 'Loaded a Page'
user_id RequiredString: A readable ID specified by you.userId
device_id RequiredString: A device-specific identifier.anonymousId
insert_idString: A unique identifier for the event.messageId
event_properties.categoryObject: A dictionary of key-value pairs representing properties sent along with the event.properties.category
event_properties.nameObject: A dictionary of key-value pairs representing properties sent along with the event.properties.name
user_properties.user_idObject: A dictionary of key-value pairs representing data tied to the user.userId
user_properties.device_idObject: A dictionary of key-value pairs representing data tied to the user.anonymousId
app_versionString: The current version of your application.context.app.version
os_nameString: The name of the mobile operating system or browser that the user is using.context.os.name
os_versionString: The version of the mobile operating system or browser the user is using.context.os.version
device_manufacturerString: The device manufacturer that the user is using.context.device.manufacturer
device_modelString: The device model that the user is using.context.device.model
carrierString: The carrier that the user is using.context.network.carrier
ipString: The IP address of the user.context.ip
user_agentString: The user agent string of the browser.context.userAgent
user_properties.utm_sourceObject: UTM source parameter for tracking.context.campaign.source
user_properties.utm_mediumObject: UTM medium parameter for tracking.context.campaign.medium
user_properties.utm_campaignObject: UTM campaign parameter for tracking.context.campaign.name
user_properties.utm_termObject: UTM term parameter for tracking.context.campaign.term
user_properties.utm_contentObject: UTM content parameter for tracking.context.campaign.content
user_properties.referrerObject: Referrer URL of the page.context.page.referrer
platformString: Derived platform (iOS, Android, or Web).Expression – derived from context.device.type
user_properties.referring_domainObject: Domain parsed from the referrer URL.Expression – parsed from context.page.referrer
user_properties.gclidObject: Google click ID from the page URL.Expression – from context.page.url
user_properties.dclidObject: Display click ID from the page URL.Expression – from context.page.url
user_properties.fbclidObject: Facebook click ID from the page URL.Expression – from context.page.url

Products Searched

Output KeyDescriptionExpected Input
event_type RequiredString: A unique identifier for the event.Enrichment – 'Search Completed'
user_id RequiredString: A readable ID specified by you.userId
device_id RequiredString: A device-specific identifier.anonymousId
insert_idString: A unique identifier for the event.messageId
event_properties.keywordsObject: A dictionary of key-value pairs representing properties sent along with the event.properties.query
user_properties.user_idObject: A dictionary of key-value pairs representing data tied to the user.userId
user_properties.device_idObject: A dictionary of key-value pairs representing data tied to the user.anonymousId
app_versionString: The current version of your application.context.app.version
os_nameString: The name of the mobile operating system or browser that the user is using.context.os.name
os_versionString: The version of the mobile operating system or browser the user is using.context.os.version
device_manufacturerString: The device manufacturer that the user is using.context.device.manufacturer
device_modelString: The device model that the user is using.context.device.model
carrierString: The carrier that the user is using.context.network.carrier
ipString: The IP address of the user.context.ip
user_agentString: The user agent string of the browser.context.userAgent
user_properties.utm_sourceObject: UTM source parameter for tracking.context.campaign.source
user_properties.utm_mediumObject: UTM medium parameter for tracking.context.campaign.medium
user_properties.utm_campaignObject: UTM campaign parameter for tracking.context.campaign.name
user_properties.utm_termObject: UTM term parameter for tracking.context.campaign.term
user_properties.utm_contentObject: UTM content parameter for tracking.context.campaign.content
user_properties.referrerObject: Referrer URL of the page.context.page.referrer
platformString: Derived platform (iOS, Android, or Web).Expression – derived from context.device.type
user_properties.referring_domainObject: Domain parsed from the referrer URL.Expression – parsed from context.page.referrer
user_properties.gclidObject: Google click ID from the page URL.Expression – from context.page.url
user_properties.dclidObject: Display click ID from the page URL.Expression – from context.page.url
user_properties.fbclidObject: Facebook click ID from the page URL.Expression – from context.page.url

Product List Viewed

Output KeyDescriptionExpected Input
event_type RequiredString: A unique identifier for the event.Enrichment – 'product_list_viewed'
user_id RequiredString: A readable ID specified by you.userId
device_id RequiredString: A device-specific identifier.anonymousId
insert_idString: A unique identifier for the event.messageId
event_properties.list_categoryObject: A dictionary of key-value pairs representing properties sent along with the event.properties.category
event_properties.list_idObject: A dictionary of key-value pairs representing properties sent along with the event.properties.list_id
user_properties.user_idObject: A dictionary of key-value pairs representing data tied to the user.userId
user_properties.device_idObject: A dictionary of key-value pairs representing data tied to the user.anonymousId
app_versionString: The current version of your application.context.app.version
os_nameString: The name of the mobile operating system or browser that the user is using.context.os.name
os_versionString: The version of the mobile operating system or browser the user is using.context.os.version
device_manufacturerString: The device manufacturer that the user is using.context.device.manufacturer
device_modelString: The device model that the user is using.context.device.model
carrierString: The carrier that the user is using.context.network.carrier
ipString: The IP address of the user.context.ip
user_properties.utm_sourceObject: UTM source parameter for tracking.context.campaign.source
user_properties.utm_mediumObject: UTM medium parameter for tracking.context.campaign.medium
user_properties.utm_campaignObject: UTM campaign parameter for tracking.context.campaign.name
user_properties.utm_termObject: UTM term parameter for tracking.context.campaign.term
user_properties.utm_contentObject: UTM content parameter for tracking.context.campaign.content
user_properties.referrerObject: Referrer URL of the page.context.page.referrer
platformString: Derived platform (iOS, Android, or Web).Expression – derived from context.device.type
user_properties.referring_domainObject: Domain parsed from the referrer URL.Expression – parsed from context.page.referrer
user_properties.gclidObject: Google click ID from the page URL.Expression – from context.page.url
user_properties.dclidObject: Display click ID from the page URL.Expression – from context.page.url
user_properties.fbclidObject: Facebook click ID from the page URL.Expression – from context.page.url

Product Viewed

Output KeyDescriptionExpected Input
event_type RequiredString: A unique identifier for the event.Enrichment – 'product_viewed'
user_id RequiredString: A readable ID specified by you.userId
device_id RequiredString: A device-specific identifier.anonymousId
insert_idString: A unique identifier for the event.messageId
event_properties.product_nameObject: A dictionary of key-value pairs representing properties sent along with the event.properties.name
event_properties.product_skuObject: A dictionary of key-value pairs representing properties sent along with the event.properties.sku
event_properties.product_idObject: A dictionary of key-value pairs representing properties sent along with the event.properties.product_id
event_properties.product_categoryObject: A dictionary of key-value pairs representing properties sent along with the event.properties.category
event_properties.product_priceObject: A dictionary of key-value pairs representing properties sent along with the event.properties.price
user_properties.user_idObject: A dictionary of key-value pairs representing data tied to the user.userId
user_properties.device_idObject: A dictionary of key-value pairs representing data tied to the user.anonymousId
app_versionString: The current version of your application.context.app.version
os_nameString: The name of the mobile operating system or browser that the user is using.context.os.name
os_versionString: The version of the mobile operating system or browser the user is using.context.os.version
device_manufacturerString: The device manufacturer that the user is using.context.device.manufacturer
device_modelString: The device model that the user is using.context.device.model
carrierString: The carrier that the user is using.context.network.carrier
ipString: The IP address of the user.context.ip
user_properties.utm_sourceObject: UTM source parameter for tracking.context.campaign.source
user_properties.utm_mediumObject: UTM medium parameter for tracking.context.campaign.medium
user_properties.utm_campaignObject: UTM campaign parameter for tracking.context.campaign.name
user_properties.utm_termObject: UTM term parameter for tracking.context.campaign.term
user_properties.utm_contentObject: UTM content parameter for tracking.context.campaign.content
user_properties.referrerObject: Referrer URL of the page.context.page.referrer
platformString: Derived platform (iOS, Android, or Web).Expression – derived from context.device.type
user_properties.referring_domainObject: Domain parsed from the referrer URL.Expression – parsed from context.page.referrer
user_properties.gclidObject: Google click ID from the page URL.Expression – from context.page.url
user_properties.dclidObject: Display click ID from the page URL.Expression – from context.page.url
user_properties.fbclidObject: Facebook click ID from the page URL.Expression – from context.page.url

Product Added

Output KeyDescriptionExpected Input
event_type RequiredString: A unique identifier for the event.Enrichment – 'product_added'
user_id RequiredString: A readable ID specified by you.userId
device_id RequiredString: A device-specific identifier.anonymousId
insert_idString: A unique identifier for the event.messageId
event_properties.product_nameObject: A dictionary of key-value pairs representing properties sent along with the event.properties.name
event_properties.product_skuObject: A dictionary of key-value pairs representing properties sent along with the event.properties.sku
event_properties.product_idObject: A dictionary of key-value pairs representing properties sent along with the event.properties.product_id
event_properties.product_categoryObject: A dictionary of key-value pairs representing properties sent along with the event.properties.category
event_properties.product_priceObject: A dictionary of key-value pairs representing properties sent along with the event.properties.price
event_properties.product_quantityObject: A dictionary of key-value pairs representing properties sent along with the event.properties.quantity
user_properties.user_idObject: A dictionary of key-value pairs representing data tied to the user.userId
user_properties.device_idObject: A dictionary of key-value pairs representing data tied to the user.anonymousId
app_versionString: The current version of your application.context.app.version
os_nameString: The name of the mobile operating system or browser that the user is using.context.os.name
os_versionString: The version of the mobile operating system or browser the user is using.context.os.version
device_manufacturerString: The device manufacturer that the user is using.context.device.manufacturer
device_modelString: The device model that the user is using.context.device.model
carrierString: The carrier that the user is using.context.network.carrier
ipString: The IP address of the user.context.ip
user_properties.utm_sourceObject: UTM source parameter for tracking.context.campaign.source
user_properties.utm_mediumObject: UTM medium parameter for tracking.context.campaign.medium
user_properties.utm_campaignObject: UTM campaign parameter for tracking.context.campaign.name
user_properties.utm_termObject: UTM term parameter for tracking.context.campaign.term
user_properties.utm_contentObject: UTM content parameter for tracking.context.campaign.content
user_properties.referrerObject: Referrer URL of the page.context.page.referrer
platformString: Derived platform (iOS, Android, or Web).Expression – derived from context.device.type
user_properties.referring_domainObject: Domain parsed from the referrer URL.Expression – parsed from context.page.referrer
user_properties.gclidObject: Google click ID from the page URL.Expression – from context.page.url
user_properties.dclidObject: Display click ID from the page URL.Expression – from context.page.url
user_properties.fbclidObject: Facebook click ID from the page URL.Expression – from context.page.url

Cart Viewed

Output KeyDescriptionExpected Input
event_type RequiredString: A unique identifier for the event.Enrichment – 'cart_viewed'
user_id RequiredString: A readable ID specified by you.userId
device_id RequiredString: A device-specific identifier.anonymousId
insert_idString: A unique identifier for the event.messageId
event_properties.cart_idObject: A dictionary of key-value pairs representing properties sent along with the event.properties.cart_id
event_properties.total_cart_sizeObject: The total number of items in the cart.Expression – counts properties.products
event_properties.total_cart_valueObject: The total value of items in the cart.Expression – sums price × quantity across properties.products
user_properties.user_idObject: A dictionary of key-value pairs representing data tied to the user.userId
user_properties.device_idObject: A dictionary of key-value pairs representing data tied to the user.anonymousId
app_versionString: The current version of your application.context.app.version
os_nameString: The name of the mobile operating system or browser that the user is using.context.os.name
os_versionString: The version of the mobile operating system or browser the user is using.context.os.version
device_manufacturerString: The device manufacturer that the user is using.context.device.manufacturer
device_modelString: The device model that the user is using.context.device.model
carrierString: The carrier that the user is using.context.network.carrier
ipString: The IP address of the user.context.ip
user_properties.utm_sourceObject: UTM source parameter for tracking.context.campaign.source
user_properties.utm_mediumObject: UTM medium parameter for tracking.context.campaign.medium
user_properties.utm_campaignObject: UTM campaign parameter for tracking.context.campaign.name
user_properties.utm_termObject: UTM term parameter for tracking.context.campaign.term
user_properties.utm_contentObject: UTM content parameter for tracking.context.campaign.content
user_properties.referrerObject: Referrer URL of the page.context.page.referrer
platformString: Derived platform (iOS, Android, or Web).Expression – derived from context.device.type
user_properties.referring_domainObject: Domain parsed from the referrer URL.Expression – parsed from context.page.referrer
user_properties.gclidObject: Google click ID from the page URL.Expression – from context.page.url
user_properties.dclidObject: Display click ID from the page URL.Expression – from context.page.url
user_properties.fbclidObject: Facebook click ID from the page URL.Expression – from context.page.url

Order Completed

Output KeyDescriptionExpected Input
event_type RequiredString: A unique identifier for the event.Enrichment – 'order_completed'
user_id RequiredString: A readable ID specified by you.userId
device_id RequiredString: A device-specific identifier.anonymousId
insert_idString: A unique identifier for the event.messageId
user_properties.user_idObject: A dictionary of key-value pairs representing data tied to the user.userId
user_properties.device_idObject: A dictionary of key-value pairs representing data tied to the user.anonymousId
app_versionString: The current version of your application.context.app.version
os_nameString: The name of the mobile operating system or browser that the user is using.context.os.name
os_versionString: The version of the mobile operating system or browser the user is using.context.os.version
device_manufacturerString: The device manufacturer that the user is using.context.device.manufacturer
device_modelString: The device model that the user is using.context.device.model
carrierString: The carrier that the user is using.context.network.carrier
ipString: The IP address of the user.context.ip
user_agentString: The user agent string of the browser.context.userAgent
event_properties.cart_idObject: A dictionary of key-value pairs representing properties sent along with the event.properties.cart_id
event_properties.total_cart_sizeObject: The total number of items in the cart.Expression – counts properties.products
event_properties.total_cart_valueObject: The total value of items in the cart.Expression – sums price × quantity across properties.products
event_properties.promo_code_appliedObject: The promo code applied to the order.properties.coupon
event_properties.order_totalObject: The total value of the order.properties.total
event_properties.total_discountsObject: The total discounts applied to the order.properties.discount
event_properties.order_idObject: A dictionary of key-value pairs representing properties sent along with the event.properties.order_id
event_properties.total_shippingObject: The total shipping cost of the order.properties.shipping
event_properties.total_taxObject: The total tax applied to the order.properties.tax
event_properties.$revenueFloat: Order revenue for Amplitude revenue tracking.Expression – from properties.revenue
user_properties.utm_sourceObject: UTM source parameter for tracking.context.campaign.source
user_properties.utm_mediumObject: UTM medium parameter for tracking.context.campaign.medium
user_properties.utm_campaignObject: UTM campaign parameter for tracking.context.campaign.name
user_properties.utm_termObject: UTM term parameter for tracking.context.campaign.term
user_properties.utm_contentObject: UTM content parameter for tracking.context.campaign.content
user_properties.referrerObject: Referrer URL of the page.context.page.referrer
platformString: Derived platform (iOS, Android, or Web).Expression – derived from context.device.type
user_properties.referring_domainObject: Domain parsed from the referrer URL.Expression – parsed from context.page.referrer
user_properties.gclidObject: Google click ID from the page URL.Expression – from context.page.url
user_properties.dclidObject: Display click ID from the page URL.Expression – from context.page.url
user_properties.fbclidObject: Facebook click ID from the page URL.Expression – from context.page.url

Default

Output KeyDescriptionExpected Input
event_typeString: A unique identifier for the event.event
user_idString: A readable ID specified by you.userId
device_idString: A device-specific identifier.anonymousId
insert_idString: A unique identifier for the event.messageId
event_propertiesObject: The full properties object sent along with the event.properties
user_properties.user_idObject: A dictionary of key-value pairs representing data tied to the user.userId
user_properties.device_idObject: A dictionary of key-value pairs representing data tied to the user.anonymousId
app_versionString: The current version of your application.context.app.version
os_nameString: The name of the mobile operating system or browser that the user is using.context.os.name
os_versionString: The version of the mobile operating system or browser the user is using.context.os.version
device_manufacturerString: The device manufacturer that the user is using.context.device.manufacturer
device_modelString: The device model that the user is using.context.device.model
carrierString: The carrier that the user is using.context.network.carrier
ipString: The IP address of the user.context.ip
user_agentString: The user agent string of the browser.context.userAgent
user_properties.utm_sourceObject: UTM source parameter for tracking.context.campaign.source
user_properties.utm_mediumObject: UTM medium parameter for tracking.context.campaign.medium
user_properties.utm_campaignObject: UTM campaign parameter for tracking.context.campaign.name
user_properties.utm_termObject: UTM term parameter for tracking.context.campaign.term
user_properties.utm_contentObject: UTM content parameter for tracking.context.campaign.content
user_properties.referrerObject: Referrer URL of the page.context.page.referrer
platformString: Derived platform (iOS, Android, or Web).Expression – derived from context.device.type
user_properties.referring_domainObject: Domain parsed from the referrer URL.Expression – parsed from context.page.referrer
user_properties.gclidObject: Google click ID from the page URL.Expression – from context.page.url
user_properties.dclidObject: Display click ID from the page URL.Expression – from context.page.url
user_properties.fbclidObject: Facebook click ID from the page URL.Expression – from context.page.url

Required & Recommended Identifiers

These identifiers must be mapped to Amplitude in order for successful user matching to occur. Without these IDs, any events sent to Amplitude will be rejected. For your convenience, required and recommended IDs are mapped as Global parameters to ensure they are added to every event.

AttributeExampleSync Injector Required?
user_id Requireduser_123456No
device_id Requiredabc123xyzNo
insert_id Recommendedd290f1ee-6c54-4b01-90e6-d701748f0851No
app_version Recommended1.0.0No
platform RecommendediOSNo
os_name RecommendediOSNo
os_version Recommended13.3.1No
carrier RecommendedAT&TNo
device_model RecommendediPhone 11No
device_manufacturer RecommendedAppleNo
ip Recommended192.168.0.1No
user_agent RecommendedMozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15No

Integration Validation

  • Coordinate with your Amplitude representative to confirm that events are being received and processed correctly on their backend.

Additional Amplitude Documentation