Now, after learning how to create an experience, you can start capturing interaction information using Data Tracking. This will enable you to identify the preferences and - when relevant - demographics of those who use your experience.
Add the Data Tracking Interface Asset
Add automatic scene navigation tracking
- Select the Interface Asset from the Interface Assets Panel and display the Properties Panel by pressing the "Properties" button on the blue ribbon.
- Check the "Include scene navigation events check-box
- The Data Tracking Interface Asset will now record each scene navigation.
Add a custom event
- Select the "Biography scene, the same scene we have created in the first part of this tutorial.
- We will create a tracking event that will log interaction performed on the pages of the document present on this scene. This will help us track how many pages of the document were browsed.
- From the Scene Structure panel, select the Document Asset (Timothy Burton Bio), right click on it and select "Add a Trigger".
- In the Triggers and Actions panel, select the Document from the trigger category, then select "Page is changed" as the actual trigger. This translates into "when the document's page is changed".
- Click to add an action and select Interface Assets. We want to add an action on the Data Tracking IA.
- Select Data Tracking from the action category and "Log event" as the action parameter
- We should give our event a name so that we will be able to identify it among other logged events. We will call this event "Biography document"
- Now, we will add a parameter to the event. While you can add any number of parameters to a logged event, we will add only one here in the tutorial. We'll name this parameter "Document page"
- We will now bind the value of the parameter to the document's page number. This will allow us to track what page of the document our users are browsing.
- Let's see what we've created! Play the experience and browse the document to log some events.
Retrieve the recorded events
- In Composer, open the "Help" menu and select "Consult Data Tracking dashboard"
- Your system's default Web Browser will open up displaying the Data Tracking dashboard
- Expand the Excel connector option and click on the "Download Data Points" button
- An Excel workbook containing the recorded data should now be downloaded. Open it to see the recorded data.
You've Graduated !