Statistics for Form Subscriptions

- added statistics_forms table
- added corresponding model to record stats
- record stats whenever someone subscribes via a form
This commit is contained in:
Jonathan Labreuille
2016-04-26 11:21:01 +02:00
parent caf6dcddfa
commit ef461da77f
4 changed files with 60 additions and 2 deletions

View File

@ -86,8 +86,9 @@ class Initializer {
$statistics_clicks = Env::$db_prefix . 'statistics_clicks';
$statistics_opens = Env::$db_prefix . 'statistics_opens';
$statistics_unsubscribes = Env::$db_prefix . 'statistics_unsubscribes';
$statistics_forms = Env::$db_prefix . 'statistics_forms';
define('MP_SETTINGS_TABLE', $settings);
define('MP_SETTINGS_TABLE', $settings);
define('MP_SEGMENTS_TABLE', $segments);
define('MP_FORMS_TABLE', $forms);
define('MP_CUSTOM_FIELDS_TABLE', $custom_fields);
@ -105,6 +106,7 @@ class Initializer {
define('MP_STATISTICS_CLICKS_TABLE', $statistics_clicks);
define('MP_STATISTICS_OPENS_TABLE', $statistics_opens);
define('MP_STATISTICS_UNSUBSCRIBES_TABLE', $statistics_unsubscribes);
define('MP_STATISTICS_FORMS_TABLE', $statistics_forms);
}
function runMigrator() {