Solved

Can you create custom error events

  • 19 April 2023
  • 5 replies
  • 282 views

Can I create custom error events that show up as errors in the data stream? For example if the user tries to set an appointment in the past or request negative money, the react component can display an error and I can track that to see where users are finding difficulties within the app.

icon

Best answer by Saish Redkar 21 April 2023, 20:40

View original

5 replies

Userlevel 2
Badge +5

Hey @austinlogo , 

Yes, you definitely can. You just have to explicitly track that as an event in your product using one of our SDKs (catalog here). I would probably track it as an event, e.g. ‘Booking Error’ and then have one or more properties providing more context, e.g. ‘error_type’.

I hope this helps!

apologies, let me try and be a little clearer. I’ve seen amplitude visually distinguish errors in the timeline. (Red appearance, etc. ) I’m curious what triggers that as opposed to the typical green event styles.  I was hoping to be able to trigger that but for custom events not just ones that are picked up by thrown errors

@franciskafyi - apologies for the double post, but wanted to get the clarification on your radar.

Userlevel 7
Badge +10

Hi @austinlogo 

If by “timeline” you are referring to the user event stream, then afaik there are only 2 possible colors associated - Blue events are in-session events that are all connected by a line. Green ones are the out-of-session events which are stand alone. I haven’t come across any red colored entity yet.

 

Based on how you instrument your error events ( in-session vs out-of-session events ) , you will see their color accordingly.

Hope this helps.

Userlevel 5
Badge +9

@austinlogo did this help out? Fwiw, we get this color question often so I think a good support article will help out here to help decode what each color means.

Reply