Ruby product analytics installation
Add this to your Gemfile:
Terminal
In your app, set your API key before making any calls. If setting a custom host, make sure to include the protocol (e.g. https://).
Ruby
You can find your project API key and instance address in the project settings page in PostHog.