README.md in keen-0.7.7 vs README.md in keen-0.7.8
- old
+ new
@@ -1,8 +1,8 @@
# Keen IO Official Ruby Client Library
-[![Build Status](https://secure.travis-ci.org/keenlabs/keen-gem.png?branch=master)](http://travis-ci.org/keenlabs/keen-gem)
+[![Build Status](https://secure.travis-ci.org/keenlabs/keen-gem.png?branch=master)](http://travis-ci.org/keenlabs/keen-gem) [![Code Climate](https://codeclimate.com/github/keenlabs/keen-gem.png)](https://codeclimate.com/github/keenlabs/keen-gem)
keen-gem is the official Ruby Client for the [Keen IO](https://keen.io/) API. The
Keen IO API lets developers build analytics features directly into their apps.
### Installation
@@ -221,9 +221,20 @@
Keen.beacon_url("sign_ups", :recipient => "foo@foo.com")
# => "https://api.keen.io/3.0/projects/xxxxxx/events/email_opens?api_key=yyyyyy&data=eyJyZWNpcGllbnQiOiJmb29AZm9vLmNvbSJ9"
```
To track email opens, simply add an image to your email template that points to this URL.
+
+#### Redirect URL's
+Redirect URL's are just like image beacon URL's with the addition of a `redirect` query parameter. This parameter is used
+to issue a redirect to a certain URL after an event is recorded.
+
+```
+Keen.redirect_url("sign_ups", { :recipient => "foo@foo.com" }, "http://foo.com")
+ # => "https://api.keen.io/3.0/projects/xxxxxx/events/email_opens?api_key=yyyyyy&data=eyJyZWNpcGllbnQiOiJmb29AZm9vLmNvbSJ9&redirect=http://foo.com"
+```
+
+This is helpful for tracking email clickthroughs.
### Changelog
##### 0.7.7
+ Add support for HTTP and SOCKS proxies. Set `KEEN_PROXY_URL` to the proxy URL and `KEEN_PROXY_TYPE` to 'socks5' if you need to. These