Create a Tracking Plan

Create a new tracking plan in the RudderStack dashboard.
Available Plans
  • free
  • starter
  • growth
  • enterprise

This guide will help you create a new tracking plan in the RudderStack dashboard.

Overview

You can create a new tracking plans using any of the following approaches:

success
You can also use the Data Catalog API to create and manage your tracking plans programmatically.

1. From an existing Event Stream source

You can create a tracking plan from an existing event data source. This option leverages the Event Audit API to import the events and properties tracked by the event data source and generates an initial plan.

warning

Before you proceed, make sure the Event Audit API setting is turned on in your RudderStack dashboard.

Go to Settings > Workspace and click the Data Management tab. Scroll down to the Data governance section and turn on the Event Audit API toggle.

Event Audit API setting in RudderStack dashboard

See Enable Event Audit API section for more information.

  1. Log in to the RudderStack dashboard and go to Govern > Tracking Plans option in the left sidebar.
  2. Click Create tracking plan.
Create blank tracking plan
  1. Select Pull from source on the next screen.
Create blank tracking plan
  1. Select the event stream source from which you want to import the tracked events and properties and click Continue.
  2. Enter a unique name and description for your tracking plan and click Continue.
  3. Select events tracked from the source and click Continue.
warning

Note that:

  • The events and properties listed here are obtained from the Event Audit API.
  • RudderStack automatically adds these events and properties to the data catalog if they do not exist already.
Select events for the tracking plan
  1. In the Map properties to events section, RudderStack displays the list of events selected in the above step with the associated properties.
Map properties for the tracking plan
  1. You can also add more properties to an event from the data catalog:
  • Go to the Add Properties tab.
  • Select the Event from the dropdown.
  • Click the Add button next to the properties you want to add.
info

You can also define nested properties for an event in your tracking plan.

Based on the schema sampled from the incoming events, RudderStack shows up to three levels of nesting for a property of Object or Array data type. See Nested properties for tracking plans created from source for more information.

Additional properties for the events

In addition, you can:

  • Configure the event settings to allow unplanned properties.
  • Remove an event from the tracking plan.
  • Mark the property as optional or required by clicking the Optional/Required option.
  • Remove specific properties from the event.
Event and property mapping options while creating tracking plan
  1. Select the sources you want to connect to the tracking plan and click Continue.
warning
You can connect a tracking plan to multiple sources. However, note that a source can have only one tracking plan connected to it at a given time.
  1. Configure the tracking plan settings for specific event types and click Create Tracking Plan.
Create Tracking plan
  1. (Optional but Recommended) Use RudderTyper for autocomplete and linting.

2. Using a tracking plan template

Use this option to import your event and property mappings from a default RudderStack template:

  1. Log in to the RudderStack dashboard and go to Govern > Tracking Plans option in the left sidebar.
  2. Click Create tracking plan.
Create blank tracking plan
  1. Click Use template.
Create blank tracking plan
  1. Select the RudderStack template and click Continue.
info
RudderStack supports the Ecommerce tracking plan template.
  1. Add a tracking plan name and description and click Continue.
  2. In the Map properties to events section, RudderStack displays the list of events and properties inherited from the tracking plan template. You can customize these events and their associated properties for the tracking plan as per your requirement.
Map properties for the tracking plan
  1. You can also add more properties to an event from the data catalog:
  • Go to the Add Properties tab.
  • Select the Event from the dropdown.
  • Click the Add button next to the property you want to add.
info
You can also add nested properties for an event in your tracking plan. You can add up to three levels of nesting for a property of Object or Array data type.
Additional properties for the events

In addition, you can:

  • Add or remove an event from the tracking plan.
  • Configure the event settings to allow unplanned properties.
  • Remove specific properties from the event.
Event and property mapping options while creating tracking plan
  1. Connect the tracking plan to the required sources.
warning
You can connect a tracking plan to multiple sources. However, note that a source can have only one tracking plan connected to it at a given time.
  1. Configure the tracking plan settings for specific event types and click Create Tracking Plan.
Create Tracking plan
  1. (Optional but Recommended) Use RudderTyper for autocomplete and linting.

3. From the data catalog

You can create a tracking plan from scratch using the events and properties defined in the Data Catalog section:

  1. Log in to the RudderStack dashboard and go to Govern > Tracking Plans option in the left sidebar.
  2. Click Create tracking plan.
Create blank tracking plan
  1. Select From data catalog on the next screen.
Create blank tracking plan from data catalog
  1. Enter a unique name and description for your tracking plan.
  2. Choose the required events from the displayed events list (populated from the data catalog) and click Continue.
Select events for tracking plan
  1. In the Map properties to events section, add properties (populated from Data Catalog) to map to each event by clicking the Add properties button.
info
You can also add nested properties for an event in your tracking plan. You can add up to three levels of nesting for a property of Object or Array data type.
Create blank tracking plan
  1. Click the Add button next to the property you want to add. You can also mark a property Optional or Required.
Add properties for the events

In addition, you can:

  • Add or remove an event from the tracking plan.
  • Configure the event settings to allow unplanned properties.
  • Remove specific properties from the event.
Event and property mapping options while creating tracking plan
  1. Select the sources you want to connect to the tracking plan and click Continue.
warning
You can connect a tracking plan to multiple sources. However, note that a source can have only one tracking plan connected to it at a given time.
  1. Configure the tracking plan settings for specific event types and click Create Tracking Plan.
Create Tracking plan
  1. (Optional but Recommended) Use RudderTyper for autocomplete and linting.


Questions? Contact us by email or on Slack