1
我有一个关于iOS中的Google Analytics和事件跟踪的问题。在我的应用程序中,我有一个tableView(下面显示的一些代码),用户可以选择不同的书籍。我希望能够跟踪最常用的书籍。GA事件跟踪中的动态标签名称?
但是,您如何跟踪动态事件?在Google分析门户中,您必须指定标签名称?但如果标签名称几乎可以做任何事情呢?我是否真的需要为所有40本不同的书籍创建40个不同的活动,才能在应用中进行选择?有没有可能以良好的方式跟踪这个问题? Thx的所有帮助/关心
我在说的代码:withLabel:self.getCurrentBookName < ---几乎可以导致任何书名。
- (UITableViewCell *)tableView:(UITableView *)pTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *cellName = @"";
UITableViewCell *cell = nil;
if (indexPath.section == 0)
{
if (indexPath.row == 0)
{
cellName = @"BookCell";
cell = [pTableView dequeueReusableCellWithIdentifier:cellName];
UILabel *bookField = (UILabel *)[cell viewWithTag:1];
bookField.text = [self getCurrentBookName];
[self.tracker sendEventWithCategory:@"App Setting"
withAction:@"User selects book:"
withLabel:self.getCurrentBookName
withValue:[NSNumber numberWithInt:100]];
}
}