Download the PHP package revstrat/bloganalytics without Composer
On this page you can find all versions of the php package revstrat/bloganalytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download revstrat/bloganalytics
More information about revstrat/bloganalytics
Files in revstrat/bloganalytics
Download revstrat/bloganalytics
More information about revstrat/bloganalytics
Files in revstrat/bloganalytics
Vendor revstrat
Package bloganalytics
Short Description Pulls Google Analytics data and provides queued jobs for updating data
License BSD-3-Clause
Homepage http://github.com/RevStrat/bloganalytics
Package bloganalytics
Short Description Pulls Google Analytics data and provides queued jobs for updating data
License BSD-3-Clause
Homepage http://github.com/RevStrat/bloganalytics
Please rate this library. Is it a good library?
Informations about the package bloganalytics
SilverStripe Site Analytics
Pull data out of Google Analytics for pages and blog tags
Requirements
- SilverStripe ^4
- [SilverStripe Blog ^3.2 (for tag traffic)] (https://github.com/silverstripe/silverstripe-blog)
- SilverStripe Queued Jobs ^4.2
Documentation
The SilverStripe BlogAnalytics module uses a Google Service Account to interact with Google Analytics.
- Set up a service account here. You will receive a configuration such as this:
{ "type": "service_account", "project_id": "YOUR GOOGLE API PROJET ID", "private_key_id": "YOUR PRIVATE KEY ID", "private_key": "YOUR PRIVATE KEY", "client_email": "EMAIL ADDRESS FOR THE SERVICE ACCOUNT", "client_id": "CLIENT ID", "auth_uri": "AUTH URI", "token_uri": "TOKEN URI", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "CERT URL" }
- Add the email address for the account to Google Analytics
- Get a View ID for the Analytics view you wish to pull from
- base64 encode the configuration
- Add configuration to your environment:
GASERVICE="BASE64 ENCODED JSON CONFIGURATION FILE CONTENTS (to avoid escaping values in the private key)" GAVIEW="VIEW ID" GASTART="7daysago" GAEND="today" GAMINCUTOFF="100" # Don't track pages with fewer views than this
- Install with
composer require revstrat\bloganalytics
- Run
/dev/build?flush=all
. - Create a queued job of type RevStrat\BlogAnalytics\UpdateTrafficData and run it. The task will schedule itself on completion for 3 hours in the future
Template Usage
Examples:
TopTags, TopSiteTree, TopBlogPosts each return a list, with the target object itself under "Item", and the traffic count under "Traffic".
Each can take an argument to override the default result count limit.
All versions of bloganalytics with dependencies
PHP Build Version
Package Version
Requires
silverstripe/cms Version
^4
silverstripe/framework Version ^4
silverstripe/blog Version ^3.2
symbiote/silverstripe-queuedjobs Version ^4.2
google/apiclient Version ^2.0
silverstripe/framework Version ^4
silverstripe/blog Version ^3.2
symbiote/silverstripe-queuedjobs Version ^4.2
google/apiclient Version ^2.0
The package revstrat/bloganalytics contains the following files
Loading the files please wait ....