Skip to content

feat: Add analytics module for end-to-end analytics#629

Open
acc2git wants to merge 1 commit into
amocrm:masterfrom
acc2git:e2e
Open

feat: Add analytics module for end-to-end analytics#629
acc2git wants to merge 1 commit into
amocrm:masterfrom
acc2git:e2e

Conversation

@acc2git

@acc2git acc2git commented Jun 12, 2026

Copy link
Copy Markdown

Implements comprehensive analytics system for amoCRM API:

Models:

  • LeadFactModel: Deal facts with denormalized data
  • LeadStatusHistoryModel: Status transition history
  • TransactionFactModel: Purchase transactions
  • FirstTouchFactModel: First touch points (unsorted)
  • CallFactModel: Call events from webhooks

Services:

  • BaseExportService: Base export with pagination support
  • LeadExportService: Incremental lead export with filters
  • EventExportService: Event history export
  • UnsortedExportService: First-touch data export
  • TransactionExportService: Customer transactions export
  • WebhookHandler: Real-time webhook processing
  • WebhookSubscriptionService: Webhook subscription management
  • FunnelAnalyticsService: Funnel metrics (conversion, avg time)

Additional:

  • AnalyticsServiceInterface: Service contract
  • BaseAnalyticsModel: Base model for analytics
  • AnalyticsFilter: Universal analytics filter
  • AmoCRMClientFactory: API client factory

Examples:

  • leads_export_example.php
  • webhook_handler_example.php
  • funnel_analytics_example.php

Implements comprehensive analytics system for amoCRM API:

Models:
- LeadFactModel: Deal facts with denormalized data
- LeadStatusHistoryModel: Status transition history
- TransactionFactModel: Purchase transactions
- FirstTouchFactModel: First touch points (unsorted)
- CallFactModel: Call events from webhooks

Services:
- BaseExportService: Base export with pagination support
- LeadExportService: Incremental lead export with filters
- EventExportService: Event history export
- UnsortedExportService: First-touch data export
- TransactionExportService: Customer transactions export
- WebhookHandler: Real-time webhook processing
- WebhookSubscriptionService: Webhook subscription management
- FunnelAnalyticsService: Funnel metrics (conversion, avg time)

Additional:
- AnalyticsServiceInterface: Service contract
- BaseAnalyticsModel: Base model for analytics
- AnalyticsFilter: Universal analytics filter
- AmoCRMClientFactory: API client factory

Examples:
- leads_export_example.php
- webhook_handler_example.php
- funnel_analytics_example.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants