PHP code example of sierratecnologia / tracking

1. Go to this page and download the library: Download sierratecnologia/tracking 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/ */

    

sierratecnologia / tracking example snippets


// Find first browser agent (any of these methods are valid and equivalent)
app('tracking.trackings.agent')->first();
new \Tracking\Models\Tracking\Agent::first();
app(\Tracking\Contracts\AgentContract::class)->first();

$pageViews = app('tracking.trackings.path')->where('path', request()->decodedPath())->first()->count;
shell
    php artisan sierratecnologia:publish:trackings
    
shell
    php artisan sierratecnologia:migrate:trackings
    

    php artisan sierratecnologia:publish:trackings