4waytechnologies
Enquiry Form

How to Integrate Google Analytics for Roku Application

ROKU applications/ channels integrated with Google Analytics is must nowadays. As Google Analytics can be used to track page views, content playback and button clicks; and in addition to this Google Analytics can also track Internet service provider, speed, real-time/ online users and many more such things. 

Page-views and events that occur on ROKU devices that have your channel installed will generate report data within your Google Analytics Account. 

ROKU Developers has introduced a new ROKU SceneGraph (RSG) component library for implementing Google Analytics, Omniture Analytics, and Brightcove Cloud Analytics. ROKU development team named this library as ROKU Analytics Component Library(RACL). This library creates a simple method for capturing real-time analytics events in SceneGraph Channels using any supported providers. 

The ROKU Developers divided analytics platforms supported by RACL into 3 different models, allowing the ARM developer to pick the model and analytics provider that suit their needs accordingly. 

MODEL #1

The channel Passes video-related events to the analytics module as they are received. And the analytics module is responsible for building and firing any analytics beacons needed for that event. This is most common for services focused on video metrics. Platforms that use this model are Brightcove and Ooyala.

MODEL #2

The channel is responsible for deciding when an analytics beacon needs to be fired and collecting the data that needs to be sent with the beacon. This is common for services that track UX interactions as well as video metrics. Platforms that use this are Omniture and Google Analytics.


MODEL #3

This model utilizes ROKU’s Event Dispatcher library that allows channels to share In-App user behaviours and events with ROKU by inserting custom tracking pixels into the channel.  The Event Dispatcher enables ROKU development team to customize the Universal Search results based on a user’s ability to view a particular piece of content without making a transaction. In other words, content in a channel that the user already subscribes to will appear higher in the search results than content behind an additional paywall or content with ads. The ROKU Event Dispatcher is the vehicle used to allow ROKU to determine a user’s authenticated status.

Use RACL with Google Analytics 

For ARM developers to use RACL with Google Analytics, ROKU developers developed a simple strategy. Select the “Website” property view when you set up the Google Analytics dashboard; name your website property accordingly.

NOTE: Make sure to note the trackingID from Google Analytics from “Admin Dashboard”.  

 Google Analytics use method trackEvent(). Google Analytics attributes for trackEvent() can be found at https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters

Methods 

trackEvent()

#This method can only be used for vendors using model #2 such as Google Analytics or Omniture.

This method uses roAssociativeArrays class’s method containing the parameters and values that are sent with a beacon. This method can be invoked anytime when an event needs to be fired.

Example:

Debug

  This method takes a boolean to determine if debug data will be shown in the console. The default value is false (No debug data will be displayed in the console).

Example:


Expected Output

Once you run the ROKU Analytics Component, you will see the beacons it fires on the BrightScript console. The analytics will be display on your “Analytics Dashboard”.

Example:


1 thought on “How to Integrate Google Analytics for Roku Application”

  1. контурные карты история средних веков 6 класс готовые

    Hello it’s me, I am also visiting this web page regularly, this website is genuinely pleasant and the visitors are in fact sharing fastidious thoughts.| а

Leave a Comment

Your email address will not be published. Required fields are marked *

Close Bitnami banner
Bitnami