Skip to main content

Track web events with base data products

Data governance
  • Installation and Setup

  • Create a Source Application

  • Create a Base Data Product

  • Setup basic tracking

  • Verify base events received

  • Setup custom Data Structures

  • Create a custom Data Product

  • Add Event Specifications

  • Install Snowtype

  • Generate tracking code and implementation instructions

Last updated on

Install Snowtype

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 context. Snowtype automatically attaches the context without any additional work required from the implementation engineers.

Installing Snowtype

After having setup a Console API key you can install Snowtype on this project by switching to the project root directory and running npm install @snowplow/snowtype --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 Data Product 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 Data Product to the Snowtype project by copying the first code command.

Now your Snowtype configuration file should include the Data Product in the dataProductIds array.