-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtracker-events.js
More file actions
42 lines (39 loc) · 1.55 KB
/
Copy pathtracker-events.js
File metadata and controls
42 lines (39 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { logAnalyticEvent } from "./firebase-analytics";
const githubProfile = document.getElementById("github-profile");
githubProfile.addEventListener("click", () => {
logAnalyticEvent("github-profile");
});
const stackoverflowProfile = document.getElementById("stackoverflow-profile");
stackoverflowProfile.addEventListener("click", () => {
logAnalyticEvent("stackoverflow-profile");
});
const wordpressProfile = document.getElementById("wordpress-profile");
wordpressProfile.addEventListener("click", () => {
logAnalyticEvent("wordpress-profile");
});
const linkedinProfile = document.getElementById("linkedin-profile");
linkedinProfile.addEventListener("click", () => {
logAnalyticEvent("linkedin-profile");
});
const flickrProfile = document.getElementById("flickr-profile");
flickrProfile.addEventListener("click", () => {
logAnalyticEvent("flickr-profile");
});
const nakagawaactivityProject = document.getElementById(
"nakagawaactivity-project"
);
nakagawaactivityProject.addEventListener("click", () => {
logAnalyticEvent("nakagawaactivity-project");
});
const kanjiholicsProject = document.getElementById("kanjiholics-project");
kanjiholicsProject.addEventListener("click", () => {
logAnalyticEvent("kanjiholics-project");
});
const rustyChessProject = document.getElementById("rusty-chess-project");
rustyChessProject.addEventListener("click", () => {
logAnalyticEvent("rusty-chess-project");
});
const profileAvatar = document.getElementById("profile-avatar");
profileAvatar.addEventListener("mouseover", () => {
logAnalyticEvent("profile-avatar");
});