Google Analytics in IOS(六)—— 社交

       这是官方文档的,部分段落没有翻译(一是能力有限,二是也有些翻译过来就变味了)。如有错误,欢迎指正。

Overview

       社交测量允许你使用多种社交网络分享来测量一个用户的交互,推荐窗体小部件植入你的内容中。
社会互动由以下字段构成:
  • NSString network – represents the social network with which the user is interacting (e.g. Google+, Facebook, Twitter, etc.).
  • NSString action – represents the social action taken (e.g. Like, Share, +1, etc.).
  • NSString target (optional) – represents the content on which the social action is being taken (i.e. a specific article or video).
    通过Google Analytics SDK for iOS v2.x收集的社会交往数据只适用于自定义报告。(什么是自定义报告???)

Implementation

        To send a social interaction to Google Analytics, call sendSocial:withAction:withTarget: as in the following example, where an interaction with a Twitter Tweet button is measured on the Analytics developer site homepage:
[tracker sendSocial:@"Twitter"
          withAction:@"Tweet"
          withTarget:@"https://developers.google.com/analytics"];  // Send social interaction.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值