Skip to content

Commit

Permalink
fix(analytics): track navigate analytics better
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria authored Mar 20, 2023
1 parent 36b12f6 commit c7b4bb4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<ng-container *ngFor="let p of gatheringTradeskills; let i = index">
<ng-container *ngIf="{ isUnlocked: p.unlocked | async } as tsData">
<ion-item routerDirection="root" [routerLink]="['/game', characterSlot, p.url]" lines="none" detail="false" routerLinkActive="selected" [disabled]="!tsData.isUnlocked" [analyticsClick]="'Navigate:Gathering' + p.title">
<ion-item routerDirection="root" [routerLink]="['/game', characterSlot, p.url]" lines="none" detail="false" routerLinkActive="selected" [disabled]="!tsData.isUnlocked" [analyticsClick]="'Navigate:Gathering:' + p.title">
<app-game-icon slot="start" [icon]="p.icon" [ngxTippy]="p.title" [tippyProps]="{ placement: 'right' }"></app-game-icon>
</ion-item>
</ng-container>
Expand All @@ -41,7 +41,7 @@

<ng-container *ngFor="let p of refiningTradeskills; let i = index">
<ng-container *ngIf="{ isUnlocked: p.unlocked | async } as tsData">
<ion-item routerDirection="root" [routerLink]="['/game', characterSlot, p.url]" lines="none" detail="false" routerLinkActive="selected" [disabled]="!tsData.isUnlocked" [analyticsClick]="'Navigate:Refining' + p.title">
<ion-item routerDirection="root" [routerLink]="['/game', characterSlot, p.url]" lines="none" detail="false" routerLinkActive="selected" [disabled]="!tsData.isUnlocked" [analyticsClick]="'Navigate:Refining:' + p.title">
<app-game-icon slot="start" [icon]="p.icon" [ngxTippy]="p.title" [tippyProps]="{ placement: 'right' }"></app-game-icon>
</ion-item>
</ng-container>
Expand All @@ -51,7 +51,7 @@

<ng-container *ngFor="let p of peripheralTradeskills; let i = index">
<ng-container *ngIf="{ isUnlocked: p.unlocked | async } as tsData">
<ion-item routerDirection="root" [routerLink]="['/game', characterSlot, p.url]" lines="none" detail="false" routerLinkActive="selected" [disabled]="!tsData.isUnlocked" [analyticsClick]="'Navigate:Peripheral' + p.title">
<ion-item routerDirection="root" [routerLink]="['/game', characterSlot, p.url]" lines="none" detail="false" routerLinkActive="selected" [disabled]="!tsData.isUnlocked" [analyticsClick]="'Navigate:Peripheral:' + p.title">
<app-game-icon slot="start" [icon]="p.icon" [ngxTippy]="p.title" [tippyProps]="{ placement: 'right' }"></app-game-icon>
</ion-item>
</ng-container>
Expand Down Expand Up @@ -111,7 +111,7 @@
detail="false"
routerLinkActive="selected"
[disabled]="!tsData.isUnlocked"
[analyticsClick]="'Navigate:Gathering' + p.title">
[analyticsClick]="'Navigate:Gathering:' + p.title">
<app-game-icon slot="start" [icon]="p.icon"></app-game-icon>

<ion-label *ngIf="!tsData.isUnlocked" class="ion-text-wrap">
Expand Down Expand Up @@ -143,7 +143,7 @@
detail="false"
routerLinkActive="selected"
[disabled]="!tsData.isUnlocked"
[analyticsClick]="'Navigate:Refining' + p.title">
[analyticsClick]="'Navigate:Refining:' + p.title">
<app-game-icon slot="start" [icon]="p.icon"></app-game-icon>

<ion-label *ngIf="!tsData.isUnlocked" class="ion-text-wrap">
Expand Down Expand Up @@ -175,7 +175,7 @@
detail="false"
routerLinkActive="selected"
[disabled]="!tsData.isUnlocked"
[analyticsClick]="'Navigate:Peripheral' + p.title">
[analyticsClick]="'Navigate:Peripheral:' + p.title">
<app-game-icon slot="start" [icon]="p.icon"></app-game-icon>

<ion-label *ngIf="!tsData.isUnlocked" class="ion-text-wrap">
Expand Down

0 comments on commit c7b4bb4

Please sign in to comment.