Skip to Content
Menu

Deprecated

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 February 7, 2021

Deprecated

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});
Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!