Anonymous Segment.com tracking. Closes #91.

This commit is contained in:
James Brooks
2015-01-23 17:24:34 +00:00
committed by Joseph Cohen
parent a63c65a6c3
commit 5c391cc888
23 changed files with 523 additions and 8 deletions
+7 -5
View File
@@ -127,16 +127,16 @@ return [
* Packages Service Providers...
*/
'Dingo\Api\Provider\ApiServiceProvider',
'GrahamCampbell\Security\SecurityServiceProvider',
'Fideloper\Proxy\ProxyServiceProvider',
'GrahamCampbell\Binput\BinputServiceProvider',
'GrahamCampbell\Throttle\ThrottleServiceProvider',
'GrahamCampbell\Markdown\MarkdownServiceProvider',
'Roumen\Feed\FeedServiceProvider',
'Thujohn\Rss\RssServiceProvider',
'GrahamCampbell\Security\SecurityServiceProvider',
'GrahamCampbell\Throttle\ThrottleServiceProvider',
'Jenssegers\Date\DateServiceProvider',
'McCool\LaravelAutoPresenter\LaravelAutoPresenterServiceProvider',
'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider',
'Fideloper\Proxy\ProxyServiceProvider',
'Roumen\Feed\FeedServiceProvider',
'Thujohn\Rss\RssServiceProvider',
/*
* Application Service Providers...
@@ -148,6 +148,8 @@ return [
'CachetHQ\Cachet\Providers\ViewComposerServiceProvider',
'CachetHQ\Cachet\Providers\LoadConfigServiceProvider',
'CachetHQ\Cachet\Providers\SettingsServiceProvider',
'CachetHQ\Cachet\Providers\SegmentApiServiceProvider',
'CachetHQ\Segment\SegmentServiceProvider',
],
@@ -0,0 +1,9 @@
<?php
return [
'write_key' => '',
'consumer' => 'socket',
'debug' => false,
'ssl' => true,
'error_handler' => null,
];
+1
View File
@@ -10,4 +10,5 @@ return [
'complete_setup' => 'Setup abschließen',
'completed' => 'Cachet wurde erfolgreich eingerichtet!',
'finish_setup' => 'Zum Dashboard',
'allow_tracking' => 'Allow anonymous usage tracking?',
];
+1
View File
@@ -10,4 +10,5 @@ return [
'complete_setup' => 'Complete Setup',
'completed' => 'Cachet has been configured successfully!',
'finish_setup' => 'Go to dashboard',
'allow_tracking' => 'Allow anonymous usage tracking?',
];
+1
View File
@@ -10,4 +10,5 @@ return [
'complete_setup' => 'Terminer l\'installation',
'completed' => 'Cachet a été configuré avec succès !',
'finish_setup' => 'Aller au tableau de bord',
'allow_tracking' => 'Allow anonymous usage tracking?',
];
+11
View File
@@ -61,3 +61,14 @@ App::missing(function ($exception) {
App::down(function () {
return Response::make("Be right back!", 503);
});
/*
|--------------------------------------------------------------------------
| Analytics
|--------------------------------------------------------------------------
|
| We handle all Segment.com tracking here. The function call will only do
| something if tracking is enabled.
|
*/
segment_identify();
@@ -108,6 +108,15 @@
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label>{{ trans('setup.allow_tracking') }}</label>
<input type="hidden" value="0" name="app_track">
<input type="checkbox" value="1" name="app_track" class="form-control" {{ Setting::get('app_track') ? 'checked' : null }}>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="form-group">
+6
View File
@@ -78,6 +78,12 @@
{{ trans("setup.show_support") }}
</label>
</div>
<div class="form-group">
<label>
<input type="checkbox" name="settings[app_track]" value="1" checked >
{{ trans("setup.allow_tracking") }}
</label>
</div>
<hr>
<div class="form-group text-center">
<span class="wizard-next btn btn-success" data-current-block="1" data-next-block="2" data-loading-text="<i class='icon ion-load-c'></i>">