Screeb's example app for Ionic (Angular + Capacitor).
Documentation: developers.screeb.app/sdk-js/sdk-ionic
This package requires the installation of the whole mono-repository.
See getting started guide for more information.
npm startThen go to http://localhost:5173/
- Initialization —
ScreebModule.forRoot()inmain.tswith channel ID, user ID and properties - Event tracking —
eventTrack()on page view and button click - Identity properties —
identityProperties()to update visitor attributes - Group assignment —
identityGroupAssign()to segment users into cohorts - Programmatic survey —
surveyStart()triggered from a button - Identity reset —
identityReset()on logout - Multi-page navigation — two Ionic pages (Home + Profile) to show tracking across routes
To run this example as a native iOS/Android app with Capacitor:
# Build the web app
npm run build
# Add platforms
npx cap add android
npx cap add ios
# Sync and open
npx cap sync
npx cap open android # or iosReleased under MIT License.