1 | import { Angulartics2, GoogleTagManagerSettings } from 'angulartics2';
|
2 | export declare class GoogleTagManagerDefaults implements GoogleTagManagerSettings {
|
3 | userId: any;
|
4 | }
|
5 | export declare class Angulartics2GoogleTagManager {
|
6 | protected angulartics2: Angulartics2;
|
7 | constructor(angulartics2: Angulartics2);
|
8 | startTracking(): void;
|
9 | pageTrack(path: string): void;
|
10 | /**
|
11 | * Send Data Layer
|
12 | *
|
13 | * @layer data layer object
|
14 | */
|
15 | pushLayer(layer: any): void;
|
16 | /**
|
17 | * Send interactions to the dataLayer, i.e. for event tracking in Google Analytics
|
18 | *
|
19 | * @param action associated with the event
|
20 | */
|
21 | eventTrack(action: string, properties: any): void;
|
22 | /**
|
23 | * Exception Track Event in GTM
|
24 | *
|
25 | */
|
26 | exceptionTrack(properties: any): void;
|
27 | /**
|
28 | * Set userId for use with Universal Analytics User ID feature
|
29 | *
|
30 | * @param userId used to identify user cross-device in Google Analytics
|
31 | */
|
32 | setUsername(userId: string): void;
|
33 | }
|