import { IAnalytics , IEventArgs , TraitsMap , UserIdentificationStr , IPageEvent , IAnalyticsUser } from "../IAnalytics" ; import { RendererAnalytics } from "../../ga/RendererAnalytics" ; /**
 * System that just uses the legacy RendererAnalytics until we do away with GA.
 */ export class GAAnalytics implements IAnalytics { public event ( evt ) { if ( navigator . onLine ) { RendererAnalytics . event ( evt ) ; } } public event2 ( event , data ? ) { if ( navigator . onLine ) { RendererAnalytics . event ( { category : 'misc' , action : 'event' } ) ; } } public page ( event ) { if ( navigator . onLine ) { RendererAnalytics . pageview ( event . locationCanonicalized ) ; } } public identify ( user ) { } public traits ( map ) { } public version ( version ) { } public heartbeat ( ) { } public logout ( ) { } }