Skip to content

Commit

Permalink
Add analytics (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
a21ns1g4ts authored Nov 8, 2024
1 parent 585268e commit c86b033
Show file tree
Hide file tree
Showing 7 changed files with 1,184 additions and 337 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ STRIPE_SECRET=
STRIPE_WEBHOOK_SECRET=

BREVO_NEWSLETTER_URL=

ANALYTICS_PROPERTY_ID=
4 changes: 1 addition & 3 deletions app/Http/Controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ public function index(Settings $settings)
'tenantPath' => config('filament-saas.tenant_path'),
'sysadminPath' => config('filament-saas.sysadmin_path'),
'brevoNewsletterUrl' => config('services.brevo.newsletter_url'),
'dashboardUrl' => url(Auth::user()?->personalCompany()
? Dashboard::getUrl(panel: 'company', tenant: Auth::user()->personalCompany())
: config('filament-saas.tenant_path')),
'dashboardUrl' => url(config('filament-saas.tenant_path')),
]);
}
}
1 change: 1 addition & 0 deletions app/Providers/Filament/SysadminPanelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function panel(Panel $panel): Panel
\pxlrbt\FilamentEnvironmentIndicator\EnvironmentIndicatorPlugin::make(),
\BezhanSalleh\FilamentExceptions\FilamentExceptionsPlugin::make(),
\Firefly\FilamentBlog\Blog::make(),
\BezhanSalleh\FilamentGoogleAnalytics\FilamentGoogleAnalyticsPlugin::make(),
\Croustibat\FilamentJobsMonitor\FilamentJobsMonitorPlugin::make()
->label('Job')
->pluralLabel('Jobs')
Expand Down
1 change: 1 addition & 0 deletions app/Providers/Filament/TenantPanelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public function panel(Panel $panel): Panel
\pxlrbt\FilamentEnvironmentIndicator\EnvironmentIndicatorPlugin::make(),
\BezhanSalleh\FilamentExceptions\FilamentExceptionsPlugin::make(),
\Firefly\FilamentBlog\Blog::make(),
\BezhanSalleh\FilamentGoogleAnalytics\FilamentGoogleAnalyticsPlugin::make(),
\Croustibat\FilamentJobsMonitor\FilamentJobsMonitorPlugin::make()
->label('Job')
->pluralLabel('Jobs')
Expand Down
Loading

0 comments on commit c86b033

Please sign in to comment.