Skip to content

thyngster/roku-universal-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Roku Universal Analytics

Overview

This is free Univeral Analytics tracking library for Roku player.

It allows you to track your Channel activity within Universal Analytics.

What's Roku? http://en.wikipedia.org/wiki/Roku

What's Universal Analytics? http://support.google.com/analytics/answer/2790010?hl=es

What can this library do for you

  • Event Tracking
  • Pageviews Tracking
  • Roku Model and Version ( as Custom Dimensions )
  • Real Screen Resolution and Aspect Ratio
  • Unique Roku Players based on a random UUIDv4
  • AppName and AppVersion ( Your channel name and version )

How to use it

Just initialize the library with this line just before your channel setup UA_Init("UA-XXXXXXXXX-Y")

After you have initilized it you can start sending events and pageviews:

  • UA_trackEvent("Category","Action","Label","Value") All parameters are mandatory if you don't need to send a label or value, just set them as ""
  • UA_trackPageview("/el_padrino_iii_trailer")

Configuration

If you wanna track the roku model and version used by your clients, please set 2 dimensions ( dimension1 and dimension2 ) with a visit Scope within your Google Analytics Admin Section

Example

Check the demo folder for a modified "Custom Video Player Channel" example for the SDK, that sends this info to Google Analytics

  • An Event when the channel is loaded
  • An Event when the channel is closed
  • An Event every time the pause/resume button is pressed
  • An Event when users select the fullscreen mode
  • An Event ( with a value ) when the user forwards or rewards the video
  • A pageview when the video is loaded

About

Universal Analytics Tracking Library for Roku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published