4. Install the Logger
Add the Metalitix Logger to your Three.js experience
PlayCanvas Integration Guide
Within your PlayCanvas project, navigate to
Settings -> External Scripts
. Add the URL beloww to the array. This script adds a global constructor calledMetalitixLogger
.Next, open the
Code Editor
and create a newScript Asset
. Copy thePlayCanvas Camera Script
below and paste it into the editor.
Return to the scene editor, and from the
Hierarchy
select yourCamera Entity
. Within your camera'sScript Component
, add the name of the camera script you just created.\You will find the
API Key
within your project settings in the Metalitix dashboard. Copy and paste this value into the theAPI Key
setting in the script added to the camera.\Metalitix is now configured to gather analytics on your project! 🎉 To test, engage with your experience to create a session. Then, navigate to the Sessions tab within your project on the Metalitix dashboard. Within a few minutes, you will see your session appear at the top of the table. It will be marked as Active until the session ends. When a session no longer says Active, its data will appear on the Metrics tab. Heatmap data, on the other hand, is calculated in real-time for small projects and every 24 hours for large projects.
Last updated