You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
602 B
6 lines
602 B
if (window.navigator && window.location.href) { |
|
var WP_Statistics_http = new XMLHttpRequest(); |
|
WP_Statistics_http.open('GET', wps_statistics_object.rest_url + 'wpstatistics/v1/hit' + (wps_statistics_object.rest_url.includes("?") ? '&' : '?') + '_=' + Math.floor(Date.now() / 1000) + '&_wpnonce=' + wps_statistics_object.wpnonce + '&wp_statistics_hit_rest=yes&ua=' + navigator.userAgent + '&url=' + window.location.href + '&referred=' + document.referrer, true); |
|
WP_Statistics_http.setRequestHeader("Content-Type", "application/json;charset=UTF-8"); |
|
WP_Statistics_http.send(null); |
|
} |