Hi,
I’m using Flurry in an app which uses storyboard. So far Flurry registers events without a problem but I’m wondering if the way I’ve implemented the code was correct.
I have this code In my main.lua file:
analytics = require( "analytics" ) analytics.init( "THE\_API\_KEY" )
And then, in every single scene I log an event once we enter the scene:
function scene:enterScene( event ) --Some code here --Log event analytics.logEvent("SOME\_INFO\_HERE") end
Is this the correct implementation? I mean, declare “analytics” as a global variable
Should I declare it as a local variable and initialize it in every single scene?
Thanks for your help.
Paolo G