Skip to content

Instantly share code, notes, and snippets.

@naoyeye
Created December 3, 2014 12:08
Show Gist options
  • Select an option

  • Save naoyeye/807843c98a24a401d901 to your computer and use it in GitHub Desktop.

Select an option

Save naoyeye/807843c98a24a401d901 to your computer and use it in GitHub Desktop.
// 微博分享
trackEvent({category: 'movie2014', action: 'share', label: 'weibo'});
// 微信好友分享
trackEvent({category: 'movie2014', action: 'share', label: 'wechat-friend'});
// 微信朋友圈分享
trackEvent({category: 'movie2014', action: 'share', label: 'wechat-timeline'});
// 每个电影点击喜欢的 的数据
trackEvent({category: 'movie2014', action: 'like', label: '这里是所点击的视频的 id'});
// 每个电影点击播放的 的数据
trackEvent({category: 'movie2014', action: 'play', label: '这里是所点击的视频的 id'});
// 点击 我喜欢的电影页 的数据
// 如果只想知道点击多少次的话,这里的 label 可以为空字符串
trackEvent({category: 'movie2014', action: 'list', label: ''});
// 通过 我喜欢的电影页 里的台词去详情页的数据
trackEvent({category: 'movie2014', action: 'lines', label: '这里是所点击的视频的 id'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment