Skip to content

Commit

Permalink
Added Matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Ballek committed Oct 3, 2023
1 parent 0e341b1 commit 9213f41
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions source/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions source/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"ngx-dropzone": "^3.1.0",
"ngx-logger": "^5.0.11",
"ngx-mat-select-search": "^7.0.0",
"ngx-matomo-client": "^5.0.4",
"ngx-sharebuttons": "^11.0.0",
"notiflix": "^3.2.6",
"rxjs": "~7.5.0",
Expand Down
8 changes: 7 additions & 1 deletion source/frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ import {
import {WithCredentialsInterceptor} from "./interceptors/with-credentials.interceptor";
import { TermsOfServicesComponent } from './components/terms-of-services/terms-of-services.component';
import {PrivacyPolicyComponent} from "./components/privacy-policy/privacy-policy.component";
import { provideMatomo, withRouter } from 'ngx-matomo-client';

registerLocaleData(localeCs, 'cs')

Expand Down Expand Up @@ -357,7 +358,12 @@ export function createTranslateLoader(http: HttpClient) {
{provide: LOCALE_ID, useValue: 'cs'},
{provide: MatPaginatorIntl, useClass: NgxTranslateMatPaginatorIntl},
{provide: TitleStrategy, useClass: TranslatedTitleStrategy},
{provide: HTTP_INTERCEPTORS, useClass: WithCredentialsInterceptor, multi: true}
{provide: HTTP_INTERCEPTORS, useClass: WithCredentialsInterceptor, multi: true},
provideMatomo({
trackerUrl: '//matomo.opendatalab.cz/matomo.php',
siteId: '6',
scriptUrl: '//matomo.opendatalab.cz/matomo.js'
}, withRouter())
],
bootstrap: [AppComponent]
})
Expand Down

0 comments on commit 9213f41

Please sign in to comment.