Make changes to what we send to Segment, still anonymous!

This commit is contained in:
James Brooks
2015-05-23 13:20:05 +01:00
parent 92604f2ecd
commit 83be116075
4 changed files with 10 additions and 5 deletions

View File

@@ -28,6 +28,8 @@ class DashboardController extends AbstractController
{
$components = Component::all();
segment_page('Dashboard');
return View::make('dashboard.index')->with([
'components' => $components,
]);

View File

@@ -37,9 +37,7 @@ class HomeController extends AbstractController
$today = Carbon::now();
$startDate = Carbon::now();
segment_track('Status Page', [
'event' => 'Landed',
]);
segment_page('Status Page');
// Check if we have another starting date
if (Binput::has('start_date')) {

View File

@@ -41,6 +41,8 @@ class SetupController extends AbstractController
*/
public function getIndex()
{
segment_page('Setup');
return View::make('setup')->with([
'pageTitle' => trans('setup.setup'),
]);

View File

@@ -54,8 +54,11 @@ if (!function_exists('segment_identify')) {
return Segment::identify([
'anonymousId' => Config::get('app.key'),
'context' => [
'locale' => Config::get('app.locale'),
'timezone' => Setting::get('app_timezone'),
'locale' => Config::get('app.locale'),
'timezone' => Setting::get('app_timezone'),
'DB_DRIVER' => getenv('DB_DRIVER'),
'CACHE_DRIVER' => getenv('CACHE_DRIVER'),
'SESSION_DRIVER' => getenv('SESSION_DRIVER'),
],
]);
} else {