Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 61

awesome123
Aspiring developer
Profile
Posts: 132
Reg: Dec 27, 2011
location unknow...
2,320
07/26/13 09:03 PM (12 years ago)

BTA Design menu - tracking events

hi guys! how are you all doing? i'm trying to set up an event tracker for bta design menu i simply want to track which button gets clicked! i've managed to track the button click already by putting my event tracker inside the tableView:didSelectRowAtIndexPath method however i can't track which button is getting clicked! i've tried getting the loadScreenNickname variable and also tried this one NSString *titleText = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"titleText" defaultValue:@""]; and i haven't made it work too.. do i need to connect it somewhere so it detects which button gets clicked? what am i missing here? :D
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/26/13 09:16 PM (12 years ago)
You're in the right neighborhood... the method 'didSelectRowAtIndexPath' *is* the menu button being clicked. If it's like the other BT Menus (Sorry, I don't have the BTA Design) the information is held in your 'screen data' which is usually itemId, itemNickname, and itemType, as well as any json variables (jsonvars) that were included in the menu selection. I'd try something like NSString *buttonNickPressed = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"itemNickname" defaultValue:@""]; and see if that's any better... Cheers! -- Smug
 
awesome123
Aspiring developer
Profile
Posts: 132
Reg: Dec 27, 2011
location unknow...
2,320
like
07/27/13 12:46 AM (12 years ago)
hi smug! already tried that! :D i'll look more into it though! thanks!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/27/13 01:03 AM (12 years ago)
Keep digging... you're in the right spot. It's a matter of finding the magic bullet. try [BT_debugger showIt:self theMessage:[NSString stringWithFormat:@"Json Value: %@", [BT_strings getJsonPropertyValue:thisMenuItem.jsonVars nameOfProperty:@"itemNickname" defaultValue:@""]]]; place it under : "if([thisMenuItem jsonVars] != nil) {" and keep trying different variables until you come across the one you want. Cheers! -- Smug
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
07/27/13 07:09 AM (12 years ago)
You may want to consider Flurry. You can set up custom events or track everything that happens in a user session. Mike
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
10/04/13 01:00 PM (12 years ago)
how would you form the custom events in flurry for that? I’d like to track what screens are being viewed most often?
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
10/04/13 01:12 PM (12 years ago)
Flurry.com There are instructions for Android and iOS. Mike
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
10/04/13 01:32 PM (12 years ago)
Thanks Mike... heres what I mean... This is how flurry recommends their event code structure: [Flurry logEvent:@"Article_Read" withParameters:articleParams timed:YES]; so what I want to know is...how i apply that to a case like tracking what buttons are pressed on a menu screen... or even more simply, what screen is being viewed by a user. [Flurry logEvent:@"Viewed_Screen" withParameters:?????? timed:YES]; ???? - so how do I make this be filled with the "screen nickname" as identified in the control panel/JSON? Thanks €
 

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.