PHP code example of mlstephane / laravel-analytics
1. Go to this page and download the library: Download mlstephane/laravel-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/ */
mlstephane / laravel-analytics example snippets
use MltStephane\LaravelAnalytics\Facades\Analytics;
Analytics::track('purchase', ['qty' => 2, 'total' => 99.99]);
Analytics::pageview('/blog/my-post');