2 title: Google Analytics's analytics.js
7 Google Analytics's analytics.js is deprecated.
13 ga('create', 'UA-XXXX-Y', 'auto')
14 ga('create', 'UA-XXXX-Y', { userId: 'USER_ID' })
18 ga('send', 'pageview')
19 ga('send', 'pageview', { 'dimension15': 'My custom dimension' })
25 ga('send', 'event', 'button', 'click', {color: 'red'});
29 ga('send', 'event', 'button', 'click', 'nav buttons', 4);
30 /* ^category ^action ^label ^value */
36 ga('send', 'exception', {
37 exDescription: 'DatabaseError',