Download the PHP package rainlab/googleanalytics-plugin without Composer

On this page you can find all versions of the php package rainlab/googleanalytics-plugin. 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 googleanalytics-plugin

Google Analytics 4 Integration Plugin

This plugin adds Google Analytics 4 tracking and reporting features to October CMS. This plugin requires October CMS 3.3 or above.

Note: This plugin does not support Universal Analytics.

Important: this plugin requires the bcmath PHP extension. It is required by the Google PHP API.

If you are using October CMS v1 or v2, install v1.3 of the plugin with the following command:

Configuring the Google Analytics and Google Cloud accounts

To use the plugin, you will need to have a Google Cloud project with a service account, as well as the Google Analytics Data API enabled for that project. To begin, sign into the Google Cloud Console and create or select your project.

To create a service account in a Google Cloud project:

To generate and download a private key file for the service account:

The plugin requires Google Analytics Data API to be enabled for the Google Cloud project. This is needed to fetch the analytics data and display it on the October CMS dashboard. To enable the API:

You can alternatively use this link, but make sure you're enabling the API for the correct project.

Next, you need to give the service account access to your Google Analytics account:

Configuring the plugin

Installing the Google Analytics tracking code

You can use Google Tag Manager to install the tracker code. Below is an explanation how to install the tracker code manually.

After installing the tracker, you can add Google Analytics dashboard widgets and preview the traffic statistics without leaving October CMS.

Compatibility with Multisite

If every site should have its own analytics settings and widgets, open the config/multisite.php file and enable the setting below. Change the value to true to enable unique configuration for each site definition.

Troubleshooting

Fix for Windows / XAMPP

cURL error 60: SSL certificate problem: unable to get local issuer certificate

  1. Follow this link: http://curl.haxx.se/ca/cacert.pem and save it in a file called cacert.pem.

  2. Open your php.ini file insert or edit the following line:

  3. Restart Apache

Popup message simply saying "error" when trying to add the JSON key file.

Some ad-blockers, such as Chrome's uBlock Origin extension or Firefox's own built-in algorithms, may prevent the uploading of the JSON file key. Disabling these, or whitelisting the October CMS website, may resolve this issue for you.

License

This plugin is an official extension of the October CMS platform and is free to use if you have a platform license. See EULA license for more details.


All versions of googleanalytics-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
composer/installers Version ~1.0
guzzlehttp/guzzle Version ~6.0|~7.0
google/apiclient Version ^2.12.1
psr/cache Version ^1.0
google/analytics-data Version ^0.9.5
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 rainlab/googleanalytics-plugin contains the following files

Loading the files please wait ....