Send event data to Amplitude
The configuration process for this destination mirrors Segment's setup. We've automatically modified the documentation from third-party sources to show you how to set up this destination with PostHog.
Amplitude is an event tracking and segmentation platform for your web and mobile apps. By analyzing the actions your users perform, you can gain a better understanding to drive retention, engagement, and conversion.
Installation
- Before you start, go to your Amplitude workspace. Click Settings in the top right and then click Organization Settings to navigate to your Projects in the menu. Select your Project. Copy the Amplitude API Key and Secret Key for the project.
- From the PostHog web app, click Data pipelines, then click Destinations.
- Find the Destinations Actions item in the left navigation, and click it.
- Click the "Amplitude" item to select it and click Configure.
- Choose which of your sources to connect the destination to. (You can connect more sources to the destination later.)
Once you have a mapping, you can follow the steps in the Destinations Actions documentation on Customizing mappings.
Configuration
Option | Description |
---|---|
API Key Type: string Required: True | Amplitude project API key. You can find this key in the "General" tab of your Amplitude project. |
Secret Key Type: string Required: True | Amplitude project secret key. You can find this key in the "General" tab of your Amplitude project. |
Endpoint Region Type: choice Required: False | The region to send your data. |
Debug Mode Type: boolean Required: False | Will log configuration and request details |
Using our REST API you can create this destination like so:
# Create a new destinationcurl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \--data '{"type": "destination","name": "Amplitude","inputs": {"apiKey": {"value": ""},"secretKey": {"value": ""}},"enabled": true,"template_id": "segment-actions-amplitude"}'
FAQ
Is the source code for this destination available?
Yes. The source code is available on GitHub.
Who maintains this?
This is maintained by Segment. If you have issues with it not functioning as intended, please let us know!
What if I have feedback on this destination?
We love feature requests and feedback. Please tell us what you think.
What if my question isn't answered above?
We love answering questions. Ask us anything via our community forum.
Parts of this page are sourced from segmentio/segment-docs under the Creative Commons Attribution 4.0 International License. The content may have been modified according to this code.