Ruby product analytics installation
- 1
Install the gem
RequiredAdd the PostHog Ruby gem to your Gemfile:
Gemfile - 2
Configure PostHog
RequiredInitialize the PostHog client with your API key and host:
Ruby - 3
Send events
Capture custom events using the PostHog client:
RubyBy default, for backwards compatibility reasons, events are sent with person profile processing enabled. This means a person profile will be created for each user who triggers an event.
If you want to disable person profile processing for certain events, send the event with the following property:
Ruby