Get data into Amplitude

  • Updated

This article will help you:

  • Pull data into Amplitude from your app, or from a third-party source

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.

NOTE: You'll probably need to involve your developer or engineer for this step.

From your product

The most popular way to get data into Amplitude from web products or websites is the Browser SDK. Learn more about it in the Amplitude Developer Center.

Getting data into Amplitude from your product is done at the project level. Remember when you created your first Amplitude project? When you did that, Amplitude generated an API key that will ensure your product data finds its way to the correct Amplitude project. You'll need this key to initialize the SDK in your product or website; here's how to find it in an existing Amplitude project.

Once you've got that key, add it to the Amplitude Javascript snippet, then paste that snippet to all parts of your product that generate the data you want Amplitude to track. This must be placed at the top of every page you want to track via Amplitude, and it must include the amplitude.init() statements. An example snippet is shown in the screenshot below.

 

send data with browser sdk.png

Again, depending on your level of knowledge and / or comfort with Javascript, you may want to involve someone from your development or engineering team in this phase. And definitely take advantage of all the resources around SDKs that are available in the Amplitude Developer Center.

From a third-party source

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