1

Segment: The single hub to collect and route your customer data.

10925Points

7 years ago

If you like to track the activity of the users within your app, Segment is the tool you’re looking for.

Segment.com is an application that helps you gather all the information about the behavior of the users within your app, Have you ever used Google Analytics? (I hope that you are using it now, if you haven’t, it’s time to start), Segment works similar than G Analytics, you need to set up a code in your app and Segment will start getting your user’s data, but beyond saving page views, you can identify you users by one unique id, and track how they are using your app.

###The difference: a single hub to manage your customer data

Besides collecting data, Segment has a collection of apps for developers, startups and businesses, which can be integrated in order to start sending events and user behavior to the app that you set. This way you can start using any app with just one click.

Segment has a free version that you can use as a trial with the development apps.

###Setting up Segment

When you already have an account and created the first project, you need to start sending data to Segment. Then you will see the magic.

The main feature of Segment is that it has Analytics.js, which is the main library that you can implement, obviously, in Javascript, but if you want to use it in Mobile Applications or in server-side you have libraries for: Android, Android Wear, Clojure, Go, iOS, Java, .NET, Node, PHP, Pixel, Python, Ruby and Xamarin.

For Javascript there’s a main code that you need to add in the header of all pages that you want to track, then you have a write key that you need to replace to send the data to your Segment project:

<script type="text/javascript"> !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e="analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var" e="document.createElement(" script");e.type="text/javascript" ;e.async="!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var"" n="document.getElementsByTagName(" script")[0];n.parentnode.insertbefore(e,n)};analytics.snippet_version="3.0.1" ;"="" analytics.load("your_write_key");="" analytics.page()="" }}();="" <script="">

You can find the write key in the “Setup project” button.

That is for web applications. If you want to improve your implementation, you can identify and track the user’s behavior and you can do it by using Javascript or other languages in an easy way. Go to the official documentation and learn how to improve it!

The apps that you can connect to Segment are classified in the following categories: developer, project, startup, growth and business. The first one is free and so you can try, if you want to connect the other ones you have to pay certain amount per month, except for business plans that have a special feature, which is SQL, so you can manipulate all the data that Segment gets. If you want it, you need to contact Segment’s support area.

###Things to improve

I have some issues when I want to link more than one account in a single app, there’s no way to do this. Also, if you want to filter the events that you want to send between the apps that you have, you can’t do it in the dashboard, as I know, you can filter inside the code, but this is clearly not the best way to do it.

In some apps, you don’t know that you need to set up variables to start working and you don’t know it until you refresh the page and see that the app actually isn’t activated, to do so you need to go to Segment’s dashboard and click on the app to know how to activate it.

Let me know in the comments if you are using Segment and what type of project you are working on!

On Platzi we are using it and it’s amazing how easy is to try different applications and select the best for our startup.

Juan Pablo
Juan Pablo
unmalnick

10925Points

7 years ago

Todas sus entradas
Escribe tu comentario
+ 2
Order by
0

We are a group of students developing a system that should control the number of customers in the stores. We have a test model, so we’re looking for startup management services to write our business plan https://writemyessaysonline.com