Forum Discussion

bdsearle's avatar
bdsearle
Visitor
9 years ago

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!

4 Replies

  • "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!
  • 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?