예제 #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();
        }
    }
}
예제 #2
0
파일: ga_dash.php 프로젝트: sonijoy/my_repo
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();
        }
    }
}