diff --git a/src/app/@core/utils/analytics.service.ts b/src/app/@core/utils/analytics.service.ts index c964cf7d..73f13325 100644 --- a/src/app/@core/utils/analytics.service.ts +++ b/src/app/@core/utils/analytics.service.ts @@ -1,30 +1,30 @@ -import {Injectable} from '@angular/core'; -import {Router, NavigationEnd} from '@angular/router'; -import {Location} from '@angular/common'; +import { Injectable } from '@angular/core'; +import { NavigationEnd, Router } from '@angular/router'; +import { Location } from '@angular/common'; -import {filter} from 'rxjs/operator/filter'; +import { filter } from 'rxjs/operator/filter'; declare const ga: any; @Injectable() export class AnalyticsService { - private _enabled: boolean; + private enabled: boolean; - constructor(private _location: Location, private _router: Router) { - this._enabled = window.location.href.indexOf('akveo.com') >= 0; + constructor(private location: Location, private router: Router) { + this.enabled = false; } trackPageViews() { - if (this._enabled) { - filter.call(this._router.events, (event) => event instanceof NavigationEnd) + if (this.enabled) { + filter.call(this.router.events, (event) => event instanceof NavigationEnd) .subscribe(() => { - ga('send', {hitType: 'pageview', page: this._location.path()}); + ga('send', {hitType: 'pageview', page: this.location.path()}); }); } } trackEvent(eventName: string) { - if (this._enabled) { + if (this.enabled) { ga('send', 'event', eventName); } } diff --git a/src/app/@theme/components/footer/footer.component.ts b/src/app/@theme/components/footer/footer.component.ts index f16cf965..b1fb1c40 100644 --- a/src/app/@theme/components/footer/footer.component.ts +++ b/src/app/@theme/components/footer/footer.component.ts @@ -6,10 +6,10 @@ import { Component } from '@angular/core'; template: ` Created with ♥ by Akveo 2017
- - - - + + + +
`, }) diff --git a/src/app/@theme/layouts/one-column/one-column.layout.ts b/src/app/@theme/layouts/one-column/one-column.layout.ts index 6675dfda..b4d6e132 100644 --- a/src/app/@theme/layouts/one-column/one-column.layout.ts +++ b/src/app/@theme/layouts/one-column/one-column.layout.ts @@ -12,7 +12,7 @@ import { Component } from '@angular/core'; - + Support Us diff --git a/src/app/@theme/layouts/sample/sample.layout.ts b/src/app/@theme/layouts/sample/sample.layout.ts index 031713ca..8489e066 100644 --- a/src/app/@theme/layouts/sample/sample.layout.ts +++ b/src/app/@theme/layouts/sample/sample.layout.ts @@ -29,7 +29,7 @@ import 'rxjs/add/operator/delay'; responsive [right]="sidebar.id === 'right'"> - + Support Us diff --git a/src/app/@theme/layouts/three-columns/three-columns.layout.ts b/src/app/@theme/layouts/three-columns/three-columns.layout.ts index fe1e9ffe..447b23e5 100644 --- a/src/app/@theme/layouts/three-columns/three-columns.layout.ts +++ b/src/app/@theme/layouts/three-columns/three-columns.layout.ts @@ -12,7 +12,7 @@ import { Component } from '@angular/core'; - + Support Us diff --git a/src/app/@theme/layouts/two-columns/two-columns.layout.ts b/src/app/@theme/layouts/two-columns/two-columns.layout.ts index 4a41f22f..b7f3a674 100644 --- a/src/app/@theme/layouts/two-columns/two-columns.layout.ts +++ b/src/app/@theme/layouts/two-columns/two-columns.layout.ts @@ -12,7 +12,7 @@ import { Component } from '@angular/core'; - + Support Us diff --git a/src/index.html b/src/index.html index 35a4228b..71e67503 100644 --- a/src/index.html +++ b/src/index.html @@ -7,17 +7,6 @@ - - - - - Loading...