Analytics - v1.0.0-beta1
Installation Overview
This section covers everything you need to know about installing and configuring ArtisanPack UI Analytics in your Laravel application.
Quick Install
composer require artisanpack-ui/analytics
php artisan analytics:install
Detailed Guides
- Requirements - System requirements and prerequisites
- Installation Guide - Step-by-step installation instructions
- Configuration - Complete configuration reference
What Gets Installed
The installation command performs the following:
- Publishes Configuration - Creates
config/artisanpack/analytics.php - Runs Migrations - Creates the necessary database tables
- Publishes Assets - Publishes the JavaScript tracker to your public directory
Database Tables
The following tables are created during installation:
| Table | Purpose |
|---|---|
analytics_sites |
Multi-tenant site configurations |
analytics_visitors |
Unique visitor records |
analytics_sessions |
Session tracking data |
analytics_page_views |
Page view records |
analytics_events |
Custom event tracking |
analytics_goals |
Goal definitions |
analytics_conversions |
Goal conversion records |
analytics_consents |
GDPR consent records |
analytics_aggregates |
Aggregated historical data |
Next Steps
After installation, you should:
- Configure the package for your needs
- Add the tracking script to your layouts
- Set up the dashboard to view your data