From 378cde66a0f26dbaf523d3bcaba0d94acb9b8f84 Mon Sep 17 00:00:00 2001 From: vhhoang-axonivy Date: Mon, 18 Nov 2024 14:07:06 +0700 Subject: [PATCH] Reserved Matomo for later to create release (#236) Co-authored-by: Hoang Vu Huy --- marketplace-ui/src/app/app.config.ts | 16 ++++++++-------- .../product-detail-version-action.component.html | 12 ------------ .../product-detail-version-action.component.ts | 2 -- .../product-filter/product-filter.component.html | 6 +----- .../product-filter/product-filter.component.ts | 3 +-- .../src/environments/environment.development.ts | 5 +++-- .../src/environments/environment.staging.ts | 5 +++-- marketplace-ui/src/environments/environment.ts | 5 +++-- 8 files changed, 19 insertions(+), 35 deletions(-) diff --git a/marketplace-ui/src/app/app.config.ts b/marketplace-ui/src/app/app.config.ts index 2d91fcd5..2b8b2a52 100644 --- a/marketplace-ui/src/app/app.config.ts +++ b/marketplace-ui/src/app/app.config.ts @@ -7,8 +7,6 @@ import { MARKED_OPTIONS, MarkdownModule } from 'ngx-markdown'; import { markedOptionsFactory } from './core/configs/markdown.config'; import { httpLoaderFactory } from './core/configs/translate.config'; import { apiInterceptor } from './core/interceptors/api.interceptor'; -import { provideMatomo, withRouter } from 'ngx-matomo-client'; -import { environment } from '../environments/environment'; const scrollConfig: InMemoryScrollingOptions = { scrollPositionRestoration: 'disabled', @@ -23,12 +21,14 @@ export const appConfig: ApplicationConfig = { provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes, inMemoryScrollingFeature), provideHttpClient(withFetch(), withInterceptors([apiInterceptor])), - provideMatomo({ - siteId: environment.matomoSiteId, - trackerUrl: environment.matomoTrackerUrl, - }, - withRouter(), - ), + + // Disabled for later HTTPS implementation + // provideMatomo({ + // siteId: environment.matomoSiteId, + // trackerUrl: environment.matomoTrackerUrl, + // }, + // withRouter(), + // ), importProvidersFrom( TranslateModule.forRoot({ loader: { diff --git a/marketplace-ui/src/app/modules/product/product-detail/product-detail-version-action/product-detail-version-action.component.html b/marketplace-ui/src/app/modules/product/product-detail/product-detail-version-action/product-detail-version-action.component.html index 4fb9bca6..c12554e9 100644 --- a/marketplace-ui/src/app/modules/product/product-detail/product-detail-version-action/product-detail-version-action.component.html +++ b/marketplace-ui/src/app/modules/product/product-detail/product-detail-version-action/product-detail-version-action.component.html @@ -5,9 +5,6 @@ id="install-button" name="Install button" #installButton - [matomoClickCategory]="MatomoCategory.BUTTON" - [matomoClickAction]="MatomoAction.CLICK" - [matomoClickName]="installButton.name + ' - ' + getTrackingEnvironmentBasedOnActionType()" [lang]="languageService.selectedLanguage()" class="btn btn__install flex-grow-1 me-lg-2" data-bs-toggle="tooltip" @@ -33,9 +30,6 @@ id="download-button" name="Download button" #artifactDownloadButton - [matomoClickCategory]="MatomoCategory.BUTTON" - [matomoClickAction]="MatomoAction.CLICK" - [matomoClickName]="artifactDownloadButton.name + ' - ' + getTrackingEnvironmentBasedOnActionType()" [lang]="languageService.selectedLanguage()" class="btn btn__download btn-secondary primary-bg flex-grow-1" type="button" @@ -122,9 +116,6 @@