我在 womany 的 ga 實戰
Post on 15-Jul-2015
1.203 Views
Preview:
TRANSCRIPT
我在 womany 的 GA 實戰 11個好不容易摸索出來的眉眉⾓角⾓角
GDG Taipei #19
Event Tracking
if (window.ga) ga('send', 'event', 'website-tracking', 'SlideAds', me.campaignID + '_show', {'nonInteraction': 1});
if (window.ga) ga('send', 'event', 'website-tracking', 'SlideAds', me.campaignID + '_click', {'nonInteraction': 1});
https://developers.google.com/analytics/devguides/collection/analyticsjs/events
ga('send', 'event', 'category', 'action', 'label', value);
Event Tracking
These limits apply to the Web Property / Property / Tracking ID
10 million hits per month per property
This applies to analytics.js, Android iOS SDK, and the Measurement Protocol
200,000 hits per user per day 500 hits per session not including ecommerce (item and transaction hit types)
https://developers.google.com/analytics/devguides/collection/ios/limits-quotas
Dashboards
In-Page Analytics + Enhanced Link Attribution
https://support.google.com/analytics/answer/2558867In-Page Analytics + Enhanced Link Attribution
ga('create', 'UA-XXXX-X'); ga('require', 'linkid', 'linkid.js'); ga('send', 'pageview');
Property Settings
View & Filter
View & Filter
https://support.google.com/analytics/answer/1034342/#Next
UserID / Custom Dimension
https://support.google.com/analytics/answer/1034342/#Next
if (window.user_profile && user_profile.login) ga('set', '&uid', user_profile.id);
https://support.google.com/analytics/answer/1033861
if (window.user_profile && user_profile.login) ga('set', 'dimension1', ‘member’);
UserID / Custom Dimension
Content Grouping
https://support.google.com/analytics/answer/2853423
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)}, …
ga('create', 'UA-19900484-3', ‘auto'); ga('send', 'pageview');
if (window.ga) ga('send', 'pageview', { 'page': document.location.pathname + document.location.search, 'title': document.title });
https://developers.google.com/analytics/devguides/collection/analyticsjs/pages
Page View
Custom Alerts
https://support.google.com/analytics/answer/1033021
View > Custom Alerts
Custom Alerts
@irvinfly | slideshare.net / irvinfly!
top related