You can utilize for modern frameworks our PVYanalytics SDK.
PVYanalytics offers you a SDK to initialize in your project repository and CLI seafolder
@pvyswiss/analytics-sdk@1.0.1@pvyswiss/analytics-create@1.1.0Available at:
Users can now install the SDK:
npm install @pvyswiss/analytics-sdk
# or
pnpm add @pvyswiss/analytics-sdk
And use the CLI scaffolder:
npx @pvyswiss/analytics-create
Latest Release Informations: https://github.com/pvyswiss/pvyanalytics/releases/tag/v2.0.1
All Releases: https://github.com/pvyswiss/pvyanalytics/releases/
Create either an new Account or login with your existing Account into https://analytics.pvy.swiss
Choose or Create a Workspace and and Organization. If you create a new Workspace, the Onboarding Process walks you through the SDK Initialization and API Token. Copy those Information into a PVYpad or your better into your PVYvault.
Follow the Onscreen SKD Initialization Steps with the Code and your existing new API Token, or if you skip it, copy the code, it looks like:
import { initPVYanalytics } from "@pvyanalytics/sdk";
initPVYanalytics({
projectId: "cmsycf7sw0001nf07ah0g4beh",
apiKey: "pvy_live_your-super-long-token",
// Optional: defaults to wss://ws.analytics.pvy.swiss in production
// wsHost: "wss://ws.analytics.pvy.swiss",
});
Once Initializeed, you can can create your Event and Funnel Handler in the Web UI of PVYanalytics and integrate these into your Code.
Your analytic data is being shipped using websockets and offers realtime analytics of events, also when an API or Endpoint is failing, or a checkout went wrong. The Delay is only the latency between your project and our PVYanalytics Platform, which shall be in range of 10 - 90 Miliseconds only.