UXCam and FullStory app analytics
npm install @guivieiras/capacitor-app-analytics
Capacitor plugin for UXCam and FullStory analytics. It uses UXCam for Android and iOS platforms and FullStory for Web/PWA.
```
npm i @clipboardhealth/capacitor-app-analytics
In file android/app/src/main/java///MainActivity.java, add the plugin to the initialization list:
``
this.init(savedInstanceState, new ArrayList
[...]
add(health.clipboard.analytics.app.capacitor.CapacitorAppAnalytics.class);
[...]
}});
In file android/app/src/main/AndroidManifest.xml, add the following XML elements under :
``
None
Paste your FullStory snippet in the
.More information can be found here: https://help.fullstory.com/hc/en-us/articles/360020623514-How-do-I-get-FullStory-up-and-running-on-my-site-
Methods
$3
Starts tracking the session
`
Plugins.CapacitorAppAnalytics.startWithKey({ UXCamKey: 'your_uxcam_api_key' })
`$3
Sets the user property of the session user
`
Plugins.CapacitorAppAnalytics.setUserProperty({
userId: '$userId',
name: 'name,
userInfo: {
...extra properties of the user
},
})`$3
Track the name of the screen
`
Plugins.CapacitorAppAnalytics.tagScreenName({ screenName: 'LoginScreen' })
`$3
Stops the current session
`
Plugins.CapacitorAppAnalytics.stopSession()
``