I am trying to integrate the Roku Analytics Component, specifically Google Analytics,with my Roku Channel, per the documentation
here (starting at "Implementation")
However, I keep getting an error when I try to create the roSGNode with type Roku_Analytics:AnalyticsNode.
I literally copied and pasted these lines from the docs, putting them in main.brs, in a function that initializes my main home page:
m.global.addField("RSG_analytics","node",false)
m.global.RSG_analytics = CreateObject("roSGNode","Roku_Analytics:AnalyticsNode")
I keep getting the error message:
Failed to create roSGNode with type Roku_Analytics:AnalyticsNode:
I know that usually when you create an roSGNode, the nodeType is something like a Poster or Label, so I was suspicious of the type being Roku_Analytics:AnalyticsNode, but this is what the docs say to do.
Am I missing something??? Any help or advice at all would be much appreciated!!!