Overview
Event categories help you organize and visually distinguish different types of events in PingPilot. Each category has a name, color, and optional emoji that appear in your notifications.What is a Category?
A category defines a type of event that can occur in your application. For example:bug- For error reports and bugssale- For successful purchasessign-up- For new user registrationspayment-failed- For failed payment attempts
Category Properties
Each category has three properties:The unique identifier for the category. Must be lowercase and contain only letters, numbers, or hyphens.Validation:
/^[a-zA-Z0-9-]+$/Examples: bug, new-sale, user-signupA hex color code that determines the visual appearance of the category in notifications.Format:
#RRGGBB (e.g., #FF6B6B)Storage: Converted to integer format in the databaseAn optional emoji that appears with the category name in notifications.Examples: π, π°, π, β οΈ
Creating a Category
Via Dashboard
Fill in Details
- Name: Enter a descriptive name (lowercase, letters/numbers/hyphens only)
- Color: Pick a color using the color picker
- Emoji: (Optional) Add an emoji to make it more visual
Via API (programmatic creation)
Categories are typically created through the dashboard UI, but you can also create them programmatically using the internal tRPC API:Validation Rules
Name Validation
Category names must follow these rules:bugnew-saleuser-signupapi-errorpayment123
New Sale(contains spaces)user_signup(contains underscore)payment!(contains special character)URGENT!!!(contains special characters)
Color Validation
Colors must be in hex format:#FF6B6B#4ECDC4#FFE66D#000000
FF6B6B(missing #)#FFF(too short)rgb(255, 0, 0)(wrong format)
Emoji Validation
If provided, the emoji must be a valid emoji character:Color Storage
Colors are stored as integers in the database for efficiency:Category Uniqueness
Category names must be unique per user:- You cannot have two categories with the same name
- Different users can have categories with the same name
- Category names are case-sensitive in the database but stored as lowercase
Quickstart Categories
PingPilot provides quickstart categories to help you get started:Managing Categories
Viewing Categories
All your categories are displayed on the dashboard with:- Category name and emoji
- Color indicator
- Event count for the current month
- Last ping timestamp
- Unique field count
Deleting Categories
Best Practices
Use Descriptive Names
Use Descriptive Names
Choose names that clearly describe the event type:
- β
payment-failed - β
new-user-signup - β
event1 - β
x
Use Consistent Naming
Use Consistent Naming
Establish a naming convention and stick to it:
- All lowercase
- Use hyphens for spaces
- Be specific but concise
Choose Meaningful Colors
Choose Meaningful Colors
Use colors that match the severity or type of event:
- π΄ Red (
#FF6B6B) for errors and critical events - π‘ Yellow (
#FFEB3B) for warnings - π’ Green (
#4CAF50) for success events - π΅ Blue (
#2196F3) for informational events
Add Relevant Emojis
Add Relevant Emojis
Emojis make notifications more scannable:
- π for bugs
- π° for sales
- π€ for user events
- β οΈ for warnings
- β for success events
Don't Create Too Many Categories
Don't Create Too Many Categories
Keep the number of categories manageable. Instead of creating a category for every specific event, group similar events together and use the
fields parameter to add specificity.Example Categories
Here are some common category configurations:Next Steps
Sending Events
Learn how to send events to your categories
API Reference
View the complete API reference