import { Component } from '@angular/core' ; import { MatomoTracker } from 'ngx-matomo' ; @ Component ( { selector : 'app-event' , templateUrl : './event.component.html' , styleUrls : [ ] , } ) export class EventComponent { param matomoTracker constructor ( private readonly matomoTracker ) { } /**
     * Handles the click on the 'Click Me' button.
     */ onClick ( ) { console . log ( 'Click!' ) ; this . matomoTracker . trackEvent ( 'Welcome' , 'Button pressed' , 'cta' ) ; } }