Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
bdsearle
Level 7

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 Smiley Sad  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
congpt
Level 7

Re: what is everyone using for analytics?

You try to use Segment.
0 Kudos
bdsearle
Level 7

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
Level 7

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
Level 7

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