Skip to Content
Menu

ga_ajax()

Send a Google Analytics event from the server side via AJAX.

PHP June 11, 2017

Usage

PHP
'nebula_ga_ajax'

Parameters

hitType
(Required) (String) The hit type of this payload
Default: Either 'pageview' or 'event'

category
(Required) (String) The event category
Default: Required for events

action
(Required) (String) The event action
Default: Required for events

label
(Optional) (String) The event label
Default: None

value
(Optional) (integer) The event value
Default: None

ni
(Optional) (Boolean) Non-interaction
Default: None

location
(Required) (String) The page location
Default: None

title
(Required) (String) The page title
Default: None

ua
(Optional) (String) The user agent
Default: None

Request or provide clarification »

Additional Notes

This function should be called through the Nebula ga() function. The switch between the Google Analytics ga() function and the Nebula ga() function happens automatically, so essentially the ga() function should be used for all event data.

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!

    Source File

    This function was not found in /libs/Utilities/Analytics.php. Please report this error.

    No Hooks

    This function does not have any filters or actions available. Request one?

    Override

    This function can not be short-circuited with an override filter. Request one?