- Login to Datazoom here: https://app.datazoom.io
- Add a Collector as indicated here: How to add a Collector
- Copy the
config keythat was created at the end of the process
Click the icon indicated below to copy the Configuration Key
You will see this message:
4. Replace the
<configuration id from Datazoom> with the Key you copied above.
5. Replace the
<url given by Datazoom> with
Adding dependencies to your project
Add following maven repository URL in your project's build.gradle file
Add the following dependency for Datazoom Exo Player SDK in your project's build.gradle file's dependencies block
Add the following compile options if you don't have it already.
Add the following additional dependencies to your project.
Use the following code snippet to add ExoPlayerCollector to your project.
The following code snippet illustrates the usage of ExoPlayer collector. Open demo application's MainActivity.java to see a running example.
Custom Events & Metadata
Datazoom allows customers to collect custom events and metadata that don't originate from a video player.
a. Create a JSONArray with necessary metadata.
b. Add the metadata to DZEventCollector.
a. Create an Event object.
The first constructor parameter is the event name, and the second is a list of custom metadata to be included in the event.
b. Add the event to DZEventCollector.