Injected tag
Totem places this tag before the closing</body>:
Public object
The script exposes a frozenwindow.Totem object with two methods:
gameOver({ score })event(name, props)
Event path
Events travel game → SDK →postMessage → Totem shell → API.
The game and overlay never call the ingest API directly. The shell owns the one trusted analytics and score-write path.
Included player features
A validgameOver call can open Totem’s game-over screen, save a score, update the leaderboard, and keep Play again available.
Do not send passwords, API keys, or private player information in custom event properties.