mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 00:10:14 +01:00
chore(analytics): track theme switch and start search events
This commit is contained in:
parent
6ef5f90f7c
commit
c28cf8f2d4
4 changed files with 17 additions and 3 deletions
|
|
@ -2,6 +2,7 @@ import { Component, Input, OnInit } from '@angular/core';
|
|||
|
||||
import { NbMenuService, NbSidebarService } from '@nebular/theme';
|
||||
import { UserService } from '../../../@core/data/users.service';
|
||||
import { AnalyticsService } from '../../../@core/utils/analytics.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-header',
|
||||
|
|
@ -19,7 +20,8 @@ export class HeaderComponent implements OnInit {
|
|||
|
||||
constructor(private sidebarService: NbSidebarService,
|
||||
private menuService: NbMenuService,
|
||||
private userService: UserService) {
|
||||
private userService: UserService,
|
||||
private analyticsService: AnalyticsService) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
|
@ -40,4 +42,8 @@ export class HeaderComponent implements OnInit {
|
|||
goToHome() {
|
||||
this.menuService.navigateHome();
|
||||
}
|
||||
|
||||
startSearch() {
|
||||
this.analyticsService.trackEvent('startSearch');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue