Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bdsearle
Visitor

what is everyone using for analytics?

I recently had my first public app approved and would like to add analytics.  Is everyone using Google Analytics?  I tried to incorporating roku-gamp from Veeta here - https://github.com/cdthompson/roku-gamp but I wasn't able to get it to work 😞  I think it might have to do with creating the view for USER ID in GA, because I don't really understand how that works.
If any one has used this for analytics or has another option, this newbie would be super grateful if you could point me in the right direction.  Thanks!
0 Kudos
4 REPLIES 4
congpt
Visitor

Re: what is everyone using for analytics?

You try to use Segment.
0 Kudos
bdsearle
Visitor

Re: what is everyone using for analytics?

"congpt" wrote:
You try to use Segment.

I haven't tried it yet.  Thanks!  I created my channel using the NewVideoExample by belltown - https://github.com/belltown/Roku-NewVideoPlayer.  I am trying to add Segment to my channel today.  I have added the Analytics.brs to my source folder, but I don't quite understand what files to update or where to add the example code?
User = createObject("roDeviceInfo").GetDeviceUniqueId()

Analytics = Analytics("UserIdentifier", "SegmentIOAPIKey", YourEventLoopPort)

and
MessagePort = GetGlobal().MessagePort
User = createObject("roDeviceInfo").GetDeviceUniqueId()
ApiKey = "ABCD1234"

Analytics = Analytics(User, ApiKey, MessagePort)

'My event loop
while true
   msg = wait(0,MessagePort)
   'You do stuff with events in your app here
   Analytics = GetSession().Analytics
   Analytics.HandleAnalyticsEvents(msg)
end while

also, in Segment, should I setup the profile as Android?
Thanks!
0 Kudos
sstafford
Visitor

Re: what is everyone using for analytics?

Anyone have success with GA, I tried this approach https://github.com/veeta-tv/roku-gamp and not sure how to dump the files into my existing app. I see i need to add folder under sources GA but after that gets little grey.
0 Kudos
Veeta
Visitor

Re: what is everyone using for analytics?

The README could use some more handholding, since a lot of the source is just example usage.  Are you using scene graph or SDK1 for your channel?
0 Kudos