Use OWATracker directly
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
|
|
||||||
declare var owa_cmds: Array<any>;
|
declare var OWATracker;
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
@@ -11,8 +11,7 @@ export class AnalyticsService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public trackPageHit(pageName: String) {
|
public trackPageHit(pageName: String) {
|
||||||
if (typeof owa_cmds === 'object') {
|
OWATracker.setPageTitle(pageName);
|
||||||
owa_cmds.push(pageName);
|
OWATracker.trackPageView();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user