Create a Tracking Plan
Scale with Schemas

Learn how to scale with schemas in 2 minutes

Time has passed and we now have two events: signup and account-deleted:

Create event landing pageCreate event landing page

These events are using the same user data. If we want to add a new property to the user data, we would have to update both events. Let's create a user schema to solve this problem:

Create a schema

  1. Head to the schemas dashboard{your-org-slug}/schemas.

  2. Click on the "Create a schema" button.

Create schema button
  1. Fill in the schema details (look familiar? 🙈) and click on the "Create schema" button.
  • Name (required): The name of your schema.
  • Tags: Tags help you categorize your schema. You can add multiple tags.
  • Description: A brief description of your schema. Your developers will see these as comments in their code.
Create schema form

Define properties

Success! You've created your first schema. Now, let's add the user properties from signup and account-deleted to the user schema.

  1. Head to the events dashboard{your-org-slug}/schemas and click on the schema you just created. You'll see the schema details page:
User schema details header
  1. Use the "Add Property" button to define properties for the schema:
Add properties to schema gif

Update events

Now that you have a user schema, you can update the signup and account-deleted events to use the user schema:

Adding user to signup event gif

Make changes with ease

When you need to update the user properties, you can do it in one place: the user schema. All events using the user schema will automatically get the updated properties. Developers will also see these changes upon updating their code.

Adding new property to user schema gif

🎉 You've learned how to scale with schemas!

Next steps: