Add enums for the custom analytics fields
This commit is contained in:
parent
a54ff2643f
commit
7e09cf6c28
14
app/Models/Enums/AnalyticsDimensions.php
Normal file
14
app/Models/Enums/AnalyticsDimensions.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models\Enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class AnalyticsDimensions
|
||||||
|
* @package App\Models\Enums
|
||||||
|
*/
|
||||||
|
class AnalyticsDimensions
|
||||||
|
{
|
||||||
|
const PHP_VERSION = 1;
|
||||||
|
const MYSQL_VERSION = 2;
|
||||||
|
const PHPVMS_VERSION = 3;
|
||||||
|
}
|
13
app/Models/Enums/AnalyticsMetrics.php
Normal file
13
app/Models/Enums/AnalyticsMetrics.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models\Enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class AnalyticsMetrics
|
||||||
|
* @package App\Models\Enums
|
||||||
|
*/
|
||||||
|
class AnalyticsMetrics
|
||||||
|
{
|
||||||
|
# Track the lookup time for airports from vaCentral
|
||||||
|
const AIRPORT_LOOKUP_TIME = 1;
|
||||||
|
}
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Modules\Installer\Http\Controllers;
|
namespace Modules\Installer\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Enums\AnalyticsDimensions;
|
||||||
use Log;
|
use Log;
|
||||||
use Irazasyed\LaravelGAMP\Facades\GAMP;
|
use Irazasyed\LaravelGAMP\Facades\GAMP;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
@ -270,7 +271,7 @@ class InstallerController extends Controller
|
|||||||
|
|
||||||
$gamp = GAMP::setClientId(uniqid('', true));
|
$gamp = GAMP::setClientId(uniqid('', true));
|
||||||
$gamp->setDocumentPath('/install');
|
$gamp->setDocumentPath('/install');
|
||||||
$gamp->setCustomDimension(PHP_VERSION, 1);
|
$gamp->setCustomDimension(PHP_VERSION, AnalyticsDimensions::PHP_VERSION);
|
||||||
$gamp->sendPageview();
|
$gamp->sendPageview();
|
||||||
|
|
||||||
# If analytics are disabled
|
# If analytics are disabled
|
||||||
|
Loading…
Reference in New Issue
Block a user