Commit 18306551 authored by Canek Peláez's avatar Canek Peláez
Browse files

Use dictionaries for the example.

parent 00d91145
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@ retrieve the page stats and show them as you whish.
```php
require_once(GA_PAGE_STATS__PLUGIN_DIR . 'class.ga-page-stats.php');
$r = GAPageStats::getPageStats($_SERVER['REQUEST_URI']);
$spv = number_format($r[0]);
$su = number_format($r[1]);
$pv = number_format($r['pageViews']);
$u = number_format($r['users']);
```

At the moment, the plugin retrieves the PageViews (`ga:pageView`) and Users