expanded upon event API

This commit is contained in:
Nicholas Albion
2016-01-14 23:54:30 +11:00
parent 2acb434381
commit ac5fc67d21
+3 -3
View File
@@ -24,9 +24,9 @@ describe('UniversalAnalytics', () => {
ga('send', 'pageview');
ga('send', 'pageview', {some: 'details'});
ga('send', 'event', 'Videos', 'play', 'Fall Campaign');
ga('send', {hitType: 'event', eventCategory: 'Videos', eventAction: 'play', eventLabel: 'Fall Campaign'});
ga('send', 'event', 'Videos', 'play', 'Fall Campaign', {nonInteraction: true});
ga('send', 'pageview', '/page');
ga('send', {hitType: 'event', eventCategory: 'Videos', eventAction: 'play', eventLabel: 'Fall Campaign'});
ga('send', 'event', 'Videos', 'play', 'Fall Campaign', {nonInteraction: true});
ga('send', 'pageview', '/page');
ga('send', 'social', {'socialNetwork': 'facebook', 'socialAction': 'like', 'socialTarget': 'http://foo.com'});
ga('send', 'social', {'socialNetwork': 'google+', 'socialAction': 'plus', 'socialTarget': 'http://foo.com'});
ga('send', 'timing', {'timingCategory': 'category', 'timingVar': 'lookup', 'timingValue': 123});