__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
if (wps_js.isset(wps_js.global, 'request_params', 'page') && wps_js.global.request_params.page === "referrals") {
const placeholder = wps_js.rectangle_placeholder();
function renderChart(chartId, searchData) {
const chartElement = document.getElementById(chartId);
if (chartElement) {
const parentElement = jQuery(`#${chartId}`).parent();
if (!searchData?.data?.datasets || searchData.data.datasets.length === 0) {
parentElement.html(wps_js.no_results());
} else {
jQuery('.wps-postbox-chart--data').removeClass('c-chart__wps-skeleton--legend');
parentElement.removeClass('c-chart__wps-skeleton');
wps_js.new_line_chart(searchData, chartId);
}
}
}
const renderHorizontalChart = (id, data) => {
const chartElement = document.getElementById(id);
if (chartElement) {
const parentElement = jQuery(`#${id}`).parent();
parentElement.find('.wps-ph-item').remove();
parentElement.append(placeholder);
if (!data.data || data.data.length === 0) {
parentElement.html(wps_js.no_results());
} else {
jQuery('.wps-ph-item').remove();
wps_js.horizontal_bar(id, data.labels, data.data, data.icons);
}
}
}
if (typeof Wp_Statistics_Referrals_Object !== 'undefined') {
const sourceCategoriesData = Wp_Statistics_Referrals_Object.source_category_chart_data;
renderChart('sourceCategoriesChart', sourceCategoriesData);
const socialMedia = Wp_Statistics_Referrals_Object.social_media_chart_data;
renderChart('socialMediaChart', socialMedia);
const incomeVisitorData = Wp_Statistics_Referrals_Object.search_engine_chart_data;
renderChart('incomeVisitorChart', incomeVisitorData);
const topCountries = Wp_Statistics_Referrals_Object.countries_chart_data;
renderHorizontalChart('referral-top-countries', topCountries);
const topBrowsers = Wp_Statistics_Referrals_Object.browser_chart_data;
renderHorizontalChart('referral-top-browser', topBrowsers);
const deviceType = Wp_Statistics_Referrals_Object.device_chart_data;
renderHorizontalChart('referral-device-type', deviceType);
const visitorChart = Wp_Statistics_Referrals_Object.traffic_chart_data;
renderChart('referralVisitorChart', visitorChart);
const topSocialMedia = Wp_Statistics_Referrals_Object.social_media_chart_data;
renderChart('referral-social-media-chart', topSocialMedia);
const topSearchEngine = Wp_Statistics_Referrals_Object.search_engine_chart_data;
renderChart('referral-search-engines-chart', topSearchEngine);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| add-ons.js | File | 28.96 KB | 0644 |
|
| author-analytics.js | File | 16.02 KB | 0644 |
|
| browser.js | File | 832 B | 0644 |
|
| category-analytics.js | File | 4.5 KB | 0644 |
|
| content-analytics.js | File | 5.3 KB | 0644 |
|
| countries.js | File | 489 B | 0644 |
|
| exclusions.js | File | 1.02 KB | 0644 |
|
| generate-filters.js | File | 765 B | 0644 |
|
| geographic.js | File | 5.19 KB | 0644 |
|
| hits.js | File | 666 B | 0644 |
|
| lock-page.js | File | 1.37 KB | 0644 |
|
| optimization.js | File | 6.26 KB | 0644 |
|
| overview.js | File | 28.4 KB | 0644 |
|
| platform.js | File | 833 B | 0644 |
|
| privacy-audit.js | File | 11.27 KB | 0644 |
|
| referrals.js | File | 2.76 KB | 0644 |
|
| setting.js | File | 12.65 KB | 0644 |
|
| settings.js | File | 18.65 KB | 0644 |
|
| taxonomies.js | File | 706 B | 0644 |
|
| tracker-debugger.js | File | 2.16 KB | 0644 |
|
| visitors.js | File | 3.8 KB | 0644 |
|
| welcome.js | File | 22 B | 0644 |
|