jetpack_tracks_record_event_raw

Procedurally (vs.

Description

(Jetpack_Tracks_Event|WP_Error) jetpack_tracks_record_event_raw( (Jetpack_Tracks_Event) $event ); 

Object-oriented), track an event object (or flat array) NOTE: Use this only when the simpler jetpack_tracks_record_event() function won't work for you.

Returns (Jetpack_Tracks_Event|WP_Error)

Parameters (1)

0. $event (Jetpack_Tracks_Event)
The event object.

Usage

  1. if ( !function_exists( 'jetpack_tracks_record_event_raw' ) ) { 
  2. require_once '/_inc/lib/tracks/client.php'; 
  3.  
  4. // The event object. 
  5. $event = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_tracks_record_event_raw($event); 
  9.  

Defined (1)

The function is defined in the following location(s).

/_inc/lib/tracks/client.php  
  1. function jetpack_tracks_record_event_raw( $event ) { 
  2. return Jetpack_Tracks_Client::record_event( $event );