Skip to content

Commit

Permalink
Add SnowPlow tracking to beta link AB#16796
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeLyttle committed Jul 15, 2024
1 parent 50571a1 commit c621ba0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,16 @@ function removeQuickLink(targetQuickLink: QuickLink): Promise<void> {
});
}
function handleClickBetaLink(): void {
trackingService.trackEvent({
action: Action.Visit,
text: Text.ExternalLink,
destination: Destination.HealthGatewayBeta,
origin: Origin.Home,
});
window.open(betaUrl.value, "_self");
}
function handleClickHealthRecords(): void {
trackingService.trackEvent({
action: Action.Visit,
Expand Down Expand Up @@ -412,7 +422,11 @@ watch(vaccineRecordState, () => {
>
<span class="text-body-1">
You are invited to try the
<a :href="betaUrl" target="_self" class="text-link"
<a
:href="betaUrl"
target="_self"
class="text-link"
@click.prevent="handleClickBetaLink()"
>new beta version of Health Gateway</a
>
and provide your feedback.
Expand Down
1 change: 1 addition & 0 deletions Apps/WebClient/src/ClientApp/src/plugins/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const enum Destination {
BcGovImmunizations = "BC Gov Immunizations",
BcVaccineCard = "BC Vaccine Card",
BookVaccine = "Book a Vaccine",
HealthGatewayBeta = "Health Gateway Beta",
ImmunizationRecommendationDialog = "Immunization Recommendations Dialog",
OrganDonorRegistration = "Organ Donor Registration",
PrimaryCare = "Primary Care",
Expand Down

0 comments on commit c621ba0

Please sign in to comment.