UNPKG

ngx-analytics

Version:

Vendor-agnostic web analytics for Angular2 applications, based on angulartics2

18 lines (17 loc) 740 B
import { Transition, TransitionService } from '@uirouter/core'; import { RouterlessTracking, TrackNavigationEnd } from 'ngx-analytics'; import { Observable } from 'rxjs/Observable'; /** * Track Route changes for applications using UI-Router * * @link https://ui-router.github.io/ng2/docs/latest/ * * referenced: https://github.com/ui-router/sample-app-angular/blob/9adb533b85c0f0fccef23968489cca0a5ec84654/src/app/util/ga.ts */ export declare class UIRouterTracking implements RouterlessTracking { private transitionService; constructor(transitionService: TransitionService); path(trans: Transition): string; trackLocation(settings: any): Observable<TrackNavigationEnd>; prepareExternalUrl(url: string): string; }