so let's talk about segment so either you're using segment already for quite some time or you just um started out so you just created an account and so you were sitting in front of these empty tool and you're asking yourself okay how can I basically get some data in there or you maybe are in a phase that you are considering segment because you heard some things about them and you think about maybe it's a good solution the ones who already introduced them first of all congratulations you definitely selected a very solid tool for the ones
who considering it definitely worth a consideration and so I'm working with segment for quite some time cannot even recount the number of years but really quite some time and I already started out when they brought out their first product which was an open source JavaScript library and so this JavaScript was basically a big help for me at that point of time because this was already a time when we started out to send similar data to different kind of platforms so on the one hand to analytics platforms on the other hand to um marketing platforms and
so in that day so because like Google tag manager was not around there we just implemented plenty of scripts on a website and of course like load was a problem but the major problem was like you define each event I don't know 10 times and this is not really fun and so um segments of that and this is what segment still does [Music] what we want to do now is like we want to have a look into what makes segments special what are the different parts of the product for which kind of use cases you
can use this different part of the product we start with a high level and so let's look into segment um so what is segment I mean the big problem always like to explain segment to other people so at least like this was also like a problem that I had let's maybe list a little bit out what it definitely is so one thing I already said is like it's a centralized way to collect data so I usually call segment a data collection layer and I don't think that segment itself would call themselves a data collection layer
but for me it's like this so it's like so segment is really like this the central part somewhere okay so segment sits here uh let's make it green so it's obvious it's segment awesome so segment sets here and then you have different kind of places where some data can come from and so let's define some so it could be from your website obvious one there's where we all started um it could be from your back end um or it could be from your CRM because I mean your CRM has also activities where things are happening
with your customers that can come from your customer service tools so there are plenty of places um where some event data can happen and so segment can just sit in the middle and basically receive this kind of data but wherever you send the data you send it in a way that segment understands and the good thing is like once you understand how to do this you can basically implement it for all the different kind of places and and also later we come into this so that they also have different kind of sdks that makes it
a lot easier but in the end it's like so you have a standard Set uh how you send data into segment and you can apply it in whatever place you have where you send data where you collect event data and then just send it into a segment then what segment does is like it then takes this kind of data and it does different things with it so most of the data is passed on quickly to a different place so it's basically reading like a proxy so this could be then that like ad platforms for example
uh send all the data to Google ads you can send all the data to Facebook to whatever so plenty of advertisement platforms are supported and so it's quite nice I mean you collect something on the website but you might also collect something on the back end where for example you um have a finished or like a a subscription has been created successfully and so in that case you can also send this into segment and then segment can check which kind of advertisement platform is capable of receiving this back-end event because like back-end event always requires
that the advertisement platform has some kind of API that you can send the data to because it doesn't happen in the front end and so then it will send this to there and so you don't really have to take care of sending this yourself to this advertisement platform so you can just send it into segment and segment pass it on and then the other use case analytics platforms and another thing that I use a lot you could put everything that you get you basically put into a database so um segment is the easiest way to
get Raw event data into a database so if you already have some kind of database so let's say you have a cloud Warehouse database like I don't know bigquery snowflake redshift or just a postgres so you can take all the data that's collected here you can just pipe it into this kind of database and then you can build some reporting directly on this database and you have full control because like you get the event data how it happens so you don't get this aggregated or changed or filtered or transformed stuff that you get when you
for example send the data to Google analytics so this is what segment does at the core so it's it's really like it's this kind of let's say so I call it data collection layer because like um so I can send data from everywhere and then segment passing it on to everywhere so this is like for me in most of the setups it's this essential part because um I always want to have a central part where I send my event data to so I don't want to send it to 10 different places because this is basically
the introduction for Insanity so I want to have one place where I send it to and from there I can decide where I want to send it to different kind of places so then segment has some other features as well one thing they have and it looks a little bit let's say like a just a small extension or so but it's a pretty powerful feature they have and so they have something which they call functions and so the functions functions can sit on both ends here what is a function a function is basically the possibility
for you to um on the one hand integrate data that doesn't have let's say a standard integration that segment has built for you so I for example use it a lot in this case so CRM data doesn't come naturally into segments so crms are capable of sending web hooks so webhook is basically like someone for example creates a new deal and then the CRM system is basically sending out a request to an endpoint that you have defined hey actually someone created a deal and they sent basically their data format to this kind of endpoint and
so of course segment doesn't understand this kind of data format that the CRM is sending so you need something that translates the data from a CRM into something that segment understands and so this is where functions come into place and so you can write or have someone from the development team write a function that basically receives this kind of data and then transfers it into a proper segment event so you can even do plan multiple events so sometimes for example for some activities that we receive from a CRM system we for example trigger an event
and also identify this kind of user already so we can do this in the function as well so functions give you a lot of power to receive data from different kind of places and enhance transform and map them to get into and then once they are segment they are just behave like typical segment things so this is super great but sometimes you have use cases where um maybe segment doesn't have something for that and so here for example like the the second type of functions basically like the destination kind of function so it might be
that you have some kind of system that you use maybe use something internally um and you also want to receive the segment data and so then you can write this kind of function that basically is sitting on top of segment received like seeing all the events coming in and then picking the events and sending them off to a different place or maybe filtering out so this is for example something interesting as well maybe you don't want to send all the data to specific kind of AD platform you just want to send specific kind of data
to an advertisement platform this is something you can also do with functions because like you can take the data filter it out pass it on definitely of course it requires a development skills you need someone to do this but it's not super hard for someone who can do JavaScript it's pretty easy to to figure out okay how how do you set this up uh in segment so these are the functions so what else does segment have so segment has something and so this is quite interesting because when you look up there they call themselves the
leading customer data platform and so this is quite interesting because like um customer data platform I think is the most bloated term out there I mean of course what segment does and this is why they call themselves like this yeah you collect a lot of customers you collect customer data from here from here from here from here and you pass it all here so segment has all the customer data and so there are people out there who call segment more customer data infrastructure which I think is a much better term um for that because like
segment really provides the infrastructure that you get all the data because in the let's say the old sense of customer data platform you usually have these kind of tools here that do something with the data also in this kind of platform so a full-blown customer data platform like I don't know Salesforce marketing Cloud so they have all the all the functions integrated so if you want to run an email sequence you can do everything in this kind of tool so in segment you can just pass on specific kind of data to a email tool and
then run the email service there so what what segment does is like and this is like the product which why they refer themselves as CDP and this product is called personas and so what personas does is like it helps you with different kind of things also like on the on the let's say the very very foundational level of customer data so on the one hand it helps you to to stitch identities and customer data has a lot of to do with stitching identities because someone does something on your website with an email X someone signs
up to your platform potentially maybe with a different email and has a specific user ID in your CRM system you maybe have both entries and you need a way to merge them and so so I you can believe me if you start out with customer data identity stitching is at some point definitely a topic that you will cover and so segment has things to help you there so they have different kind of functions different kind of ways how you can Define how you want to merge how you want to merge users what are the leading
identifiers that you want to use and you can set up different kind of rule sets so whole maybe in which case you want to use which kind of identifier what they do is like you can create a centralized place to create segmentation so of course it's segments so you can create segmentation so what does it mean it means like you collect all the different kind of activities around here so someone is is looking at a let's say a pricing page on your website and so you also they created an account at some point of time
in the past so you know this as well and so maybe you also know on the back end that they already had a free trial two years ago and so in the cim system you can see that oh they're already got someone from your sales team reached out to them and they at least clicked on the email and checked the white paper that you sent to them so these are all the different kind of things that you already collected about this kind of user and then what you can do in personas is really like you
can create a segmentation can say actually I want to see all the users that have at least one time so the pricing page and open this white paper that the CRM team is always sending out and so and this is a specific group of people and this specific group of people I want to send out to my email marketing tool and also to my uh to Google ads because I want to run on Google ads I want to run some retargeting campaign and on the other one I want to send an email sequence and the
good thing is like when you do it in in segment you have a central place where you create the segmentation because in the other case you would create the segmentation in your email tool and then you would create the segmentation again in Google ads to some degree and so this is something where personas helps it's super helpful if when you have let's say different really different kind of marketing tools that you use um where you basically run marketing activities on the same customer data so Persona centralizes let's quickly look on a second add-on as well
um which is for tracking quite an interesting one so once you have a tracking plan ready you can either do it directly so if you use segment protocols it's also an add-on so you have to buy it so but if you have bought it so you can go in there and you can create your tracking plan directly in segment so with all the things that we just discussed so like the events and the properties and so on and what you can then do is basically like you you couldn't use this you use this as a
monitoring system so you create the tracking plan you say so you can say okay it's a draft one and then you can say okay it's in production actually and so then once it's in production so segment checks all the events that come into segment against this tracking plan and then it points out things that does not validate against the schema that you have created so that's one thing that you can do with protocols so it gives you a good monitoring system to see if the data is flowing in the right shape all right so this
is how segment works I hope it gives you kind of an idea what it is foreign [Music]