Thursday, February 20, 2014

Protocols and Analytics

Things I learned today:
1.  Protocol: Defining protocols declares the methods expected to be sued for a particular situation. Protocols are implemented in the classes conforming to the protocol.

a.  Syntax of Protocol:
@protocol ProtocolName
@required
// list of required methods
@optional
// list of optional methods
@end

b.  Syntax for conforming to Protocol
@interface MyClass : NSObject <MyProtocol>
...
@end
c.    Protocols allow you to eliminate clutter with interface methods!
d.  Required methods: Once protocol is implemented, the required methods MUST be implemented or the compiler will complain.
e.  Ran First: Once implemented, protocol methods MUST run first before other methods can be called. Check to make sure this is true
2.  Google Analytics vs. Mixpanel
a.  Google Analytics: Is a free resource to track page views and number of unique visitors. This is a great resource to see how much raw traffic you are getting to your site and from what geographic regions.

b.  Mixpanel Tracks Events: This is good for seeing how far a user gets down the sales funnel before they stop, or how often a feature is being used.

No comments:

Post a Comment