# Tracking Plan Code Generation

{{< youtube znWUpVa5ab8 >}}<br />

Event data quality has never been more important, but even for teams that run tight processes, details can get lost in translation. Between the creation of an event schema definition and the instrumentation of the API call to fire the event from the codebase of the website or app, simple mistakes can create big problems downstream. 

RudderStack's new **Code Generation (Codegen)** feature automatically creates clear code snippets that software engineers can use in their instrumentation. The code snippets ensure property and trait keys are accurate, provide samples for selected data types, and clearly denote whether the key is optional.

{{< announcement >}}
The Codegen feature is in **Public Beta** as part of RudderStack's Early Access Program, where we work with early users and customers to test new features and get feedback before making them generally available.

[Contact the Product team](mailto:product@rudderstack.com) if you have any questions.
{{< /announcement >}}

As part of this release, we've made significant updates to the UI for our schema view and have completely overhauled the schema editing experience, which significantly simplifies schema buildout and updates.

See our [Tracking Plan Codegen docs]({{< ref "data-governance/tracking-plans/codegen.md" >}}) for more information.

## Screenshots

{{< image src="images/releases/tracking-plans-codegen/codegen-ui.png" alt="Tracking Plans Codegen" >}}

{{< image src="images/releases/tracking-plans-codegen/schema-edit-ui.png" alt="Tracking Plan schema editing" >}}

{{< image src="images/releases/tracking-plans-codegen/schema-edit-ui-select.png" alt="Tracking Plan schema editing property selection" >}}

{{< image src="images/releases/tracking-plans-codegen/schema-ui-search.png" alt="Tracking Plan schema editing property search" >}}
