function ga_push_method_analytics_js in GA Push 7
Same name and namespace in other branches
- 8 inc/ga_push.analytics_js.inc \ga_push_method_analytics_js()
GA Push Method callback: UTMP (js).
1 string reference to 'ga_push_method_analytics_js'
- ga_push_ga_push_method in ./
ga_push.module - Implements hook_ga_push_method().
File
- inc/
ga_push.analytics_js.inc, line 11 - Universal Analytics js: method and functions.
Code
function ga_push_method_analytics_js($push, $type, $options) {
$push_info = array(
'push' => $push,
'type' => $type,
);
$key = 'ga_push_' . GA_PUSH_METHOD_ANALYTICS_JS;
if (!isset($_SESSION[$key])) {
$_SESSION[$key] = array();
}
$_SESSION[$key][] = $push_info;
}