Capacitor Appmetrica plugin
Currently only works on ios, but android support will be coming soon
Available methods:
// TODO
Usage example:
- Add in
capacitor.config.json
{
"plugins": {
"Appmetrica": {
"apiKey": "Your API key"
}
}
- In your module (e.g.
app.module.ts
)
...
import { Appmetrica } from 'capacitor-appmetrica'
@NgModule({
...
providers: [
...
Appmetrica,
],
})
export class AppModule {}
- In your component or service (e.g.
analytics.service.ts
)
...
import { Appmetrica } from 'capacitor-appmetrica'
@Injectable()
export class AnalyticsService {
constructor(private appmetrica: Appmetrica) {}
async logEvent(name: string, params?: Object) {
await this.appmetrica.logEvent(name, params)
}
}