On this page

Get data into Amplitude

Amplitude Analytics relies on data to generate charts, experiments, and other types of analyses. This data comes from your product, app, or website, or from a third-party product like Salesforce or Segment.

You may need to involve your developer or engineer for this step.

This article is a broad overview. For a more in-depth explanation of setting up a taxonomy, refer to the Data Taxonomy Playbook.

Send data to Amplitude

Getting data into Amplitude from your product happens at the project level. When you created your first Amplitude project, Amplitude generated an API key that routes your product data to the correct Amplitude project. Use this key to initialize the SDK in your product or website. To find the key in an existing project, refer to Manage organizations and projects.

Data from your product

The most popular way to get data into Amplitude from web products or websites is the Browser SDK. For the fastest setup, run npx @amplitude/wizard in your terminal. The Amplitude Setup Wizard CLI detects your framework, proposes tracking events, and instruments the SDK automatically with your approval.

After you have the API key from the previous section, add it to the Amplitude JavaScript snippet. Paste the snippet into all parts of your product that generate the data you want Amplitude to track. The snippet must appear at the top of every page you want to track with Amplitude, and it must include the amplitude.init() statements. Refer to the screenshot for an example snippet.

Depending on your knowledge of JavaScript, you may want to involve someone from your development or engineering team in this phase. Also refer to the available SDK resources.

After you instrument Amplitude successfully, your data becomes visible as soon as your product begins sending events.

Data from a third-party source

You can import data from a wide range of third-party data sources. To learn more, refer to Amplitude's SDK documentation.

APIs and resources

You can send data to Amplitude through SDKs, HTTP API v2, Batch API, Amplitude's integration with Segment, or Amplitude's integration with mParticle. The following lists include examples of APIs and resources. Your Success Manager is available to help answer questions.

APIs

  • Identify API: Use the Identify API to modify a user's properties without sending an event. You can modify Amplitude default user properties and custom user properties you've already defined.
  • Dashboard REST API: Use the Dashboard REST API to get any data that dashboard graphs display. The results come back as JSON.
  • Export API: Export all events data for an app within a specified date range. The results come back as a zipped archive of JSON files with one or more files per hour.
  • Attribution API: Associate users from various attribution campaigns in Amplitude.
  • HTTP API: Use the HTTP API to send data directly from your server to Amplitude's endpoint.
  • Behavioral Cohorts API: Use the Behavioral Cohorts API to get all cohorts for an app.

Resources

Was this helpful?