Skip to main content
Data governance
Composable analytics

Track web events with base tracking plans

Use the Snowplow Console to create and manage tracking plans for a web application.

Progress0%

Install Snowtype to enable code generation from tracking plans

After defining your Event Specifications, the next step is implementing those events on your app. To do that you are going to use Snowtype to generate the required APIs for tracking the Event Specifications.

info

For some Event Specification features, such as event counts, it is required that events are tracked together with the event_specification entity. Snowtype automatically attaches the entity without any additional work required from the implementation engineers.

Installing Snowtype

After having set up a Console API key you can install Snowtype on this project by switching to the project root directory and running npm install @snowplow/snowtype@latest --save-dev.

Since this is a project without previous Snowtype installation, we need to go through the init flow.

To do that, you can go to the tracking plan page and click on the Implement tracking button. There you can copy the second code command which relates to initializing a new Snowtype project.

The inputs should look like the following:

Next you add this tracking plan to the Snowtype project by copying the first code command.

Now your Snowtype configuration file should include the tracking plan in the dataProductIds array.

On this page

Want to see a custom demo?

Our technical experts are here to help.