Collecting data with Trackers and Webhooks

  1. Home
  2. Docs
  3. Collecting data with Trackers and Webhooks
  4. Trackers – collecting data from your own applications
  5. Java tracker
  6. Setup


Integration options

Tracker compatibility

The Snowplow Java Tracker has been built and tested using JDK7 (JRE 1.8), so should work within any Java application built using JDK8 upwards.


To minimize jar bloat, we have tried to keep external dependencies to a minimum. For the full list of dependencies, please see our Gradle build file.



The Tracker is published to Snowplow’s hosted Bintray Maven repository, which should make it easy to add it as a dependency into your own Java app.

The current version of the Snowplow Java Tracker is 0.9.0.

You can also manually insert the Tracker by downloading the jar directly: snowplow-java-tracker-0.9.0.jar


If you are using Maven for building your Java application, then add the following code into your HOME/.m2/settings.xml to be able to use this repository:

<settings> <profiles> <profile> <!-- ... --> <repositories> <repository> <id>com.snowplowanalytics</id> <name>Snowplow Analytics</name> <url></url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile> </profiles> </settings>

Then add into your project’s pom.xml:

<dependency> <groupId>com.snowplowanalytics</groupId> <artifactId>snowplow-java-tracker</artifactId> <version>0.9.0</version> </dependency>


If you are using Gradle in your own Java application, then add our Maven repository in your build.gradle file:

repositories { ... maven { url "" } }

Alternatively, our Maven repository is linked to Bintray jcenter so you can use the built in jcenter() repository.

Then add into the same file:

dependencies { ... // Snowplow Java Tracker compile 'com.snowplowanalytics:snowplow-java-tracker:0.9.0' }


The Snowplow Java Tracker is also usable from Scala. Add this to your SBT config:

// Resolvers val snowplowRepo = "Snowplow Repo" at "" // Dependency val snowplowTracker = "com.snowplowanalytics" % "snowplow-java-tracker" % "0.9.0"