You are here

function ga_push_add_exception in GA Push 7

Same name and namespace in other branches
  1. 8 ga_push.module \ga_push_add_exception()

Push a GA exception.

Exception measurement allows you to measure the number and type of crashes and exceptions that occur on your property.

Example:

ga_push_add_exception(array(
  'exDescription' => 'DatabaseError',
  'exFatal' => FALSE,
  'appName' => 'myApp',
  'appVersion' => 1.0,
));

Parameters

array $push: An associative array containing:

  • exDescription: string (optional) A description of the exception.
  • exFatal: bool (optional) Indicates whether the exception was fatal. true indicates fatal.

string $method_key: @see ga_push_add()

array $options: @see ga_push_add()

See also

https://developers.google.com/analytics/devguides/collection/analyticsjs...

1 call to ga_push_add_exception()
ga_push_action_push_exception in ./ga_push.rules.inc
Add a push exception from a rules action.

File

./ga_push.module, line 438
Drupal Module: GA Push.

Code

function ga_push_add_exception($push, $method_key = NULL, $options = array()) {
  ga_push_add($push, GA_PUSH_TYPE_EXCEPTION, $method_key, $options);
}