Solved

Ampli CLI pull problem (React Native SDK)

  • 20 October 2022
  • 1 reply
  • 194 views

Badge

Hello! Our app is a react-native project and we already get some analitycs by amplitude about year. Now I want to improve amplitude usage for our project and I would like to use Ampli CLI for our app. 
 If I try to execute

ampli pull

I get the next warning

WARNING You have yet to create a source in your account. Log into https://data.amplitude.com/ to create one.

But in our app we have one source 
React native SDK with name ReactNative. Connected.

Please tell me, is it possible to use ampli cli for react native project or maybe something wrong?

icon

Best answer by eddie.gaona 21 October 2022, 00:57

View original

1 reply

Userlevel 5
Badge +9

Hello @Gaka happy to help!

In order to use Ampli CLI to verify your instrumentation versus the tracking plan within Amplitude Data you will need to set up a source name along with the SDK that you are leveraging.

For example, in Amplitude Data head over to Sources on the left panel. Find “React Native” and click on it and then a pop-up window will appear. You will need to give it a custom name like the following:

 

You will then need to add the custom source name to the events that fall within this SDK as follows:

 

Once these steps have been completed you will be able to leverage `ampli pull`.

Reply