Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
ardoqPublic archive

About

Idiomatic Clojure wrapper for the Segment.io java api

Resources

Stars

16 stars

Watchers

22 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

analytics-clj

Idiomatic Clojure wrapper for the Segment.io Java API.

API (NB! not updated to latest 0.3.0)

See Segment.io Java library for more info.

##Artifacts

Artifacts are released to clojars.

If you are using Maven, add the following repository definition to your pom.xml:

<repository>
  <id>clojars.org</id>
  <url>http://clojars.org/repo</url>
</repository>

##Installation

With Leiningen:

[analytics-clj "0.3.0"]

With Maven:

<dependency>
  <groupId>analytics-clj</groupId>
  <artifactId>analytics-clj</artifactId>
  <version>0.3.0</version>
</dependency>

Usage

ardoq.analytics-clj> (def client (initialize "<secret>"))

ardoq.analytics-clj> (identify client "user-id" {:email "test@example.org"})

ardoq.analytics-clj> (track client "user-id" "Logged in" {:plan {:type "trial" :started (DateTime.)}})

ardoq.analytics-clj> (make-alias client "user-id" "real-id")

About

Idiomatic Clojure wrapper for the Segment.io java api

Resources

Stars

16 stars

Watchers

22 watching

Forks

Releases

Packages

Contributors

Languages