Example #1
0
function ga_dash_tracking($head)
{
    $traking_mode = get_option('ga_dash_tracking');
    $traking_type = get_option('ga_dash_tracking_type');
    if ($traking_mode) {
        require_once 'functions.php';
        if ($traking_type == "universal") {
            if (current_user_can(get_option('ga_track_exclude'))) {
                return;
            }
            if (get_option('ga_event_tracking')) {
                require_once 'events/events-universal.php';
            }
            echo ga_dash_universal_tracking();
        } else {
            if (current_user_can(get_option('ga_track_exclude'))) {
                return;
            }
            if (get_option('ga_event_tracking')) {
                require_once 'events/events-classic.php';
            }
            echo ga_dash_classic_tracking();
        }
    }
}
Example #2
0
function ga_dash_tracking($head)
{
    $traking_mode = get_option('ga_dash_tracking');
    $traking_type = get_option('ga_dash_tracking_type');
    if ($traking_mode) {
        require_once 'functions.php';
        if ($traking_type == "universal") {
            echo ga_dash_universal_tracking();
        } else {
            echo ga_dash_classic_tracking();
        }
    }
}