Browse Source

fix depreciated call

windhamdavid 4 years ago
parent
commit
9e77910b91
2 changed files with 5 additions and 5 deletions
  1. 2 2
      inc/analytics.php
  2. 3 3
      page-analytics.php

+ 2 - 2
inc/analytics.php

@@ -53,7 +53,7 @@ function dw_wik_url() {
 function dw_wik_users() {
 	
 	$url = "https://davidawindham.com/wik/";
-	$url .= "?module=API&method=UserSettings.getConfiguration";
+	$url .= "?module=API&method=DevicesDetection.getOsFamilies";
 	$url .= "&idSite=1&period=month&date=yesterday";
 	$url .= "&format=PHP&filter_limit=10";
 	$url .= "&token_auth=d97e3e8f34071515ad1f6e345f6035af";
@@ -78,7 +78,7 @@ function dw_wik_users() {
 function dw_wik_keys() {
 	
 	$url = "https://davidawindham.com/wik/";
-	$url .= "?module=API&method=Referrers.getKeywords";
+	$url .= "?module=API&method=Referrers.getReferrerType";
 	$url .= "&idSite=1&period=month&date=yesterday";
 	$url .= "&format=PHP&filter_limit=20";
 	$url .= "&token_auth=d97e3e8f34071515ad1f6e345f6035af";

+ 3 - 3
page-analytics.php

@@ -27,17 +27,17 @@
 			</div>
 			<div class="row">
 				<div class="col-sm-6">
-					<h4>Users</h4>
+					<h4>Operating System</h4>
 					<ul class="list-group">	
 						<?php echo dw_wik_users()?>
 					</ul>
 				</div>
 				<div class="col-sm-6">
-					<h4>Keywords</h4>
+					<h4>Referrals</h4>
 					<ul class="list-group">	
 						<?php echo dw_wik_keys()?>
 					</ul>
-					<h4>Referrals</h4>
+					<h4>Referral Sources</h4>
 					<ul class="list-group">	
 						<?php echo dw_wik_refs()?>
 					</ul>