You are here

function ga_push_method_ga_js in GA Push 8

Same name and namespace in other branches
  1. 7 inc/ga_push.ga_js.inc \ga_push_method_ga_js()

GA Push Method callback: Javascript Classic (javascript).

1 string reference to 'ga_push_method_ga_js'
ga_push_ga_push_method in ./ga_push.module
Implements hook_ga_push_method().

File

inc/ga_push.ga_js.inc, line 11
Classic GA Javascript: method and functions.

Code

function ga_push_method_ga_js($push, $type, $options) {
  $push_info = [
    'push' => $push,
    'type' => $type,
  ];
  $_SESSION['ga_push_' . GA_PUSH_METHOD_GA_JS][] = $push_info;
}