You are here

function ga_push_add_exception in GA Push 8

Same name and namespace in other branches
  1. 7 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.

see ga_push_add()

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: Method key.

array $options: Extra options.

See also

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

1 call to ga_push_add_exception()
Exception::doExecute in src/Plugin/RulesAction/Exception.php
Executes the action with the given context.

File

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

Code

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