getGAMPInstance(); $gamp->setDocumentPath('/install'); // Send the PHP version $gamp->setCustomDimension(PHP_VERSION, AnalyticsDimensions::PHPVMS_VERSION); // Figure out the database version $pdo = DB::connection()->getPdo(); $gamp->setCustomDimension( strtolower($pdo->getAttribute(PDO::ATTR_SERVER_VERSION)), AnalyticsDimensions::DATABASE_VERSION ); // Send the PHPVMS Version $versionSvc = app(VersionService::class); $gamp->setCustomDimension( $versionSvc->getCurrentVersion(false), AnalyticsDimensions::PHP_VERSION ); // Send that an install was done try { $gamp->sendPageview(); } catch (Exception $e) { Log::error($e->getMessage()); } } }