Make changes to what we send to Segment, still anonymous!
This commit is contained in:
@@ -28,6 +28,8 @@ class DashboardController extends AbstractController
|
||||
{
|
||||
$components = Component::all();
|
||||
|
||||
segment_page('Dashboard');
|
||||
|
||||
return View::make('dashboard.index')->with([
|
||||
'components' => $components,
|
||||
]);
|
||||
|
||||
@@ -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')) {
|
||||
|
||||
@@ -41,6 +41,8 @@ class SetupController extends AbstractController
|
||||
*/
|
||||
public function getIndex()
|
||||
{
|
||||
segment_page('Setup');
|
||||
|
||||
return View::make('setup')->with([
|
||||
'pageTitle' => trans('setup.setup'),
|
||||
]);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user