Skip to content
IForevents Docs
IForevents Docs
InicioPanelGitHubPrivacidadTérminosSeguridadIntroducción
TrackingIdentify usersTrack events
Web (JavaScript)Flutter SDKJavaScript SDK (browser and Node.js)React, Next.js and React NativePython SDKGo SDKJava and Android SDKsSwift SDK (iOS, macOS)Ruby SDKPHP SDK.NET and Unity SDKsClient libraries (JavaScript, Python, Go)HTTP Ingest (Server-Side)
Soporte y SLA
TrackingSDKs

Ruby SDK

The iforevents gem for Rails, workers and CLIs

gem "iforevents"
gem "iforevents-mixpanel" # optional adapters
gem "iforevents-segment"
require "iforevents"

analytics = Iforevents.new(project_key: ENV.fetch("IFOREVENTS_PROJECT_KEY"))
analytics.identify("user_123", email: "[email protected]", plan: "pro")
analytics.track("invoice_paid", amount: 120, currency: "USD")
analytics.page("/pricing")
analytics.reset      # logout
analytics.shutdown   # also runs at_exit

Standard library only (Net::HTTP), thread-safe, batches on a background thread. Build the client yourself to add adapters:

api = Iforevents::APIIntegration.new(project_key: "pk_...", batch_size: 50)
analytics = Iforevents::Client.new([api, Iforevents::Integrations::Mixpanel.new(token: "...")])
analytics.init

Options: base_url, batch_size, flush_interval, timeout, max_retries / retry_delay, requeue_failed_events, storage / persist_queue (FileStorage), throw_on_error, on_quota_exceeded, on_error, flush_at_exit. Errors: Iforevents::APIError, AuthError, QuotaExceededError, RateLimitedError.

Source: iforevents-sdks/ruby.

Swift SDK (iOS, macOS)

The IForevents Swift package for iOS, macOS, tvOS and watchOS apps

PHP SDK

innovafour/iforevents for Laravel, Symfony, plain PHP and CLIs