0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for the Liquid API (https://onliquid.com)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
>= 0
~> 10.0
>= 0
>= 0

Runtime

>= 0
~> 1.8.0
 Project Readme

Liquid

Ruby wrapper for the Liquid API (analyze and collect)

This gem is currently in development, it might break something 😬

Installation

Add this line to your application's Gemfile:

gem 'liquid-ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install liquid-ruby

Usage

Setup authentication

Liquid.configure do |config|
  config.analyze_api = 'your_analyze_token'
  config.collect_api = 'your_collect_token'
end

Track event

user_attrs = { unique_id: 'your_unique_id', age: 25, premium: true }
event_attrs = { name: 'buy' }

Liquid.track(user_attrs, event_attrs)

Contributing

Bug reports and pull requests are welcome on GitHub at:

https://github.com/lqd-io/liquid-ruby