GoogleAnalyst.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // GoogleAnalyst.h
  3. // iSales-NPD
  4. //
  5. // Created by Jack on 2017/3/28.
  6. // Copyright © 2017年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. 1. Track all screens and sessions.
  11. Network get_json:
  12. 2. Track user login and timing
  13. 3. When user clicks on “Add to cart”
  14. 4. user is just opening a model information to check on the item
  15. 5. user is using search/filter conditions on the app
  16. Search 、Account、Advance Search、Category Filter、Item Search Filter
  17. 6. If user is browsing a particular category on home screen(new collection, dining…..)
  18. 7. track the user location of sign-in
  19. 8. How long the user used the App
  20. AppDelegate
  21. */
  22. @interface GoogleAnalyst : NSObject
  23. + (void)trackScreen:(NSString *)screenName;
  24. + (NSString *)currentTrackScreen;
  25. + (void)trackEventCategory:(NSString *)category action:(NSString *)action label:(NSString *)label value:(NSNumber *)value;
  26. + (void)trackTimingWithCategory:(NSString *)category interval:(NSTimeInterval)loadTime name:(NSString *)name label:(NSString *)label;
  27. + (void)trackSignInUserID:(NSString *)userID;
  28. + (void)trackSignOut;
  29. + (void)trackProduct:(NSString *)productName action:(NSString *)action count:(NSNumber *)count;
  30. @end