Download the analytics sdk for ios such as gai.h etc
after that
import gai.h in main file after that
page view Analytics
after that
import gai.h in main file after that
page view Analytics
id<GAITracker> tracker = [[GAI sharedInstance] trackerWithTrackingId:@"xxxxxxxxxx"];
[tracker trackView:@"sdajsbdbjjdhdkbfk"];
Event Analytics:
id<GAITracker> tracker = [[GAI sharedInstance] trackerWithTrackingId:@"xxxxxxxx"];
//[tracker trackEventWithCategory:@"action" withAction:@"xxx" withLabel:@"xxx" withValue:1];
[tracker trackEventWithCategory:@"dewdedewddr"
withAction:@"ewrewrfew"
withLabel:@"ewfrewtete"
withValue:[NSNumber numberWithInt:1]];
No comments:
Post a Comment