4. Install the Logger
Add the Metalitix Logger to your Babylon.js experience
Add the Metalitix Logger to your experience using HTML or NPM.
Run the below command if you have npm installed.
Instantiate the
MetalitixLogger
by passing in theapiKey
from your project settings found in the Metalitix dashboard. Then, start the logger session by callingstartSession()
and passing in the Babylon scene (BabylonScene
) and your own scene (TransformNode
). Your own scene is main 3D model from your experience or the parent for your scene's models.
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