Amplitude

Step-by-step guide to send your event data from RudderStack to Amplitude

Amplitude is a comprehensive product analytics platform for web as well as mobile platforms. Over 12,000 companies use Amplitude to get useful marketing insights that drive product strategy as well as conversion and retention of their customers.

RudderStack supports sending events from the RudderStack SDKs to Amplitude through our data plane via the S2S (Server to Server) connection mode.

Getting started

Before configuring your source and destination on the RudderStack app, please check whether the platform you are working on is supported by Amplitude. Refer to the table below:

Connection Mode

Web

Mobile

Server

Device mode

-

-

-

Cloud mode

Supported

Supported

Supported

Once you have confirmed that the platform supports sending events to Amplitude, perform the steps below:

To enable sending data to Amplitude, you will need to add it as a destination to the source from which you are sending the event data.

Please follow our Adding a Source and Destination tutorial guide to add a source in RudderStack.

Once the destination is enabled, events from our servers will start flowing to Amplitude as shown in the following screenshot:

Configuration settings for Amplitude

RudderStack currently supports only cloud mode and not device mode for Amplitude. Hence, you will not be able to use native SDKs to send event data to RudderStack.

Page

The page call allows you to record information whenever a user sees a web page, along with the associated optional properties of that page. This method must be called at least once per page load.

A sample page call looks like the following:

rudderanalytics.page({
userId: "user_id",
category: "Category",
name: "Sample",
})

In the above sample, we capture information related to the page being viewed such as the category of the page (Category), as well as the name of the page (Sample) along with the unique user ID.

Screen

The screen method allows you to record whenever a user sees the mobile screen, along with any associated optional properties. This call is similar to the page call, but is exclusive to your mobile device.

A sample screen call looks like the following code snippet:

rudderanalytics.screen({
userId: "user_id",
category: "Category",
name: "Sample",
})

In the above snippet, we capture information related to the screen being viewed, such as the name and category of the screen.

Track

The track call allows you to capture any action that the user might perform, along with the properties that are associated with that action. Each action is considered to be an event.

A sample track call looks like the following:

rudderanalytics.track("Track me")

Identify

The identify call lets you associate a user to their actions and capture all the relevant traits about them. This information includes a unique userid as well as any optional information such as name, email address, etc.

A sample identify call looks like the following:

rudderanalytics.identify({
"userId": "userid",
"anonymousId": "d80b66d5-b33d-412d-866f-r4fft5841af",
"traits": {
"email": "name@surname.com",
"name": "John Doe",
"profession": "Student"
}
})

A sample dashboard after making the above identify, page, and track calls is as follows:

Event dashboard
User properties dashboard

FAQs

How do I get the Amplitude API Key?

You can find the Amplitude API key on the Amplitude Settings Page.

Contact Us

If you come across any issues while configuring Amplitude with RudderStack, please feel free to contact us or start a conversation on our Discord channel. We will be happy to help you.