Download the PHP package typo3/neos-googleanalytics without Composer

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

Latest Stable Version Total Downloads

Neos.GoogleAnalytics

This package allows adding Google Analytics and the Google Tag Manager to a Neos CMS website.

Installation

  1. Run the following command f.e. in your site package:

  2. Update your dependencies by running the following command in your project root folder:

Configuration

Configure tracking

To actually track visits with Google Analytics, some JavaScript with the tracking ID has to be included in the markup. You can do this manually in your template, but the easier way is to set up tracking for each site in the Analytics integration.

Instead of using the Google Analytics tracking code, you can integrate the Google Tag Manager the same way:

Note: If you configure both, a container and an Analytics ID, only the Tag Manager is included.

It is also possible to define default values for all sites. These will be merged with any site specific settings.

Disable tracking

You can disable tracking for a site by either setting the id to false (this is the default value), or leaving it blank.

Additional parameters

If you are using the Google Analytics tracking code, you can also add additional parameters e.g. anonymize_ip set to true. These parameters are added automatically as JSON to the gtag. The default setting is no parameters.

Rendering the tracking code

By default the tracking code is added to the Neos.Neos:Page prototype automatically. If you want to place it yourself, disable the automatic inclusion and use the Fusion prototypes directly:

The following Fusion prototypes are available:

The tracking code is never rendered while working in a non-live workspace, e.g. in the Neos backend.

Upgrade instructions

3.x -> 4.0.0

The statistics display inside the Neos backend (inspector "Stats" tab and the "Analytics" administration module) has been removed, because the underlying Google Analytics Reporting API (Universal Analytics) is no longer available. The package now only provides the tracking code integration.

If you referenced any of these in your own configuration, remove those references.

License

See LICENSE


All versions of neos-googleanalytics with dependencies

PHP Build Version
Package Version
Requires neos/neos Version ^9.0
neos/fusion-afx Version ^9.0
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 typo3/neos-googleanalytics contains the following files

Loading the files please wait ...