Installation
Configuration
Add your credentials to.env:
Service Provider
The package auto-discoversGetImmutable\GetImmutableServiceProvider. No manual registration needed.
Facade
Tracking Events
Basic Usage
Fluent Builder
PendingEvent Methods
Batch Ingestion
Querying Events
Retrieving a Single Event
Verification
Viewer Tokens
Alerts
Exports
Anchors
Auto-Session Tracking
The Laravel SDK can automatically attach the current Laravel session ID to every tracked event. Enable this in your configuration:Eloquent Observer Example
Track model events automatically using an Eloquent observer:AppServiceProvider:
Queue Integration
SetGETIMMUTABLE_ASYNC=true in your .env to dispatch tracking calls via Laravel’s queue system instead of making synchronous HTTP requests. This prevents audit logging from blocking your application’s response time.