function analytics_js_callback in Analytics 6
1 string reference to 'analytics_js_callback'
- analytics_menu in ./
analytics.module - Implementation of hook_menu().
File
- ./
analytics.module, line 87 - Provides an API for tracking anlytics about your Drupal site.
Code
function analytics_js_callback($event_name) {
if (empty($event_name) || empty($_POST['analytics_data'])) {
watchdog('analytics', 'Poorly formed javascript request');
}
$data = unserialize($_POST['analytics_data']);
$analytic = new Analytic();
$analytic
->track($event_name, $data);
exit;
}