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

Update.

parent fc0101db
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -11,9 +11,10 @@ to [enable the Google Analytics API and create a service account and a JSON
key](https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php)
for the plugin to use.

After activating the plugin, configure the View ID and the JSON key, and (if you
enable to show by default) the stats will appear at the bottom of each singular
page in your WordPress installation when you access it as administrator.
After activating the plugin, configure the Product ID and the JSON key file, and
(if you enable to show by default) the stats will appear at the bottom of each
singular page and entry in your WordPress installation when you access it as
administrator.

You can disble this, and insert your own PHP code in your theme or widget to
retrieve the page stats and show them as you whish.
@@ -25,5 +26,5 @@ $pv = number_format($r['pageViews']);
$u = number_format($r['users']);
```

At the moment, the plugin retrieves the PageViews (`ga:pageView`) and Users
(`ga:users`) stats for a tracked path.
At the moment, the plugin retrieves the page views (`screenPageViews`) and total
users (`totalUsers`) metrics for a tracked path.