Skip to content

Commit

Permalink
Anonymous Segment.com tracking. Closes #91.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Jan 23, 2015
1 parent 86d30b8 commit 4d46cc1
Show file tree
Hide file tree
Showing 17 changed files with 337 additions and 36 deletions.
1 change: 1 addition & 0 deletions app/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
'McCool\LaravelAutoPresenter\LaravelAutoPresenterServiceProvider',
'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider',
'Fideloper\Proxy\ProxyServiceProvider',
'CachetHQ\Segment\SegmentServiceProvider',

/*
* Application Service Providers...
Expand Down
9 changes: 9 additions & 0 deletions app/config/packages/cachethq/segment/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

return [
'write_key' => 'AdcpUouGjiShPkxoZWxhMUDWAT6tsvbY',
'consumer' => 'socket',
'debug' => false,
'ssl' => true,
'error_handler' => null,
];
1 change: 1 addition & 0 deletions app/lang/de/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
'complete_setup' => 'Setup abschließen',
'completed' => 'Cachet wurde erfolgreich eingerichtet!',
'finish_setup' => 'Zum Dashboard',
'allow_tracking' => 'Allow anonymous usage tracking?',
];
1 change: 1 addition & 0 deletions app/lang/en/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
'complete_setup' => 'Complete Setup',
'completed' => 'Cachet has been configured successfully!',
'finish_setup' => 'Go to dashboard',
'allow_tracking' => 'Allow anonymous usage tracking?',
];
1 change: 1 addition & 0 deletions app/lang/fr/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
'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?',
];
9 changes: 9 additions & 0 deletions app/views/dashboard/settings/app-setup.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
6 changes: 6 additions & 0 deletions app/views/setup.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>">
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"ext-mcrypt": "*",
"ext-openssl": "*",
"laravel/framework": "4.2.*",
"cachethq/segment": "1.0.*@dev",
"dingo/api": "0.8.*",
"doctrine/dbal": "2.5.*",
"graham-campbell/binput": "2.1.*",
Expand Down
Loading

0 comments on commit 4d46cc1

Please sign in to comment.