import MtaH5 from 'mta-h5-analysis' ; const log = require ( 'debug' ) ( 'plugin:ana' ) ; MtaH5 . init ( { sid : '500713631' , cid : '500713655' , autoReport : 0 , senseHash : 1 , senseQuery : 0 , performanceMonitor : 0 , ignoreParams : [ ] } ) ; export function AnaPlugin ( ) { return { pgv ( ) { try { log ( 'pgv' ) ; MtaH5 . pgv ( ) ; } catch ( e ) { } } , clickStat ( ctx ) { try { const { evtName , param } = ctx ; log ( 'clickStat' , ctx ) ; MtaH5 . clickStat ( evtName , param ) ; } catch ( e ) { } } } ; }