Skip to Content

ga()

The Nebula version of this function facilitates sending event data to Google Analytics when GA is blocked. Otherwise, the standard Google version of this function is used.

JavaScript June 11, 2017

Usage

JavaScript
ga(send, event, category, action, label, value, misc)

Parameters

command
(Required) (String) Always "send"
Default: None

hitType
(Required) (String) Always "event"
Default: None

category
(Required) (String) Event category
Default: None

action
(Required) (String) Event action
Default: None

label
(Optional) (String) Event label
Default: None

value
(Optional) (Integer) Event value
Default: None

fieldsObject
(Optional) (Object) Additional object parameters like non-interaction (ni)
Default: None

Parameter Notes

These parameters are no different than the standard Google Analytics event function. Because this is meant to be an AJAX backup when Google’s ga() function is blocked, it should be called no differently.

Request or provide clarification »

Examples

JavaScript
ga('send', 'event', 'Error', 'JS Error', 'chosen.jquery.min.js could not be loaded.', {'nonInteraction': true});

Source File

This function was not found in /assets/js/nebula.js. Please report this error.

Override

To override or disable this JavaScript function, simply redeclare it with the exact same function name.

JavaScript
function ga(command, hitType, category, action, label, value, fieldsObject){
    //Write your own code here, leave it blank, or return false.
}