megalanthusdefold-gamepush
megalanthus/defold-gamepush/gamepush.core.analytics
GamePush analytics: record page visits and reached goals.
- GitHub: megalanthus/defold-gamepush — pinned to
v1.4.1- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as core_analytics from "gamepush.core.analytics"
- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
Functions
hit(url: string)
Records a page visit or view.
Parameters
url:string— The page's address.
goal(event: string, value?: string | number | boolean)
Records a reached goal.
Parameters
event:string— The goal's event.value?:string | number | boolean— The goal's value.