setDocumentPath('/install'); $gamp->setCustomDimension(PHP_VERSION, AnalyticsDimensions::PHP_VERSION); # figure out database version $pdo = DB::connection()->getPdo(); $gamp->setCustomDimension( strtolower($pdo->getAttribute(PDO::ATTR_SERVER_VERSION)), AnalyticsDimensions::DATABASE_VERSION ); try { $gamp->sendPageview(); } catch (\Exception $e) { Log::error($e->getMessage()); } } }