About Flurry

Hello. I’ve initiated analythics in my app using the following:

local analytics = require "analytics" analytics.init("X6YPFYT6NPJYF5xxxxxx")  

When I try to log an event I add the following codes to the functions:

analytics.logEvent("Start Button")

analytics.logEvent("About Section")

analytics.logEvent("Level1: Button1 pressed")

etc.

I can’t find in my Flurry account where those actions appear. Can’t I track what a user does?

Later edit: I am the only user that installed the app and I have waited a day for the stats to appear. I am just interested to know if I can see what I accesed inside the app.

Thank you.

Hi there,

Your code looks fine to me.  In your Flurry analytics dashboard for your app, click on Events on the left side, and you should see the events.  But it doesn’t update real-time – usually it takes a day or so before your data appears, so that might be why you’re not seeing anything yet.

Hope this helps!

  • Andrew

It’s been 2 days and the message “You are not currently tracking any Events.” still appears.

I guess it will take more time or more users for those stats to appear?

Hmm, after 2 days I think it would’ve appeared by then.  And no, it definitely shouldn’t take more users – event tracking worked for me as soon as I started using it, even though I was the only user.

You’ve installed your app on a real device, right?  Because the analytics library doesn’t run in the Simulator.

  • Andrew

Yes, I installed the app on my device; it appears on Technical category.

I added the analythics logevent like this:

local analytics = require "analytics" analytics.init("X6YPFYT6NPJYF5xxxxxx") local function facebook1( self, event )     if event.phase == "began" then         clickhear = audio.play( click )         analytics.logEvent("Main Page: Facebook")         system.openURL( "http://www.facebook.com/" )                  return true     end end function scene:createScene( event )     local screenGroup = self.view     mainmenu\_facebook = display.newImage( "mainmenu\_facebook.png")     mainmenu\_facebook.x = display.contentWidth / 2.3     mainmenu\_facebook.y = display.contentHeight / 1.895     screenGroup:insert (mainmenu\_facebook)     mainmenu\_facebook.touch = facebook1     mainmenu\_facebook:addEventListener( "touch", mainmenu\_facebook ) end

I think it should log the touch event.

Very strange, I don’t see why its not working. Have you double checked your API key in analyctics.init to make sure it matches up perfectly with the flurry one? 

The one in the example is not the real one.

I used the key that appears inside the Manage tab on the left; the one under App Name, Category, SDK Version, etc.

Yeah, I know you didn’t post your real one, just wanted to check that you have made sure its the right one in your app :slight_smile:

Is it just events that are missing, or is there no data in flurry at all? Maybe delete and reinstall the app on your device to clear any file caches? 

I am receiving some data in the “Usage” category.

I reinstalled the app, re-activated my network connection and played a little bit with the facebook, twitter etc buttons in order to log some events.

I will post tommorow if I’ll receive some data in the events category.

Hi there,

Your code looks fine to me.  In your Flurry analytics dashboard for your app, click on Events on the left side, and you should see the events.  But it doesn’t update real-time – usually it takes a day or so before your data appears, so that might be why you’re not seeing anything yet.

Hope this helps!

  • Andrew

It’s been 2 days and the message “You are not currently tracking any Events.” still appears.

I guess it will take more time or more users for those stats to appear?

Hmm, after 2 days I think it would’ve appeared by then.  And no, it definitely shouldn’t take more users – event tracking worked for me as soon as I started using it, even though I was the only user.

You’ve installed your app on a real device, right?  Because the analytics library doesn’t run in the Simulator.

  • Andrew

Yes, I installed the app on my device; it appears on Technical category.

I added the analythics logevent like this:

local analytics = require "analytics" analytics.init("X6YPFYT6NPJYF5xxxxxx") local function facebook1( self, event )     if event.phase == "began" then         clickhear = audio.play( click )         analytics.logEvent("Main Page: Facebook")         system.openURL( "http://www.facebook.com/" )                  return true     end end function scene:createScene( event )     local screenGroup = self.view     mainmenu\_facebook = display.newImage( "mainmenu\_facebook.png")     mainmenu\_facebook.x = display.contentWidth / 2.3     mainmenu\_facebook.y = display.contentHeight / 1.895     screenGroup:insert (mainmenu\_facebook)     mainmenu\_facebook.touch = facebook1     mainmenu\_facebook:addEventListener( "touch", mainmenu\_facebook ) end

I think it should log the touch event.

Very strange, I don’t see why its not working. Have you double checked your API key in analyctics.init to make sure it matches up perfectly with the flurry one? 

The one in the example is not the real one.

I used the key that appears inside the Manage tab on the left; the one under App Name, Category, SDK Version, etc.

Yeah, I know you didn’t post your real one, just wanted to check that you have made sure its the right one in your app :slight_smile:

Is it just events that are missing, or is there no data in flurry at all? Maybe delete and reinstall the app on your device to clear any file caches? 

I am receiving some data in the “Usage” category.

I reinstalled the app, re-activated my network connection and played a little bit with the facebook, twitter etc buttons in order to log some events.

I will post tommorow if I’ll receive some data in the events category.