Skip to content

Commit

Permalink
📈 add extra_gb_link_clicked event
Browse files Browse the repository at this point in the history
  • Loading branch information
prabapro committed Sep 28, 2024
1 parent 6ce283b commit 674c75a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/popup/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,9 @@ h1 sup {
color: #1b5e20;
}

.clickable-extra-gb {
text-decoration: underline;
cursor: pointer;
}

.status-normal-extra {
background-color: #4caf50;
color: white;
background-color: #0ca816;
color: #fff;
}

.status-throttled {
Expand All @@ -100,6 +95,11 @@ h1 sup {
color: #424242;
}

.clickable-extra-gb {
text-decoration: underline;
cursor: pointer;
}

main {
display: flex;
flex-direction: column;
Expand Down
8 changes: 7 additions & 1 deletion src/popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,13 @@ const updateAccountInfo = (accountId, speedStatus, combinedData) => {
'.clickable-extra-gb'
);
clickableElement.addEventListener('click', () => {
navigateToExtraGBGroup(goToPage);
navigateToExtraGBGroup(
goToPage,
sendEvent('extra_gb_link_clicked', {
action: 'navigation',
group_name: 'Extra GB',
})
);
});
} else {
speedStatusElement.textContent = formattedStatus.text;
Expand Down

0 comments on commit 674c75a

Please sign in to comment.