Trying to add page tracking
This commit is contained in:
@@ -1,24 +1,29 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {AfterContentInit, Component, OnInit} from '@angular/core';
|
||||
import {AnalyticsService} from '../analytics.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-contact',
|
||||
templateUrl: './contact.component.html',
|
||||
styleUrls: ['./contact.component.css']
|
||||
})
|
||||
export class ContactComponent {
|
||||
export class ContactComponent implements AfterContentInit {
|
||||
|
||||
constructor() { }
|
||||
constructor(private analytics: AnalyticsService) {
|
||||
}
|
||||
|
||||
ngAfterContentInit(): void {
|
||||
this.analytics.trackPageHit('Contact');
|
||||
}
|
||||
|
||||
linkedInClicked() {
|
||||
window.open("https://www.linkedin.com/in/cameron-cordes-3b166583/")
|
||||
window.open('https://www.linkedin.com/in/cameron-cordes-3b166583/');
|
||||
}
|
||||
|
||||
githubClicked() {
|
||||
window.open("https://github.com/Stampede10343")
|
||||
window.open('https://github.com/Stampede10343');
|
||||
}
|
||||
|
||||
emailClicked() {
|
||||
window.open("mailto:cameronc.dev@gmail.com")
|
||||
window.open('mailto:cameronc.dev@gmail.com');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user