Download the PHP package dvsa/mot-google-analytics without Composer

On this page you can find all versions of the php package dvsa/mot-google-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 mot-google-analytics

mot-google-analytics

A Laminas module for easy integration of Google Analytics and Google Tag Manager.

Google Tag Manager and Data Layer

Google Tag Manager is a tag management system created by Google to manage JavaScript and HTML tags used for tracking and analytics on websites (variants of e-marketing tags, sometimes referred to as tracking pixels or web beacons).

_-- from https://en.wikipedia.org/wiki/Google_Tag_Manager_

A data layer is an object that contains all of the information that you want to pass to Google Tag Manager. Information such as events or variables can be passed to Google Tag Manager via the data layer, and triggers can be set up in Google Tag Manager based on the values of variables (e.g., fire a remarketing tag when purchase_total > $100) or based on the specific events. Variable values can also be passed through to other tags (e.g., pass purchase_total into the value field of a tag).

-- from https://developers.google.com/tag-manager/devguide

To set up a data layer, a snippet of code like the following must be added to the head of the page (or elsewhere above the container snippet):

<script>
  dataLayer = [];
</script>

The above snippet is an empty object that can be populated with information to pass to Google Tag Manager. You can see how to add properties to the Data Layer object in the Usage section.

<script>
  dataLayer = [{
    'userId': '5a713869ade8c3665c7e88c01e81a3f220cfde7d',
    'event': 'removed-defect',
    'journey': 'RFRs',
    'title': 'Test result entry - the defect has been removed'
}];
</script>

Requirements

Installation

Install the package via Composer:

Then enable the GoogleAnalyticsModule module by adding it to application.config.php.

Usage

In a Controller

In a View

or

In a Service

Development and executing Tests

Download the repo and install all dependencies:

$ git clone [email protected]:mot/mot-google-analytics.git
$ composer install

To execute unit and functional tests please do:

$ composer test

To generate code coverage:

$ composer test-coverage

HTML files will be saved to build/code-coverage/html/ and Clover XML to build/code-coverage/clover/

If you want to launch the application for debug purposes execute test/bin/start-app.sh. The application will be available at http://127.0.0.1:8080/.

Contributing

Please refer to our Contribution Guide.


All versions of mot-google-analytics with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laminas/laminas-modulemanager Version ^2.8.2
laminas/laminas-i18n Version ^2.9.0
laminas/laminas-log Version ^2.10.0
laminas/laminas-mvc Version ^3.1.1
laminas/laminas-serializer Version ^2.9.0
laminas/laminas-servicemanager Version ^3.10
laminas/laminas-view Version ^2.10.0
laminas/laminas-dependency-plugin Version ^2.6.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 dvsa/mot-google-analytics contains the following files

Loading the files please wait ....