lisakb140
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018
02:30 PM
Can't Set Up Roku_Analytics:AnalyticsNode
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:
I keep getting the error message:
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!!!
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!!!
3 REPLIES 3
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018
11:18 PM
Re: Can't Set Up Roku_Analytics:AnalyticsNode
I downloaded the first sample given at the bottom of the page and it includes that code and it seems to work (at least it doesn't crash). Are you including
in your manifest?
-JT
sg_component_libs_required=Roku_Analytics
in your manifest?
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
lisakb140
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018
08:03 AM
Re: Can't Set Up Roku_Analytics:AnalyticsNode
Ah, good call!
I copied and pasted sg_component_libs_required=Roku_Analyticsinto the "Other Libraries" field in my manifest, but got an error saying "BS lib provider not found." However, when I just put in "Roku_Analytics" into that field, I was able to successfully start the app and it looks like my node created---is this still correct? It seems odd that the docs would say to use "sg_component_libs_required.." but I only used the "Roku_Analytics" part...
I copied and pasted sg_component_libs_required=Roku_Analyticsinto the "Other Libraries" field in my manifest, but got an error saying "BS lib provider not found." However, when I just put in "Roku_Analytics" into that field, I was able to successfully start the app and it looks like my node created---is this still correct? It seems odd that the docs would say to use "sg_component_libs_required.." but I only used the "Roku_Analytics" part...
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018
11:19 AM
Re: Can't Set Up Roku_Analytics:AnalyticsNode
I copied that line right from the manifest of the sample. Are you using Eclipse or something similar for deployment? If so, check the manifest that it creates.
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.