You are here

function ga_push_method_analytics_js in GA Push 8

Same name and namespace in other branches
  1. 7 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 = [
    'push' => $push,
    'type' => $type,
  ];
  $_SESSION['ga_push_' . GA_PUSH_METHOD_ANALYTICS_JS][] = $push_info;
}