How to get Analytics from the Web Playable?
This article is a how-to get analytics event data from Pley web games when you're building a web gaming destination.
This article assumes you have a website with the Pley Web SDK running already. (How-to)
The Pley Playable will automatically send events up to your website where the Pley Web SDK is running. There, you can add an event handler to process these events and send them to an analytics service of your choice.
const playable = pleyWebSDK.current?.createPlayable(...);
playable.addEventHandler((event) => {
pushEvent({
type: event.type,
event: event.event,
payload: event.data,
});
});
Article: List of all Pley Analytics Events
Updated 15 days ago