# SegmentAnalytics.jl

**URL:** <https://discourse.julialang.org/t/segmentanalytics-jl/99582>\
**Category:** Package Announcements\
**Created:** [May 30, 2023, 2:54am UTC](https://discourse.julialang.org/t/segmentanalytics-jl/99582 "2023-05-30T02:54:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rssdev10](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Post date:** [May 30, 2023, 2:54am UTC](https://discourse.julialang.org/t/segmentanalytics-jl/99582/1 "2023-05-30T02:54:30Z")

</div>

[SegmentAnalytics.jl](https://github.com/OpenSesame/SegmentAnalytics.jl) is a client library implementation for the [Twilio Segment platform](https://segment.com/) written in pure Julia.

The package was inspired by [segmentio](https://github.com/segmentio) / **[analytics-ruby](https://github.com/segmentio/analytics-ruby)** and copies some of architectural approaches.

For now, only a minimal framework is implemented, including transport level and `track` API. But that works much faster than any other non Julia-native implementations. We are happy to accept commits for other APIs you need or help to implement it.

Example:

```julia
using SegmentAnalytics

analytics = SegmentAnalytics.Analytics(write_key="write_key")
payload = Dict(
  :event => "Event Name",
  :user_id => "User ID",
  :properties => Dict(:p1 => 1, :p2 => 2),
  :message_id => "custom-message-id"
)

track(analytics, payload)

```
