How to track page
In Appmaker, you can track the page viewed by the user. You can use this to track the user behavior in your app.
import { analytics } from '@appmaker-xyz/core';
analytics.onPageTrack((id, name, context) => {
if (id === 'home') {
// id = 'Home Screen';
// set analytics for page viewed
}
}, 'your-extension-name');