4. Install the Logger

Add the Metalitix Logger to your 8th Wall, A-Frame experience

  1. If not open already, open the module settings by opening the metalitix-aframe module. For the Cloud Editor, the module is underneath the Modules section towards the bottom of your file list. For Self-Hosted projects, the module is in the Modules page in the sidebar navigation. The following settings will need to be configured:

    • API Key - From your project settings found in the Metalitix dashboard.

    • Your a-scene - This is the ID of your A-Frame scene (a-scene).

    • Your a-entity or model - This is the ID of your own scene (a-entity or Object3D). Your own scene is the 3D model of the experience or the parent for your scene's models.

Function calls listed from the Metalitix A-Frame and and ThreeJS integrations can also be used after installing the Metalitix 8th Wall Module.

If the active camera changes in the A-Frame scene, the logger will automatically account for this.

The camera and your scene object should not be parents or children of each other.

Metalitix will record camera movement relative to your scene object's transformations. So, it is not necessary to manually calibrate the scene in the Metalitix dashboard. If you do not pass a scene object, then recorded camera movement will be in world coordinates and manual calibration may be necessary.

  1. 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