1. Go to this page and download the library: Download zaimealabs/pulse-analytics library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zaimealabs / pulse-analytics example snippets
'recorders' => [
ZaimeaLabs\Pulse\Analytics\Recorders\Actions::class => [
'enabled' => env('PULSE_ACTION_ENABLED', true),
'on_retrieved' => false,
'on_creating' => false,
'on_created' => true,
'on_updating' => false,
'on_updated' => true,
'on_saving' => false,
'on_saved' => true,
'on_restoring' => true,
'on_restored' => true,
'on_replicate' => true,
'on_deleting' => false,
'on_deleted' => true,
'on_forceDeleting' => false,
'on_forceDeleted' => true,
'obervers' => [
\App\Models\User::class,
],
'ignore' => [
'#^/'.env('PULSE_PATH', 'pulse').'$#', // Pulse dashboard...
'#^/login#',
'#^/logout#',
],
],
ZaimeaLabs\Pulse\Analytics\Recorders\Visits::class => [
'enabled' => env('PULSE_VISIT_ENABLED', true),
'ajax_requests' => true, // Disable visit in Ajax mode, set it to false.
'ignore' => [
'#^/'.env('PULSE_PATH', 'pulse').'$#', // Pulse dashboard...
'#^/telescope#', // Telescope dashboard...
'#^/_ignition#',
'#^/dev#',
'#^/livewire#',
'#^/_debugbar#',
],
'groups' => [
//'#user\D+#' => 'user:*',
//'#articles\D+#' => 'articles:*',
],
/*
* If you want to delete visit rows after some days, you can change this to 360 for example,
* but you don't like to delete rows you can change it to 0.
*
* For this feature you need Task-Scheduling => https://laravel.com/docs/11.x/scheduling
*/
'delete_days' => 0,
],
ZaimeaLabs\Pulse\Analytics\Recorders\Authentications::class => [
'enabled' => env('PULSE_AUTHENTICATION_ENABLED', true),
'guard' => 'web', // The correct guard.
'ignore' => [
//'login',
//'logout',
],
],
ZaimeaLabs\Pulse\Analytics\Recorders\Campaign::class => [
'enabled' => env('PULSE_CAMPAIGN_ENABLED', true),
'catch' => [
'#^ctm_campaign=advertisement&ctm_source=Zaimea.com$#',
'#^ctm_campaign=advertisement&ctm_source=Custura.de$#',
],
],
]