This discussion is related to the
Analytics addon.
I modified the Analytics plugin with a couple things, which you could probably consider to include in the next version:
Don't insert Google Analytics anywhere in the Admin area...
(Paste this in the Plugin file just before the "$WebId"-line)
$DoNotInsertOn = array('DashboardController',
'SettingsController',
'PluginsController',
'ImportController',
'MessageController',
'RoleController',
'RoutesController',
'SetupController',
'UserController',
'AuthenticationController',
'UtilityController');
if (InArrayI($Sender->ControllerName, $DoNotInsertOn)) return;
Use the config.php to store the Analytics Key
new line in config.php:
$Configuration['Plugins']['Analytics']['UA'] = 'UA-000000-0';
changed line in the plugin:
$WebId = C('Plugins.Analytics.UA');
0 • •
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •http://www.vanilla-wiki.info/Plugins/Analitics
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I'm using such trick instead of checking controllers: update:
You got typo: PluginsController => PluginController
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •