You are here

function ga_push_method_datalayer in GA Push 7

Same name and namespace in other branches
  1. 8 inc/ga_push.datalayer.inc \ga_push_method_datalayer()

GA Push Method callback: Datalayer (js).

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

File

inc/ga_push.datalayer.inc, line 11
Universal Datalayer js: method and functions.

Code

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