options ['ga_event_tracking'] and ! wp_script_is ( 'jquery' )) { wp_enqueue_script ( 'jquery' ); } } function ga_dash_tracking($head) { global $GADASH_Config; /* * Include Tools */ include_once ($GADASH_Config->plugin_path . '/tools/tools.php'); $tools = new GADASH_Tools (); if ($tools->check_roles ( $GADASH_Config->options ['ga_track_exclude'], true )) { return; } $traking_mode = $GADASH_Config->options ['ga_dash_tracking']; $traking_type = $GADASH_Config->options ['ga_dash_tracking_type']; if ($traking_mode > 0) { if (! $GADASH_Config->options ['ga_dash_tableid_jail']) { return; } if ($traking_type == "classic") { echo "\n\n"; if ($GADASH_Config->options ['ga_event_tracking']) { require_once 'tracking/events-classic.php'; } require_once 'tracking/code-classic.php'; echo "\n\n\n"; } else { echo "\n\n"; if ($GADASH_Config->options ['ga_event_tracking']) { require_once 'tracking/events-universal.php'; } require_once 'tracking/code-universal.php'; echo "\n\n\n"; } } } } } if (! is_admin ()) { $GLOBALS ['GADASH_Tracking'] = new GADASH_Tracking (); }