trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
01/05/13 01:43 PM (13 years ago)

Optional Flurry Integrations

I've implemented Flurry into my Android app now I want to track each screen to see what people look at the most. How do I carry this out? What is an onEvent? Which documents do you put the code in and where? As an example: FlurryAgent.logEvent(String eventId, Map parameters) Use onEvent to track user events that happen during a session. You can track how many times each event occurs, what order events happen in, as well as what the most common parameters are for each event. This can be useful for measuring how often users take various actions, or what sequences of actions they usually perform. Each project supports a maximum of 100 events, and each event id, parameter key, and parameter value must be no more than 255 characters in length. Each event can have no more than 10 parameters. The parameter argument is optional, and may be null. I have no idea where to put that code?
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/05/13 02:49 PM (13 years ago)
Great video on the Flurry site- http://www.youtube.com/watch?v=VaGL_nYTuCI&feature=youtu.be Its really not much more than adding a line of code inside an existing BT method. Import flurry into the .m file of the plugin, add a single [Flurry logEvent:@"Event 1 I'm tracking"]; somewhere inside the method Now in your Flurry CP when that method fires, it'll be listed in your Events with that name and how many times it's has 'occured'. great documentation/code snippets on the site. You can get way more complex than this, but that's the extent I'm using it to currently to know when a pdf is opened in an app. love Flurry, awesome stuff. What's after Flurry?
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/05/13 03:26 PM (13 years ago)
Thanks so much for the info. I really need to implement this stuff for clients so I can track coupon usage and screen views. Does the "method" mean the file with .m?
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/05/13 03:46 PM (13 years ago)
I was looking for Android answers here but oh well. [Flurry logEvent:@"Event 1 I'm tracking"]; I would change the Event 1 in the above example to something I'll remember right?
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/05/13 04:31 PM (13 years ago)
Dhoh! didn't pay attention to Android in post. But it's the same concept and just as simple. Takes a min to switch gears, I'm no Android expert but copying from Flurry site, drop this line- FlurryAgent.logEvent("PDF coupon screen accessed"); in the .java file src/com folder open up BT_screen_pdfDoc.java in something like notepad++ and drop that line in the onCreate or look for BT debugger statements in your code. (ios or Android) These are places "key" things seem to happen. Which is why those are there. Watch the logcat when your app runs for them. These events would be easy to track by dropping that logEvent code above or below the debugger statement that looks 'like' this.... BT_debugger.showIt(activityName + ":onCreate"); just remember to import flurry into any .java file you add it to. (.m for ios) and tracking multiple pdf screens like this in an app.... would require dropping some JSON variable in the plugin screen so you know which one the 'event' is tied to. would have to think that out more... and correct - you can change the text inside the quotes to "anything" like "go irish!" that you will recall. you can change it in the BT debuggers too if it helps you follow/find an event.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
01/05/13 04:52 PM (13 years ago)
Just getting into Flurry myself and it's interesting stuff for sure. Great tips/help here @ATRAIN53 Thanks:) ian
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/05/13 05:26 PM (13 years ago)
Thanks! Great info! What if I wanted to do track demographics. I've got the code don't worry about that. Would I place the code in the BT_activity_base.java or the _appDelegate.m?
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
01/05/13 06:00 PM (13 years ago)
Has anyone gotten recent Apple app approval with flurry? see http://support.flurry.com/index.php?title=Flurry_SDKs_for_iOS&oldid=2060 Recent Apple Rejections Recently, there have been many news stories and several developer inquiries related to Apple's rejection of the use of the iOS UDID. It appears that these rejections are not based on an accelerated iOS UDID deprecation schedule, but on developers' failure to obtain end user consent for the collection and sharing of end user data. Please obtain end user consent to collect and share any end user data, including without limitation, the iOS UDID with any third parties, including Flurry. To determine how to best obtain end user consent, please contact your legal representative.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.