Download the PHP package wakeworks/analytics without Composer

On this page you can find all versions of the php package wakeworks/analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package analytics

Analytics for Silverstripe


Packagist Version GitHub Scrutinizer code quality (GitHub/Bitbucket)

Introduction

This module enables basic analytics in Silverstripe without saving identifying data.

Requirements

For Silverstripe 4, check out version/branch 1.

Installation

After a /dev/build, the module will start logging requests. You can find an overview of the data at /admin/analytics.

ATTENTION: Please read through "Garbage Collection" if you don't want your database to grow infinitely.

How does it work?

Improve bot detection by using image verification

While removing unknown User-Agents already takes away a fair share of bots, there are still many crawlers that just call your website without loading its content.

In order to remove them from the statistics, you can insert an image tracking code by activating it with the following configuration.

This method works by inserting a hidden <img> tag before </body> on every valid tracking request. If a user loads the image, the request will create an entry in the database, otherwise it won't.

Garbage Collection

After some time, your database will fill up with too many requests that you might not care about anymore (e.g. very old ones).

Use the task /dev/tasks/AnalyticsGarbageCollectionTask in order to delete them.

You should do this automatically, by using a cron job or, if that's not possible, by activating the Garbage Collection every xth request via the middleware.

Only do this if the amount of requests you collect is reasonably small, otherwise the DELETE query might take uncomfortably long for the visitor.

Extension for Subsites

If you have silverstripe/subsites installed and want to track by Subsite, you can simply enable the SubsiteExtension and everything will work out of the box.

Which information is stored?

When is no information stored?


All versions of analytics with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version ^5
silverstripe/admin Version ^2
silverstripe/vendor-plugin Version ^2
matomo/device-detector Version ^4.3
ramsey/uuid Version ^4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wakeworks/analytics contains the following files

Loading the files please wait ....