Collecting data with Trackers and Webhooks

  1. Home
  2. Docs
  3. Collecting data with Trackers and Webhooks
  4. Trackers – collecting data from your own applications
  5. Roku Tracker
  6. Example Roku app with Snowplow tracking

Example Roku app with Snowplow tracking

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.

  1. Download the Roku tracker project.
  2. Run npm install within the project.
  3. Install ropm npm i ropm -g.
  4. Install ropm packages ropm install.
  5. Create .env file with environment variables in the root of this repository with the following content:
    ROKU_IP=192.168.100.129
    ROKU_PASSWORD=XXXX
  6. Add configuration for Snowplow collector to src-demo-app/manifest:
    snowplow_collector=http://192.168.100.127:9090
    snowplow_method=POST
  7. 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.

If you’d like to learn more about Snowplow BDP you can book a demo with our team, or if you’d prefer, you can try Snowplow technology for yourself quickly and easily.