The tracker comes with a demo app that shows it in use. It is a simple video player with a fixed collection of played videos and an interface to switch between them. The demo app may serve you to understand how to embed Snowplow tracking within a BrightScript channel.
The project in included in the tracker repository, in the
src-demo-app subfolder. The following steps to build and deploy the channel assume that you have enabled developer mode on your Roku device and it is connected to your network.
- Download the Roku tracker project.
npm installwithin the project.
- Install ropm
npm i ropm -g.
- Install ropm packages
.envfile with environment variables in the root of this repository with the following content:
- Add configuration for Snowplow collector to
- Start the demo app using
npm run demo-app.
Alternatively, you may run the demo app from Visual Studio Code as the debug configuration is already prepared. Install the BrightScript extension to Visual Studio Code and choose "Run demo app" in the debug options.
Events will be sent to the Snowplow collector as you navigate through the app.