From e22c08ac6807b7d33f2f36a6d54ae64bbf09bf55 Mon Sep 17 00:00:00 2001 From: Daniel Bisgrove Date: Fri, 13 Sep 2024 14:43:21 -0400 Subject: [PATCH] Changing the a and button elements that run a function to have a href of "javascript:void(0)", so GTM registers them as links and fires a `gtm.click` event when they are clicked. --- .../content-button.component.html | 1 + .../content-link/content-link.component.html | 2 +- .../tract-page/tract-page.component.html | 26 ++++++++++++++----- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/app/page/component/content-button/content-button.component.html b/src/app/page/component/content-button/content-button.component.html index 742987ad0..15726e396 100644 --- a/src/app/page/component/content-button/content-button.component.html +++ b/src/app/page/component/content-button/content-button.component.html @@ -13,6 +13,7 @@ class="button" [ngStyle]="{ 'background-color': buttonBgColor, color: buttonTextColor }" (click)="formAction()" + href="javascript:void(0)" >{{ buttonText }} diff --git a/src/app/page/component/content-link/content-link.component.html b/src/app/page/component/content-link/content-link.component.html index afb68966d..4e9a1c791 100644 --- a/src/app/page/component/content-link/content-link.component.html +++ b/src/app/page/component/content-link/content-link.component.html @@ -1,5 +1,5 @@ diff --git a/src/app/page/component/tract-page/tract-page.component.html b/src/app/page/component/tract-page/tract-page.component.html index c0567c226..1a7f96f1d 100644 --- a/src/app/page/component/tract-page/tract-page.component.html +++ b/src/app/page/component/tract-page/tract-page.component.html @@ -43,30 +43,44 @@ - + > - + - + - + >