Setting up Segment

The main step to start using Segment with Palabra is to create a Segment account. If you already have one you can move to the next step. Otherwise follow along!

All the instructions below happen in Segment, not in Palabra.

  1. Go to Segment and click 'Sign up'.

  2. After you complete the onboarding you will need to create a Source. Sources are apps, servers o services where you will gather your user data. The first one that we recommend is your frontend or mobile app.

  3. So go ahead and create a new source by clicking 'Add Source'. Choose your source. For a webapp that should be Javascript, or Androis/iOS for a mobile app.

  4. Next, give your source a name and copy the snippet that Segment gives you.

  5. Go back to your app and paste it. For webapps you should paste is in the head of your index.html (any position will work). For mobile apps you should follow the instructions provided by Segment.

  6. Once you are done, follow Segment's instructions to test your connection. This step is very important! You can always do it later but we recommend you try to do it now. (You don't need to deploy your app to test it, you can do it from your local environment).

That's it! Now you are ready to start sending some user data to Segment.

Pro tip: one of Segment's coolest features is being able to remove most of the integrations that you are importing today in the head of you index.html on your webapp.

With Segment you can remove all that code and just call Segment's and the add those same integrations in Segment.

Last updated