Skip to Content
Menu

ga_send_event()

Send a Google Analytics event from the server side.

PHP July 13, 2017

Usage

PHP
nebula()->ga_send_event($category, $action, $label, $value, $ni, $array)

Parameters

$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

$ni
(Optional) (Boolean) Non-Interaction (1 = non-interaction)
Default: true

$array
(Optional) (Array) An array of additional custom values
Default: None

Parameter Notes

Non-interaction defaults to true because server-side events are typically not triggered by user interaction.

Refer to this documentation for parameters.

Request or provide clarification »

Additional Notes

Use this hit builder by Google to assist preparing options.

Note: Be careful using this function as it may affect reports if this event is sent before (or without) a corresponding pageview hit type. Be selective about when this function is called, or call it via AJAX in JavaScript if possible.

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?