import { Component } from '@angular/core' ; import { MatomoTracker } from 'ngx-matomo' ; /**
 *
 */ @ Component ( { selector : 'app-media' , templateUrl : './media.component.html' , styleUrls : [ ] , } ) export class MediaComponent { param matomoTracker constructor ( private readonly matomoTracker ) { } onLike ( ) { console . log ( 'Like!' ) ; this . matomoTracker . trackEvent ( 'Media' , 'Button pressed' , 'Like' ) ; } onShare ( ) { console . log ( 'Share!' ) ; this . matomoTracker . trackEvent ( 'Media' , 'Button pressed' , 'Share' ) ; } }