From ac5fc67d21f6438c7cab98fa0406de8d5ae76c2b Mon Sep 17 00:00:00 2001 From: Nicholas Albion Date: Thu, 14 Jan 2016 23:54:30 +1100 Subject: [PATCH] expanded upon event API --- google.analytics/ga-tests.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google.analytics/ga-tests.ts b/google.analytics/ga-tests.ts index 226d1432b6..dd03e0d253 100644 --- a/google.analytics/ga-tests.ts +++ b/google.analytics/ga-tests.ts @@ -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});