Search documentation of phoenix_kit

# PhoenixKitWeb.Live.Modules.Emails.Metrics (phoenix_kit v1.6.19)

View Source

LiveView for email metrics and analytics dashboard.

Provides comprehensive analytics visualization for email campaigns including:

- Key Performance Indicators: Send, delivery, bounce, complaint rates
- Trend Analysis: Time-series charts for performance tracking
- Geographic Distribution: Map showing engagement by location
- Provider Performance: Comparison of different email providers
- Campaign Analytics: Performance breakdown by campaign and template
- Real-time Updates: Live metrics refreshing every 30 seconds

## Features

- Interactive Charts: Built with Chart.js for responsive visualizations
- Date Range Filtering: Custom date ranges for detailed analysis
- Export Functionality: Download charts and data as PNG/CSV
- Responsive Design: Mobile-friendly dashboard layout
- Performance Metrics: Delivery rates, open rates, click-through rates
- Bounce Analysis: Hard vs soft bounce categorization
- Complaint Tracking: Spam complaint monitoring and alerts

## Route

This LiveView is mounted at `{prefix}/admin/emails/dashboard` and requires appropriate admin permissions.

Note: `{prefix}` is your configured PhoenixKit URL prefix (default: `/phoenix_kit`).

## Usage

    # In your Phoenix router
    live "/email-metrics", PhoenixKitWeb.Live.Modules.Emails.EmailMetricsLive, :index

## Permissions

Access is restricted to users with admin or owner roles in PhoenixKit.

# Summary

## Functions

render(assigns)

Callback implementation for `Phoenix.LiveView.render/1`.

# Functions

# render(assigns)

Callback implementation for `Phoenix.LiveView.render/1`.