Event Tracking

Friday Demos · January 26, 2024 · 6:04

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. I can give a quick one while Buck is refreshing there we go um there is now a schema in Omni called Omni app tracker um and this is uh Rudder stack uh implemented event tracking through the app uh so I haven't really explored the data too much yet it actually looks like ruter stack creates a different table for each type of event um which is probably nice um so so far I have only started tracking logins um so we should get to see whatever logins have happened since this one out which is was very very recently so there's only one um and um the one thing to note here is this user ID is actually the Omni user ID so I could join this together

  2. with our users table uh and actually um get a you know contextualize it with our other data um same with the organization ID of course so um this code is uh let's see router stack uh for for the developers in the room uh there's this track event uh function now in the code this runs from our server do not try to call it from client side code it will not work uh and you shouldn't even be able to because it's in a server.

  3. TS file um and you can kind of see the structure here you can create new events through the scom um and this properties is just a bag of you know a Json blob of of properties that you want to send along with the object um and it looks like RAC does do kind of a nice job of uh exploding those into columns in the database uh I don't know what it's going to do with nested data hopefully it's going to use a variant field but we'll find out uh so yeah hopefully uh we can start uh getting quite a few other events tracked in here how quick is the data available pretty quick um I'm only loading it into snowflake every hour um and we

  4. could dial that frequency up or down but at least you know it's received by ruter Stack quite quickly sweet I'm just wondering if we can like Leverage it for recent content in the near future I think we could and I also you know it's because it's server side I feel it's not you know we are pretty much firing and forgetting and I think it does have a little bit of like a buffering Behavior built in that we might be able to tune um so I think the there is a chance of data loss but I think it's relatively low and like like I said we could probably tune that so I'd be in favor of that and um you know we could definitely dial up

  5. the frequency as long as we're comfortable with the implications on snowflake cost well we could also like land that recent data somewhere else for the use case possibly yeah we'll chat more that's awesome um cool cool oh sorry go ahead Sarah uh sah you're m i I loaded my hand but I didn't unmute um could we use this for like in product stuff like hey you've been to this dashboard three times would you like to schedule it I think that's what Luke is is describing or similar use case to what Luke was describing in terms of like content views and that sort of thing so um yeah I I I think we can um and in fact I'd be favor in favor what I would

  6. say is I don't want I I think this is the perfect system for that and I don't want to have another system that's kind of like this for that so I'd be in favor of that awesome I'm excited I may have missed this Chris but uh what are we tracking today what would it take like are we tracking clicks or page views or like what do we have to do to instrument stuff across the app so this is everything that we track has to be decided to be tracked um and this is only happening from the server side um so right now literally just logins is the only thing I instrumented so far um we could think about uh doing some blanket um you know

  7. every time a a loader is called tracking but I kind of would prefer to keep it clean um is it always going to be server side only or like can it be client I really want it to be server side only as long as possible for performance reasons um anuka we could easily and Richard maybe well I won't volunteer Richard but this is Richard's idea um you know we could easily create our own little client Sid tracker that sends data to this on the server side to send it I was just having trouble with their client side SDK so um but yeah I mean the short answer is yes as long as we understand sort of the implications of that it is I don't know

  8. if we have and I don't even know if this would be the right way to do it but I've had a lot of questions before about like how many queries are coming from Duck DB and how much are coming from cash and how long did the query take and I don't know if that kind of stuff we're capturing anywhere easy to find right now and I wondered if Rudder stack could do that kind of stuff well yeah I mean I think uh the short answer is like whether Rudder stack are own thing like easily it wouldn't be hard to just be able to track events and I think the hard part of that would be actually just getting the data out at the right frequency

  9. from the right place um but yeah that that is doable for sure I see