Analytics

anyone have simple tutorial in integrating analytics in corona sdk?? like flurry cause mine is not work well :frowning:

i got a flurry sample in corona but it was not working… i was very confuse specially in flurry site…

Im new here :frowning:

Hi @dominicdev,

Which sample are you using to test? Did you try the most current Corona sample app located in your local Corona SDK application directory?

Corona SDK > SampleCode > Analytics > FlurrySample

If so, what error are you receiving? Can you tell me a specific problem that’s occurring?

Thanks,

Brent Sorrentino

shall i recieve immediately the info in the flurry site??

Unfortunately no, Flurry doesn’t publish analytics for your app in real time. It’s usually delayed by about 24 hours.

oh… Ok Thanks :smiley: I already have data in Flurry site but nothing in Events… is thier a specific in naming the event to anable to show in flurry site?or it will automaticaly show what u named in ur event? cause i use the sample flurry code in corona sdk…

This was tha actual code im using to test flurry if it is work… the Sessions was working fine but nothing in Event…

  1. local analytics = require( “analytics” )
  2. local widget = require( “widget” )
  3. – Replace this string with your unique application key, obtained from www.flurry.com.
  4. local application_key = “JQRNN9NXXXXXXXXXXX” --not the actual
  5. analytics.init(application_key )
  6. – Set the ads (updates every 60 seconds)
  7. ads.show( “banner320x48”, { x=0, y=100, interval=10, testMode=false } )
  8. local buttonRelease1 = function( event )
  9.     print( “Logging event 1” )
  10.     – When button 1 is pressed, it logs an event called “event1”
  11.     analytics.logEvent(“NEW GAME”)
  12. end
  13. local buttonRelease2 = function( event )
  14.     print( “Logging event 2” )
  15.     – When button 2 is pressed, it logs an event called “event2”
  16.     analytics.logEvent(“HIGHSCORE”)
  17. end
  18. local buttonRelease3 = function( event )
  19.     print( “Logging event 3” )
  20.     – When button 3 is pressed, it logs an event called “event3”
  21.     analytics.logEvent(“HOWTO”)
  22. end
  23. – Create buttons for each event
  24. local button1 = widget.newButton{
  25.     top = 50,
  26.     left = 10,
  27.     default = “buttonBlue.png”,
  28.     over = “buttonBlueOver.png”,
  29.     label = “NEW GAME”,
  30.     labelColor = {
  31.         default = { 255, 255, 255 },
  32.         over = { 255, 0, 0 }
  33.     },
  34.     fontSize = 20,
  35.     font = native.systemFontBold,
  36.     onRelease = buttonRelease1
  37. }
  38. local button2 = widget.newButton{
  39.     top = button1.y + 42,
  40.     left = 10,
  41.     default = “buttonBlue.png”,
  42.     over = “buttonBlueOver.png”,
  43.     label = “HIGHSCORE”,
  44.     labelColor = {
  45.         default = { 255, 255, 255 },
  46.         over = { 255, 0, 0 }
  47.     },
  48.     fontSize = 20,
  49.     font = native.systemFontBold,
  50.     onRelease = buttonRelease2
  51. }
  52. local button3 = widget.newButton{
  53.     top = button2.y + 42,
  54.     left = 10,
  55.     default = “buttonBlue.png”,
  56.     over = “buttonBlueOver.png”,
  57.     label = “HOW TO”,
  58.     labelColor = {
  59.         default = { 255, 255, 255 },
  60.         over = { 255, 0, 0 }
  61.     },
  62.     fontSize = 20,
  63.     font = native.systemFontBold,
  64.     onRelease = buttonRelease3
  65. }

 

Event should show automatically in your Flurry dashboard with whatever you named them.  There’s no special naming required.  You should see them in the dashboard under the Events section.

I vaguely recall reading once that events take a bit longer to show up than session data, but I can’t seem to find where I read that. If they don’t show up after another day, then we can look into it more to figure out what’s wrong.

  • Andrew

Andrew,

I’m also seeing a problem with LogEvent on Android, with an older Corona build 971 as well as the latest build 1076. The sessions/users do show up in the Flurry dashboard (for both iOS and Android), but the Android stats are lacking events entirely. This leads me to think my code is ok, but there’s a problem with the flurry API w.r.t logging events.

Any ideas?

(edit: I should clarify, I do* see the expected events listed for iOS, so the problem is specific to Android)

Never mind. My problem turned out to be that I detected Android incorrectly and initialized with an iOS flurry app id.

Hi @dominicdev,

Which sample are you using to test? Did you try the most current Corona sample app located in your local Corona SDK application directory?

Corona SDK > SampleCode > Analytics > FlurrySample

If so, what error are you receiving? Can you tell me a specific problem that’s occurring?

Thanks,

Brent Sorrentino

shall i recieve immediately the info in the flurry site??

Unfortunately no, Flurry doesn’t publish analytics for your app in real time. It’s usually delayed by about 24 hours.

oh… Ok Thanks :smiley: I already have data in Flurry site but nothing in Events… is thier a specific in naming the event to anable to show in flurry site?or it will automaticaly show what u named in ur event? cause i use the sample flurry code in corona sdk…

This was tha actual code im using to test flurry if it is work… the Sessions was working fine but nothing in Event…

  1. local analytics = require( “analytics” )
  2. local widget = require( “widget” )
  3. – Replace this string with your unique application key, obtained from www.flurry.com.
  4. local application_key = “JQRNN9NXXXXXXXXXXX” --not the actual
  5. analytics.init(application_key )
  6. – Set the ads (updates every 60 seconds)
  7. ads.show( “banner320x48”, { x=0, y=100, interval=10, testMode=false } )
  8. local buttonRelease1 = function( event )
  9.     print( “Logging event 1” )
  10.     – When button 1 is pressed, it logs an event called “event1”
  11.     analytics.logEvent(“NEW GAME”)
  12. end
  13. local buttonRelease2 = function( event )
  14.     print( “Logging event 2” )
  15.     – When button 2 is pressed, it logs an event called “event2”
  16.     analytics.logEvent(“HIGHSCORE”)
  17. end
  18. local buttonRelease3 = function( event )
  19.     print( “Logging event 3” )
  20.     – When button 3 is pressed, it logs an event called “event3”
  21.     analytics.logEvent(“HOWTO”)
  22. end
  23. – Create buttons for each event
  24. local button1 = widget.newButton{
  25.     top = 50,
  26.     left = 10,
  27.     default = “buttonBlue.png”,
  28.     over = “buttonBlueOver.png”,
  29.     label = “NEW GAME”,
  30.     labelColor = {
  31.         default = { 255, 255, 255 },
  32.         over = { 255, 0, 0 }
  33.     },
  34.     fontSize = 20,
  35.     font = native.systemFontBold,
  36.     onRelease = buttonRelease1
  37. }
  38. local button2 = widget.newButton{
  39.     top = button1.y + 42,
  40.     left = 10,
  41.     default = “buttonBlue.png”,
  42.     over = “buttonBlueOver.png”,
  43.     label = “HIGHSCORE”,
  44.     labelColor = {
  45.         default = { 255, 255, 255 },
  46.         over = { 255, 0, 0 }
  47.     },
  48.     fontSize = 20,
  49.     font = native.systemFontBold,
  50.     onRelease = buttonRelease2
  51. }
  52. local button3 = widget.newButton{
  53.     top = button2.y + 42,
  54.     left = 10,
  55.     default = “buttonBlue.png”,
  56.     over = “buttonBlueOver.png”,
  57.     label = “HOW TO”,
  58.     labelColor = {
  59.         default = { 255, 255, 255 },
  60.         over = { 255, 0, 0 }
  61.     },
  62.     fontSize = 20,
  63.     font = native.systemFontBold,
  64.     onRelease = buttonRelease3
  65. }

 

Event should show automatically in your Flurry dashboard with whatever you named them.  There’s no special naming required.  You should see them in the dashboard under the Events section.

I vaguely recall reading once that events take a bit longer to show up than session data, but I can’t seem to find where I read that. If they don’t show up after another day, then we can look into it more to figure out what’s wrong.

  • Andrew

Andrew,

I’m also seeing a problem with LogEvent on Android, with an older Corona build 971 as well as the latest build 1076. The sessions/users do show up in the Flurry dashboard (for both iOS and Android), but the Android stats are lacking events entirely. This leads me to think my code is ok, but there’s a problem with the flurry API w.r.t logging events.

Any ideas?

(edit: I should clarify, I do* see the expected events listed for iOS, so the problem is specific to Android)

Never mind. My problem turned out to be that I detected Android incorrectly and initialized with an iOS flurry app id.