Sha256: 1a05a9e736d975be59afd0dac60f5e0ef6054e2849e4c7430ad4a9b087b7be5a
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
# What is RudderStack? **Short answer:** Rudder is an open-source Segment alternative written in Go, built for the enterprise. . **Long answer:** Rudder is a platform for collecting, storing and routing customer event data to dozens of tools. Rudder is open-source, can run in your cloud environment (AWS, GCP, Azure or even your data-centre) and provides a powerful transformation framework to process your event data on the fly. ## Installation Add this line to your application's Gemfile: ```ruby gem 'rudder_analytics_sync' ``` Or install it yourself as: ```sh $ gem install rudder_analytics_sync ``` ## Usage Create a client instance: ```ruby analytics = RudderAnalyticsSync::Client.new( write_key: <YOUR_WRITE_KEY>, # required data_plane_url: <DATA_PLANE_URL> on_error: proc { |error_code, error_body, exception, response| # defaults to an empty proc } ) ``` Use it as you would use `analytics-ruby`: ```ruby analytics.track( user_id: user.id, event: 'Created Account' ) ``` ### Batching You can manually batch events with `analytics.batch`: ```ruby analytics.batch do |batch| batch.context = {...} # shared context for all events batch.integrations = {...} # shared integrations hash for all events batch.identify(...) batch.track(...) batch.track(...) ... end ``` ## Contact Us If you come across any issues while configuring or using RudderStack, please feel free to [contact us](https://rudderstack.com/contact/) or start a conversation on our [Discord](https://discordapp.com/invite/xNEdEGw) channel. We will be happy to help you.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rudder_analytics_sync-1.0.7 | README.md |